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

Update to S310 V2.0.1 can't debugg

Hello,

i want to update the softdevice S310 V1.0.0 to version V2.0.1. My applicatio based on SDK 6.1. With S310 V1.0.0 all works fine. But i can't update to S310 V2.0.1. I use Eclipse with GCC compiler.

I have adjusted the Flash size as described in "s310_nrf51422_2.0.1_migration-document" document and copy the new header files from S310 V2.0.1 into my project. The application don't run at all. I can't set a breakpoint at the start of the main function. Did I forget something? Is the softdevice S310 V2.0.1 just compatible with SDK 7.0 or higher?

Parents
  • The new S310 can be used in SDK 6.1 by following the migration guide you mentioned, and from you description it sounds like you have done all the necessary steps.

    I tried here on my end with the ble_ant_app_hrm from SDK 6.1 compiled with gcc for s310 v.2.0.1. It worked after replacing the API headers, adjusted flash size, and added the sd_ble_enable call().

    For debugging part, did you remember to set compiler option -g3, and also remove -O3? This is something at least I've missed before as I'm used to the makefile.common used in most of the SDK 6 examples.

  • Without -flto -fno-builtin, same behavior as before. If i start a debugg session the main function is never reached. If i suspend the debugg session, the application is in HardFault Handler. After a power on cycle (without debugging) the program starts normal.

    Very strange, perhaps something in Softdevice has changed and i have to adjust my debugging settings but i don't know which settings I must adjust.

Reply
  • Without -flto -fno-builtin, same behavior as before. If i start a debugg session the main function is never reached. If i suspend the debugg session, the application is in HardFault Handler. After a power on cycle (without debugging) the program starts normal.

    Very strange, perhaps something in Softdevice has changed and i have to adjust my debugging settings but i don't know which settings I must adjust.

Children
No Data
Related