This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sd_flash_write returns NRF_ERROR_INTERNAL

Hello.

Using nrf51_8.0.0_API, I'm experiencing the function sd_flash_write returning the value NRF_ERROR_INTERNAL. As documented in nrf_soc.h, this error code can never be returned.

I'm using a testing software which periodically calls sd_flash_write. After a couple of hundred successful calls with return code NRF_SUCCESS, it sooner or later crashes receiving NRF_ERROR_INTERNAL since it is not expected, accordingly to the API documentation.

Is there a bugfix available or any suggestion?

Many thanks in advice. Milena

Parents
  • In our case the problem was caused by the SoftDevice, which did not have enough time to clean up after a disconnect but was called to start advertising. The delay between disconnect and re-start advertising was only 3 seconds. We workarounded the issue by increasing that delay to 6 seconds.

    The suggestion of the Nordic developer team was to disable and re-enable the SoftDevice after each disconnect. But for our system it was not a suitable solution.

Reply
  • In our case the problem was caused by the SoftDevice, which did not have enough time to clean up after a disconnect but was called to start advertising. The delay between disconnect and re-start advertising was only 3 seconds. We workarounded the issue by increasing that delay to 6 seconds.

    The suggestion of the Nordic developer team was to disable and re-enable the SoftDevice after each disconnect. But for our system it was not a suitable solution.

Children
  • Hi,

    Thank you for your reply.

    I tried your workarounds, but it didn't work for me.

    My issue is probably a bit different than yours despite it can be reproduce in the same way. I posted a message on MyPage in order to get some help from Nordic.

    Thanks, Thierry

Related