Hi to all,
I'm developing an application with KE02 and SD Card, without OS, using FAT beans of processor Expert.
I've implemented a function to secure remove the SD Card, and it's ok.
Now, my problem is this: if an operator removes the SD Card without using my secure procedure, sometime the program remains in loop waiting a signal from the SD Card.
I've bypassed this problem introducing a system like watchdog and resetting the application.I would like to better manage this situation.
How can I avoid the infinite loop using the Processor Expert beans?
Thank you to all.
Where does it loop?
The components already have a timeout functionality implemented, but maybe something is missing?
Erich
This is the loop:
The components settiings:
Ok, your settings are reasonable. I think what happens is that the SPI bus transfer gets interrupted, and then the routine waits until the data arrives (which does not happen). So I that waiting loop needs to be changed to an implementation using timeouts.
Erich