Facing errors related to sd card after a time

I integrated the sd card code into my main code in which the the wifi module (nrf5340 + nrf7002) receives uart data from a different device 
What I need to do is that whenever the wifi gets disconnected I need to write (save) the data into the sd card and when it will again get reconnected to wifi I need to read the data from the sd card 
I have made a separate function which I have made as thread in which I manage the write and read function as per the wifi connectivity status and data receiving from the different device.

For reference I am attaching my code below

4336.wifi_over_http.zip

Get 
[00:00:39.289,855] <err> sd: Failed to read from SDMMC -116
[00:00:39.289,855] <err> sd: Card read failed
[00:00:39.289,886] <err> fs: file write error (-5)

such kind of errors I get after some time

Parents Reply Children
No Data
Related