Hi,I'm trying to use break point software on e2studio when the code is allocated on RAM.Break points are not able to stop the firmware execution, in this way I'm not able to debug my code.
Are there any specific debug settings to enable or disable in order to debug code when it is allocated on RAM?Thanks.
You should be able to use either hardware or software breakpoints when executing from RAM. If you add an inline assembly instruction "BKPT" does execution halt there?
This sounds like a tool issue - what debugger are you using?
Hi JimB, thank you for your reply.
I am a brufra collegue having the same issue.
The BKPT instruction seems to work fine and after hitting that I can also step the code...
With a hardware breakpoint instead the code does not stop. We are using e2studio 2021-07 (but the issue was also present in the 2021-04) and a JLink debugger.
I believe this is a question more appropriate for the E2studio forum. I might recommend that you search that forum for solutions before posting a new question on the topic.
I have verified that no similar topics are present, so I created a new one.
It requires some steps to use RAM break.
Step1) Run Program RAM_Copy function. This is executing before main loop.
So, please put the break point next instruction of RAM_Copy function.
Step2)Please set the break point for RAM using software break.
RE01 1500KB, 256KB Group Getting Started Guide to Development Using CMSIS Package Application Note
There is information above getting start document Section 9.4. Please see it.
I haven't noticed that section! Thank you!
Anyway I have already tried to switch to software breakpoints and I have just tried to set all the suggested configurations without improvements.
However, I've found that after hitting a coded BKPT everything start to work...
We can can continue in the e2studio forum: