This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Cannot step past second instruction in disassembly window

When I run the UART app nRF5_SDK_12.3.0_d7731ad\examples\peripheral\uart in debug mode, the disassembly window opens, and I seem to get stuck on the second instruction. Step over doesn't step past the second instruction. Why is that? Thank you.

image description

Here is my debug settings

image description

Here is my advanced debug settings

image description

Here are the instructions I've following for setting the J-link debugger settings

http://www.keil.com/support/man/docs/jlink/jlink_cortexdebug.htm

I've tried flashing the soft device before flashing the app, but the flash fails in that case. The app only flashes if I erase the chip first indicating the soft device is flashed with the app (right?).

Parents
  • Based on your graphic you didn't even make it out of the first instruction. The PC is still at 0x0. Also, according to the disassembly window it looks like memory is blank and nothing was loaded. I haven't used the debugger in uVision in a while but, from what I remember you have to set a few things to get it to load the code into flash for a debug session. In project settings, there is a debug tab where you setup the communications with your device. Make sure it is configured correctly. Then to test you will be able to flash from the main screen using the "load" button. That should solve your problem.

    Or if it is the ble uart example you are referring to, that requires a soft device. The pc always goes to 0x0 on reset. So your code could be where it belongs it's just that you have never loaded an SD. The SD/MBR sit at 0x0 and take care of launching your app.

Reply
  • Based on your graphic you didn't even make it out of the first instruction. The PC is still at 0x0. Also, according to the disassembly window it looks like memory is blank and nothing was loaded. I haven't used the debugger in uVision in a while but, from what I remember you have to set a few things to get it to load the code into flash for a debug session. In project settings, there is a debug tab where you setup the communications with your device. Make sure it is configured correctly. Then to test you will be able to flash from the main screen using the "load" button. That should solve your problem.

    Or if it is the ble uart example you are referring to, that requires a soft device. The pc always goes to 0x0 on reset. So your code could be where it belongs it's just that you have never loaded an SD. The SD/MBR sit at 0x0 and take care of launching your app.

Children
No Data
Related