Hi Team,
Not able to use ble_stack and fstorage at the same time.
Please help me with any example code for both are in sync.
Hi Team,
Not able to use ble_stack and fstorage at the same time.
Please help me with any example code for both are in sync.
Hello,
Can you please specify what you mean? Are you getting an error message?
Please have a look at our documentation on Fstorage API Reference. Have you looked at our example? DevZone has similar cases, i.e. this case
Kind regards,
Øyvind
Hi Oyvind,
Thanks for the quick reply. Tried following your suggestions in devzone( this case), facing a similar issue.
Ble_stack(); and fstorage(); are working independently.
But Not able to run both sequentially and getting the hardfault error.
Looking forward: Planning to store data when ble_stack active also.
There are two ways of using fstorage:
NVMC implementation | |
API implementation of fstorage that uses the non-volatile memory controller (NVMC). | |
SoftDevice implementation | |
API implementation of fstorage that uses the SoftDevice. |
Have you looked at FDS (Flash Data Storage)?
The peer manager always uses FDS. In fact, FDS was developed specifically with peer manager needs in mind. You can use FDS and fstorage directly in the same device. However, FDS will use all of the pages that it is configured to use, so you cannot write to the same pages directly with fstorage. As long as you reserve dedicated pages for fstorage, there should not be an issue.
There are two ways of using fstorage:
NVMC implementation | |
API implementation of fstorage that uses the non-volatile memory controller (NVMC). | |
SoftDevice implementation | |
API implementation of fstorage that uses the SoftDevice. |
Have you looked at FDS (Flash Data Storage)?
The peer manager always uses FDS. In fact, FDS was developed specifically with peer manager needs in mind. You can use FDS and fstorage directly in the same device. However, FDS will use all of the pages that it is configured to use, so you cannot write to the same pages directly with fstorage. As long as you reserve dedicated pages for fstorage, there should not be an issue.