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

Debug under simulator SES + nRF52840 + S140

Hello

Is it posibile to do debug using Segger ES simulator for an example which uses also BLE stack? 

More specific I am trying to debug the blinky example  found in

\nRF5SDK1702d674dde\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_blinky 

When I start the debugger, the CPU is running, if I pause the debugger (break) the code stops somewhere in disassembler ; and it never reaches any part of main or startup .s files..

I guess this is because the project somehow does not know how to load the softdevice hex into simulated MCU memory

Is it posibile  to do debug with simulator for examples which uses softdevice library?

If yes, how? What should be done?

I debugged another example  - blinky with LED ; no BLE involved. This worked using simulator (with some tweak)

\nRF5SDK1702d674dde\nRF5_SDK_17.0.2_d674dde\examples\peripheral\blinky

IDE :

SEGGER Embedded Studio for ARM
Release 5.40c  Build 2021022405.45437
Windows x64
 OS ; windows 7

Thanks

  • To be honest, I have never tried the simulator, but I wouldn't be surprised if you can't use the BLE stack on the simulator. I don't think the simulator is created by us, so you would need to ask Segger about the performance of the simulator.

    Perhaps the softdevice stack isn't included in the simulator ("not programmed"). 

     

    If yes, how? What should be done?

     I am afraid that is a question for Segger, as they have designed the debugger. 

    Best regards,

    Edvin

Related