Removing SD Card

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Removing SD Card

790件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

656件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Where does it loop?

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

Erich

0 件の賞賛
返信

656件の閲覧回数
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 件の賞賛
返信

656件の閲覧回数
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 件の賞賛
返信