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

Rigado nrf51822 debug session not halting

Hardware: Rigado BMD-200 B using the nRF51822_xxAB Softdevice: S110_nRF51_8.0.0 Base project: ble_app_hrs_s110_with_dfu_pca10028 Project Device: nRF51922_xxAB Project Target: IROM1: [Start: 0x18000 Size:0x23000]; IRAM1:[Start: 0x20002C00 Size: 0x537F]

My goal is to port the ble app hrs with dfu project from the nrf51422 device to the nrf51822 device. So far the project builds as expected and can be uploaded either via Keil or nRFgo Studio with out error. However, when I start the debug session the session does not stop in main. When I halt the debug session the disassembly window shows the target off "in the weeds" some place.

I looked into some forum posts that seem to concern this issue and so far had no luck:

Help debugging nRF51822

nRF51822 iRAM and iROM settings for S110 SD?

debug session doesn't stop at main

What am I missing when I am converting this project to the nrf51822?

Parents
  • nothing is causing the bootloader to corrupt the app. If you load a bootloader however without also setting the flag in flash which tells the bootloader there's an app, it will start in the bootloader because it has no idea there's an app there. So either include the 'there is an app' flag (see other posts for how to so that) in the flash image or upload your app the first time using the bootloader, after that you can keep using the segger to update it. Or just don't use the bootloader.

Reply
  • nothing is causing the bootloader to corrupt the app. If you load a bootloader however without also setting the flag in flash which tells the bootloader there's an app, it will start in the bootloader because it has no idea there's an app there. So either include the 'there is an app' flag (see other posts for how to so that) in the flash image or upload your app the first time using the bootloader, after that you can keep using the segger to update it. Or just don't use the bootloader.

Children
No Data
Related