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

Firmware Crash on ble_stack_init()

The firmware crashes when passing the ble_stack_init() when the firmware is download but in debug mode it works fine. The screen shots below shows this event.

We are using S132 and nRF5_SDK_17.0.2_d674dde

Code Snippet

On this scope shots we can see that on debug mode the test point would go low after around 2 seconds but on downloaded it didn't go low even after 3 seconds and more.

Debug Mode

Downloaded

Any thoughts on what is causing this issue?

Parents
  • Hi

    Can you confirm that you edited the existing defines of the ones I posted below, and that there aren't any calls in your main application that tries to enable the external LF clock? 

    Is it possible to upload the sdk_config.h file here so I can take a look? Are you using the P0.00 and P0.01 for anything else on your board?

    Best regards,

    Simon

  • We are using a custom board and I can confirm that the four defines are set accordingly.

    NRF_SDH_CLOCK_LF_SRC 0

    NRF_SDH_CLOCK_LF_RC_CTIV 16

    NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2

    NRF_SDH_CLOCK_LF_ACCURACY 1

    P0.00 is currently not used and is floating in the circuit but P0.01 is currently being used as on output pin. Is there any concern with these 2 pins?

    And Marvin Neil is a teammate of mine.

Reply
  • We are using a custom board and I can confirm that the four defines are set accordingly.

    NRF_SDH_CLOCK_LF_SRC 0

    NRF_SDH_CLOCK_LF_RC_CTIV 16

    NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2

    NRF_SDH_CLOCK_LF_ACCURACY 1

    P0.00 is currently not used and is floating in the circuit but P0.01 is currently being used as on output pin. Is there any concern with these 2 pins?

    And Marvin Neil is a teammate of mine.

Children
No Data
Related