I've added a few things to my .gdbinit file which help debugging
quite a bit. I didn't write these but have modified them some.
First to speed up downloads to RAM and uploads of tables, memory, etc
# Increase the packet size to improve download speed.
# Wish this didn't cause an "Are you sure?" popup in Insight
set remote memory-write-packet-size 1024
set remote memory-write-packet-size fixed
set remote memory-read-packet-size 1024
set remote memory-read-packet-size fixed
The following make debugging in flash easier by allowing better access
to the two hardware breakpoints.
# Define some macros for setting & clearing breakpoints using the EmbeddedICE logic
define ib
monitor reg w$arg0av = $arg1
monitor reg w$arg0am = 1
monitor reg w$arg0dv = 0
monitor reg w$arg0dm = 0xFFFFFFFF
monitor reg w$arg0cv = 0x100
monitor reg w$arg0cm = 0xFFFFFEF7
end
document ib
ib <idx> <addr>
Configures hardware Instruction Breakpoint <idx> (0 or 1 for ARM7TDMI)
to break at address <addr>. To disable the breakpoint, set <addr> to
some address that won't be executed or use 'db <idx>'.
end
define db
monitor reg w$arg0av = 0xFFFFFFFF
monitor reg w$arg0am = 1
monitor reg w$arg0dv = 0
monitor reg w$arg0dm = 0xFFFFFFFF
monitor reg w$arg0cv = 0x100
monitor reg w$arg0cm = 0xFFFFFEF7
end
document db
db <idx>
Disable hardware instruction Breakpoint <idx> by setting it to 0xFFFFFFFF
end
Hope they prove useful to the group.
Regards
-Bill Knight
R O SoftWare &
http://www.theARMPatch.com
On Wed, 23 Feb 2005 16:01:19 +1100, Bruce Paterson wrote:
c_hall2001 wrote:
>
> Is there anyway to debug from flash using gnu (free) tools and the
> wiggler? I'm new to the ARM and GNU tools but my fog is slowly
> starting to lift. Also, the wiggler seems quite unstable--lots of
> errors while trying to connect. It eventually works after a few
> tries at low speed (8) but doesn't give me much confidence. Is
> there another low cost JTAG solution for the ARM? Are there any
> good app notes that walk through a debugging session with
> GNU+ARM+wiggler for us rather slow newbies?
I'm using the Chamaleon Pod which pretends to be a Macraigor Raven. This
works well with ocdremote and ocd commander. I can't go faster than
speed 6, but seems quite stable.
The main diadavantage I find with using Insight (gui based gdb) and
debugging from flash is the lack of proper hardware breakpoint support.
Debugging this way is really pretty crappy (using gdp console to put in
hardware breakpoints by hand), and for that reason alone I might have to
recommend buying a debugger. A pity really.
Has Insight any near term prospects of being able to support hardware
breakpoints from the gui ?
--
Cheers,
Bruce
/\\\/\\\/\\\ / / Bruce Paterson
/ \\\ \\\ \\\ / / Senior Design Engineer
/ /\\\/\\\/\\\/ / 8 Anzed Court, Mulgrave, Vic, 3170
/ / \\\ \\\ \\\ / PO Box 4112, Mulgrave, Vic, 3170, Australia
/ / \\\/\\\ \\\/ Ph: +61 3 8561 4232 Fax: +61 3 9560 9055
Tele-IP Ltd. Email: bruce@... Icq: #32015991
WWW: http://www.tele-ip.com VK3TJN
-------------------------------------------------------------------
Yahoo! Groups Links