Several improvements in my codes:
- The program is loaded into the core flash twice during debugging, once when the armflash.cfg with commented “shutdown” is started in order to run OpenOCD server. The second one, when the command “load” is executed in “Commands → ‘Initialize’ commands” is executed in order to be ready to debug.
Simple solution:
comment also the command “reset init” at the end of armflash.cfg.
I have two files now: armflash.cfg for flashing, and armflash_debug.cfg for debuging.
- I found a several errors and warnings during debugging when the:
arm7_9 dcc_downloads enable
arm7_9 fast_memory_access enable
are used in armflash_debug.cfg.
Therefore, I added:
arm7_9 dcc_downloads disable
arm7_9 fast_memory_access disable
in between the “mww 0xfffffd08 0xa5000401” and “resume” in armflash_debug.cfg.
The code is loaded much faster into the flash, and no errors occur during debugging.
- OLIMEX ARM-USB-TINY-H should work up to 30Mhz according to the Olimex website:
http://www.olimex.com/dev/arm-usb-tiny-h.html
However, I received errors when the 30 MHz was setuped, and I was not able to flash, or debug.
Therefore the speed was set to 15 MHz in armflash.cfg as well as in armflash_debug.cfg:
“jtag_khz 15000”
- The only one flash breakpoint can be added, because the one is added by the command:
“break main”
in the debugging script.
Only two flash breakpoints are available in ARM7 core.
I was not able to remove this one breakpoint at main during debugging.
Therefore, I commented this line and instead I added the breakpoint somewhere at the beginning of the code in ECLIPSE editor.
Then two breakpoints are ready to use.