We are using an embedded system based on ARM AM1808 with rtos and file system. We use the C language. We have a watchdog timer implemented inside the application code. So, whenever something happens in the application code, the watchdog takes care of the system.
However, we encounter a problem when the system freezes before starting the watchdog task. The system freezes because the file system code is poorly encoded with so many while loops. And sometimes due to bad NAND (or at least the file system code thinks it's bad) the code hangs in a while loop and never exits. And what we get is a dead board.
So, the point of providing all the information is to ask you if there is any mechanism that can be implemented in code that runs before the application code? Are there hardware gatekeepers? What steps can be taken to make sure that we are not getting a dead board caused by some while loop.
source
share