NRF_SDH_BLE_OBSERVER Why Not Run

It appears that "NRF_SDH_BLE_OBSERVER" will not be run. Why?

This project ↓

"\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay\pca10056\s140\arm5_no_packs\ble_app_hrs_rscs_relay_pca10056_s140.uvprojx/main.c"

SDK: 17
IDE: Keil
SoftDevice: 7.2
Computer platform: Windows 11
Device: nRF52840 Dongle

Parents
  • Hi

    Okay, thank you for the explanation. The serialization library used in the pc-ble-driver I'm afraid was deprecated after SDK v15, so it won't be possible to port that to SDK v17 at all I'm afraid. Is there a specific reason you need to port it to the latest SDK version?

    Next, can you explain what you mean by the application rebooting when running ble_stack_init() and the SoftDevice Handler functions thereafter? It sounds like the SoftDevice just doesn't respond, but I don't see why that should result in a full restart of the system, don't you get any kind of error code or reset reason? You could always check the RESETREAS register for what exactly triggered the system to reset.

    Best regards,

    Simon

  • Hi, Simonr

    Thank you for your help. I've rebuilt my application using the raw connectivity example, and it is now ready to run. I suspect that the previous project had some incorrect configurations, but I haven't been able to pinpoint the exact problem.

    After I run ble_stack_init(), I start scanning, or after starting a connection, my application will not restart until an event occurs, but after an event occurs, my application will restart directly or freeze. During this process, each function I executed obtained its error information and printed it out through the serial port. No error occurred.

    Best regards,

    Genfeng

Reply
  • Hi, Simonr

    Thank you for your help. I've rebuilt my application using the raw connectivity example, and it is now ready to run. I suspect that the previous project had some incorrect configurations, but I haven't been able to pinpoint the exact problem.

    After I run ble_stack_init(), I start scanning, or after starting a connection, my application will not restart until an event occurs, but after an event occurs, my application will restart directly or freeze. During this process, each function I executed obtained its error information and printed it out through the serial port. No error occurred.

    Best regards,

    Genfeng

Children
Related