Forum: ARM programming with GCC/GNU tools MP3 player step by step debug using eclipse & openocd

von Guillet D. (djdav)

Rate this post
0 useful
not useful
i would like to step by step Andrea's Code code under eclipse using ocd
as described in "Using Open Source Tools for AT91SAM7S Cross
Development" document.

I follow the document and enter the following lines in "Run command" for
the debug configuration. I choosed the Ram debug because it seems that
Andrea's MP3 player is loaded in RAM.

"monitor soft_reset_halt
monitor armv4_5 core_state arm
monitor mww 0xffffff60 0x00320100
monitor mww 0xfffffd44 0xa0008000
monitor mww 0xfffffc20 0xa0000601
monitor wait 100
monitor mww 0xfffffc2c 0x00480a0e
monitor wait 200
monitor mww 0xfffffc30 0x7
monitor wait 100
monitor mww 0xfffffd08 0xa5000401
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
monitor mww 0xfffffd00 0xa5000004
monitor mww 0xffffff00 0x01
monitor reg pc 0x00000000
monitor arm7_9 sw_bkpts enable

However when starting the debug, it stops at 20% loading. My debug
configuration seems to have a problem ... Does anybody has a working
debug configuration ?

(When using basic example such as blinking led, I can debug well)

Thanks ,

von James L. (lynchzilla)

Rate this post
0 useful
not useful
Hi David.

Just how big is this MP3 application? I would imagine that it's huge and
exceeds the RAM space by quite a bit. You can inspect the map file and
see just how big the compiled ap is in regard to the available RAM.

Jim Lynch


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.