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

Help debugging nRF51822

I'm using Keil to debug my application. Softdevice was loaded w/ Studio and when I click on Debug Keil loads the code but it does not stop at any breakpoint I set. It does not even stop in main() I cannot step through either.

which ROM addresses is Keil supposed to write t. I just want to make sure that Keil is writing my code to the correct address in flash since SD starts at 0x0 my code should start at 0x14000 or 0x16000 which one?

On the other hand, when I load another version of my code that does not depend on SD it will run fine.

My problem only happens if the application I'm trying to run is based on SD.

I appreciate if anyone can shed some light.

thanks,

Parents
  • I am not using Keil so don't if any thing special needs to be configured but I have some hints that you can check. The SDK5 is to be used with SD6 and app starts at 0x14000. The SDK6 is for SD7 and app starts at 0x16000. There are also preprocessors defined that you need to set. You need at least have these preprocessor defined in your project.

    NRF51822_QFAA_GC

    BLE_STACK_SUPPORT_REQD

    NRF51

Reply
  • I am not using Keil so don't if any thing special needs to be configured but I have some hints that you can check. The SDK5 is to be used with SD6 and app starts at 0x14000. The SDK6 is for SD7 and app starts at 0x16000. There are also preprocessors defined that you need to set. You need at least have these preprocessor defined in your project.

    NRF51822_QFAA_GC

    BLE_STACK_SUPPORT_REQD

    NRF51

Children
No Data
Related