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

Is it possible for the firmware in flash to be changed abnormally?

I use nRF52810 SoC to forward data between BLE and UART on our product. So I initialize UART interface and set some GPIOs once enter the "main" function in my codes.  But we meet a problem that all  the GPIOs except the reset pin of the nRF52810 SoC on the abnormal products returned by our customers hadn't been initialized because the reset pin is high level and the other pins are all low level. I found that the reset pin had been initialized in the "SystemInit" function. Therefore I think the  the nRF52810 SoC on the abnormal products only executes the "SystemInit" function and doesn't run the "main" function. I try to reflash firmware of the nRF52810 SoC on the abnormal products and it can return to normal. Now I am confused.

Why does the abnormal chip stop between  "SystemInit" function and "main" function?  Is it possible for the flash in the nRF52810 to be affected by the environment and make the firmware changed abnormally ?

SDK I used: SDK V14.1.0

Softdevice version: s132_nrf52_5.0.0_softdevice

Parents Reply
  • Hi,

    So if the chip is used out side of recommendation then we cant really tell what caused the issue, https://infocenter.nordicsemi.com/topic/ps_nrf52810/recommended_op_conditions.html.

    But it is difficult to find a solution to the issue that you experiences since without debug due to the app-protect. It could be a issue with SDK 14.1.0, there have been some bug fixes in the later versions, one possibility is that a bug when using FDS, this has been fixed in SDK 16. 

    - FDS: fixed two bugs where a power loss at very specific times during garbage
      collection could corrupt the file system, making FDS unable to initialize and return
      FDS_ERR_NO_PAGES on initialization.

    Difficult to say exactly what can be the issue but it is possible due to the FDS bug that some abnormality's can happen. 

    Regards,
    Jonathan

Children
Related