Why crash system Nrf5340 ?

Hello everyone
I am using nrf5340 with sdk ncs v2.4.2, I broadcast BLE and there is a situation where it is stuck and cannot be controlled or do anything, but I can still connect to the phone via BLE (I think the core application seems to be stuck but the core network is not stuck). I have tried using watch dog to prevent the above situation but still cannot solve the above problem. AND THE ABOVE STATUS ONLY HAPPENS RANDOMLY NOT ALWAYS. I can only rely on connecting BLE to the phone to send the system reset command code, then it is reset and continues to use. And I still do not know what causes the above situation. And I have not been able to reproduce the above error

Parents
  • Hello,

    I can still connect to the phone via BLE (I think the core application seems to be stuck but the core network is not stuck).

    Are you also able to disconnect then re-connect again? 

    where it is stuck and cannot be controlled or do anything

    If you are able to reproduce this again, I would recommend you attach a debugger to it and see if you can determine where the program hangs. Alternatively, enable debug logging. 

    I also recommend upgrading to SDK v2.4.4 as this include fixes for  Anomaly 165 and Anomaly 168 that may be relevant to your issue.

  • Thanks for your reply
    When I plug in the debugger to check the error, it seems that it does not have the above system hang and works normally. Yes, I can disconnect and reconnect to the phone. And I can reset by sending the reset command from the phone to the device.

  • Dinh Son said:
    Yes, I can disconnect and reconnect to the phone. And I can reset by sending the reset command from the phone to the device.

    This suggests that the Bluetooth functionality in your application is working. Can you provide examples of things that aren’t working? Are those components running in different threads? Do you have any logs from the device?

Reply Children
No Data
Related