FatFs hogging the OS
Posted: Sun Dec 03, 2017 12:20 pm
Ive got a thread that writes data to a file, the file write is about 10KB.
Thus in the thread that writes the data it does
open->write->close.
It seems when it does this it consumes the RTOS 100% i.e no other threads are scheduled whilst this is happening.
Ive got the window watchdog running, and this ends up getting reset as thread servicing the watchdog gets starved, it needs to run every 10ms to reload the window watchdog.
If i disable the watchdog i dont get any system resets, but them i dont have the system protection the watchdog gives.
At the moment all threads are running with the same prority, default NORMALPRIO.
PS before anyone asks, using IWDG is not a option, this makes a sleeping system messy.
Thus in the thread that writes the data it does
open->write->close.
It seems when it does this it consumes the RTOS 100% i.e no other threads are scheduled whilst this is happening.
Ive got the window watchdog running, and this ends up getting reset as thread servicing the watchdog gets starved, it needs to run every 10ms to reload the window watchdog.
If i disable the watchdog i dont get any system resets, but them i dont have the system protection the watchdog gives.
At the moment all threads are running with the same prority, default NORMALPRIO.
PS before anyone asks, using IWDG is not a option, this makes a sleeping system messy.