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

fs_event_handler not called by sd

Hello,

We have been using FDS in our nrf52832 based product. Recently we had a need to port application to nrf52810. It required some flash memory optimization. Fortunate for us changing compilation optimization flags from -O0 to -Os and adding -flto got us enough Flash memory. Unfortunately it introduced a bug in our software where fds was returing error 8 (Queue full). After investigation I found out that fs_event_handler is not called and data is not saved in flash. I wonder what is actually happening ? I guess changing optimization could affect fs_event_handler as that is placed in sections - which is a bit of fragile module. But I don't get why flash page is not getting erased.

Thank you for any help.

Michal

Related