Removing SD Card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Removing SD Card

706 Views
paolocolombo
Contributor III

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.

0 Kudos
Reply
3 Replies

572 Views
BlackNight
NXP Employee
NXP Employee

Where does it loop?

The components already have a timeout functionality implemented, but maybe something is missing?

Erich

0 Kudos
Reply

572 Views
paolocolombo
Contributor III

This is the loop:

Cattura.JPG.jpg

The components settiings:

Cattura1.JPG.jpg

Cattura2.JPG.jpg

Cattura3.JPG.jpg

Cattura4.JPG.jpg

0 Kudos
Reply

572 Views
BlackNight
NXP Employee
NXP Employee

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

0 Kudos
Reply