Hi. I am trying to add FDS to my application where I used freertos and ble. I tried few things always ending with hardfault, one time it was from Freertos scheduler and the other times I cannot really tell.
- first I was trying to simply add fds_record_write() as fds was already initilized by peer_manager
- second I removed peer manager and initlized fds myself, I got the fds_init event but on fds_record_write() attempt it failed with harfault - altthough call to fds_record_write() itself returned success
- third I took raw (unmodified) ble_app_hrs_freertos and tried to add fds_record_write() on every battery_level_update.
Until I tried third solution I was thinking that maybe something was witihin my app but looks like it is something (bug?) with fds/freertos.
Can someone advise me what is proper way to use FDS with Freertos?
for @Kosmine and any other:In my case problem was that when opening existing record I was using local variable `record` and didnt copy it to my global one. So there was no error just a mistake in programming. I advise you to double check flow of your application and maybe try to debug and see what values are available in `record` after callig `fds_record_open`. Regards !