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

Initializing Soft Device modes

Hi!

In my teamwork we are developing an application for use a sensor module via spi, and share data and comunicate with other devices via Bluetooth.

I've taken care of the spi part, so I don't have much knowledge about Soft Device and BLE.

My problem is that when SD is initializated, the code execution breaks, it jumps back to a few previous lines, like a loop. This hapens when I clear 9 pages of the flash.

I'm using the fstorage libary.

The question is: is there any initializing SD mode that doesn't allow flash write, flash erase or something similar?

Thanks you all!

  • No the softdevice is quite capable of operating with flash writes, and the fstorage library is of course compatible with the softdevice, or it wouldn't be very useful. I rather doubt you are jumping back a few lines, seems more likely you're resetting and starting over at the top of your code entirely.

    You need to post more details about what's happening, you need to check your app_error_handler() to see if you are ending up in there due to a function returning an error.

Related