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

nrf52840 dongle debugging with DK was working now isn't.

Hi all, 

apologies i know there are a lot of posts about this but i cant find the exact answer.  I'm using the nrf52840 dongle, with a DK connected to the programming header. 

i have followed the nrf52840-dongle-programming-tutorial and was able to debug using segger embedded studio, on a couple of blinky projects.  i then tried a uart example (still following the dongle tutorial for mem locations and setting uicr to 3V) and it stopped working.  When i start debugging it "starts" but the device is still in DFU mode (slow flashing red led), if i hit pause the debugger is lost, program counter shows 0x000e4b9e. This now happens even going back to the blinky project that worked before.  I tried reverting to production bootloader per the tutorial and repeated but didnt help. 

Am i missing something that needs to be done to the bootloader? im confused as to how the bootloader / mbr interacts with debugging.  

many thanks,

Michael. 

Parents
  • Hi Michael, 
    Could you let me know how you program the blinky example and the uart example to the dongle ? 
    Note that if you have the bootloader still remain on the dongle, the bootloader would expect that all application on the dongle is updated via the bootloader not directly flashed (CRC check or hash check, depends on how you configure the bootloader). 

    So my suggestion, if you are doing development and you have soldered the header on P1, you can just erase the bootloader and keep only the MBR on the board. 
    When you have the final image ready you can flash the bootloader back and use the bootloader to flash your application to the dongle. 

Reply
  • Hi Michael, 
    Could you let me know how you program the blinky example and the uart example to the dongle ? 
    Note that if you have the bootloader still remain on the dongle, the bootloader would expect that all application on the dongle is updated via the bootloader not directly flashed (CRC check or hash check, depends on how you configure the bootloader). 

    So my suggestion, if you are doing development and you have soldered the header on P1, you can just erase the bootloader and keep only the MBR on the board. 
    When you have the final image ready you can flash the bootloader back and use the bootloader to flash your application to the dongle. 

Children
Related