This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unstable steps/breakpoints activity while debugging

Dear everybody,

Currently I am developing a custom chip based on Cortex M0. The chip has an external SRAM that functions as storage for applications and data. I did a test to make sure every bits in the SRAM is able to switch from 0 to 1 and back. I refer to this link for the code
barrgroup.com/.../Memory-Test-Suite-C

I load the program to address 0x0 of my SRAM and do the test for address 0x1000 - 0x10000 (64 kB SRAM size, leaving the first 4 kB untested). The problem is that I can't always single step or breakpoints through the code. Sometimes it skipped a breakpoint and most of the time, landed in Hardfault_Handler.

However, when I load the program to RAM (0x20000000), and testing the SRAM from there, the single step and the breakpoints work just fine. Can anybody give a clue about what might happen here? Thanks!