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

Device Restart with reset reason 4 after connecting BLE and on Mobile Application restart

Hello Everyone,

I am using NRF52840 with Custom board, SES v5.20, SDK 15.1.0, IONIC android App(as Central)

1)My problem is, our nrf52840 board will restart once after successful BLE connection then again it will connect and then no restart just work normal and fine and the reset reason will be 4

2)and also controller restart suddenly(not every time, only sometimes) when i do clear data in my android application on that time also we get reset reason 4 only.

i found that reset reason 4 means- soft reset from https://devzone.nordicsemi.com/f/nordic-q-a/48446/how-to-detect-cause-of-reset but i am not able to understand what is soft reset means exactly  

and how i can solve this issue, 

Thanks in advance

Best Regards,

Raj.

Parents
  • Hello Raj,

    A soft reset means that the application called NVIC_SystemReset() somewhere, which will reset the chip. A hard reset would be powering the chip off and on.

    Most likely, it is the application error handler that triggers the reset. Can you try to add DEBUG to your preprocessor definitions? It looks like you are using Segger Embedded Studio, is that correct?

    If so, you will find your preprocessor definitions here:

    (Note the "Common" selected from the drop down menu).

    After you set this, the error handler shouldn't reset, but rather print some error reason in the log. Can you test this and see if the log says anything right before you would normally see the reset?

    Best regards,

    Edvin

  • Hi Edvin,

    It looks like you are using Segger Embedded Studio, is that correct?

    Yes I am using Segger Embedded Studio (SES) v5.20

    --> i have tried adding debugging in the preprocessor definitions but no use.

     --> just for better clarity, This restart will not happen if i use "nrf connect" or "Serial bluetooth termianl" apps, its happens only when i use our custom Android app which is dedicated to this project only, and this custom app is having auto reconnect feature , that means when ble disconnects its try to reconnect again until its connects back. (do you think this reconnecting feature causing any issue in our NRF microcontroller) and before restart our NRF microcontroller will not receive any data through ble.

    i hope you understand the problem statement.

    Best Regards,

    Raj.

  • Hello Raj,

    Please clarify one thing for me. Do you manually reset the nRF chip, or does it reset on it's own?

    BR,

    Edvin

  • sorry for the late reply,

    When i power on the device, device starts execution and then after connected to BLE it will automatically restarts again. then works file(means again connects to BLE but this time it will not restarts).

    --> i want one more clarification that does the mobile application has the capability to restart our device.

    Best Regards,

    Raj

  • Please add DEBUG to your preprocessor definitions and show me the log that is printed when it restarts.

     

    umrsraj said:
    i want one more clarification that does the mobile application has the capability to restart our device.

     No. It doesn't.

  • Hi Edvin,

    i need some time to show you the log because we are having work from home due to COVID 19 here and all the stuff is in office right now.

    so i will update you when i can have the access to the hardware

    Best Regards,

    Raj

Reply Children
No Data
Related