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

fstorage check busy problem

Hello. I have a issue about fstorage.

first, I using S332 SD and SDK 15.3.0 version and 52832.

Init flow is below:

Log enable -> SD enable -> SD BLE & ANT enable -> app_timer enable -> gpiote  enable -> configure ble and ant -> rtc enable ->  adv start

and then Doing Something... 

RTC interrupt is happend ( From handler compare 0 or etc..)

gpiote uninit and set gpio 1 pin for wake up. -> write flash about 5 byte in UICR -> enter system off. -> detect pin something and wakeup and reexcute first.

problem is happend  after Wirte fstorage and wait using nrf_fstorage_is_busy func. it is not return false and not happen handler event. then happen Infinite loop.

if I excute same func in init procedure after adv start, it is successful.

I though that if time slot is busy , I stop adv and ant channel. however still Infinite loop happening.

If I disable SD, and write flash. it is success.

Could you help me What is need fix?

I refer to use fstorage func in example code

Thank you

Related