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

Flashing nRF52DK pass but not running , J-Link and segger embedded studio

Hi,

I am using nRF52Dk dev kit with nRF_SDK_15. I did some using segger embedded studio with J-Link for debugging. I am way past the blinky stuff. I am able to flash and run on the PCA_10040 kit. I belive all my flashing and compiling environment are set. 

I was trying to use inbuilt ble_uart_app example. I am able to compile it, when I try to flash it, I could see the J-Link pop up erasing and flashing, but my example wouldnot run. I tried erasing the and re-flashing, it still would not run. I also checked whether I am flashing the soft_devices.hex its getting flashed. I tried with nfjprog, still the same. But my blinky runs anyway, if i flash it. So I went to debugging mode and clicked the play button,now my example runs. But its not running when I just flash it in donwload. The example is not occupyng too much program memory, roughly 40% of it. checked the address spaces, all seems fine. 

Thanks

Parents Reply
  • Ah ok! Then I misunderstood you.

    The ble_app_uart_pca10040_s132.hex file is the unmodified ble_app_uart application, merged with the softdevice.
    Hence, you do not need to merge that with the softdevice.

    When you build your application, i.e in SES, there will be generated a hex-file that contains only the application.
    When using SES, this hex-file can be found in:
    examples/ble_peripheral/ble_app_uart/pca10040/s132/ses/Output/Debug(or Release, depending on what configuration you are using)/Exe

    You should use that hex file and merge it with the softdevice.

    Let me know if you still face any issues.
    Best regards,
    Joakim.

Children
Related