Setting up ARM7 MMU using gdbinit
Richard Earnshaw
rearnsha@arm.com
Wed May 22 02:38:00 GMT 2002
> I am developing a project using a Cirrus Logic 7312 ARM720 CPU. I would
> like to debug my code from RAM, but the executable is larger than the on
> chip SRAM. Also, the SDRAM interface does not work unless the CACHE is
> enabled (and therefore MMU enabled) (Cirrus Logic errata :-( ).
> Unfortunately, setting up the MMU requires access to Coprocessor
> register 15 (through the mcr assembly instruction). Is there a way to
> get to the coprocessor registers from the gdbinit script so that I can
> setup the MMU prior to downloading my application into the SDRAM? I have
> considered writing the mcr instruction op code in to memory and single
> stepping over the instruction, but this seems a bit painful. Any help
> would be greatly appreciated!
Sorry, at this time there is no way to directly access the co-processor
registers from gdb other than by making the target run MRC/MCR
instructions.
R.
More information about the Gdb
mailing list