Defined User Interface Message for removed SD Card?

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
Post Reply
321go
User
Posts: 14
Joined: Sun 2018-09-02 7:16

Defined User Interface Message for removed SD Card?

Post by 321go » Mon 2019-10-14 11:11

Hello!
I´m looking for a possibility to detect a missing SD card. Does the system provide a currently defined User Interface Message when the SD card has been removed?
Best regards,
Martin

User avatar
Henrik
VLSI Staff
Posts: 1149
Joined: Tue 2010-06-22 14:10

Re: Defined User Interface Message for removed SD Card?

Post by Henrik » Fri 2019-10-25 11:43

Hello Martin!

It took a while, but attached to this message is a small VSIDE Solution that demonstrates how to recognize whether an SD card has been inserted, and whether it contains a file system that VSOS recognizes (FAT12/16/32). I hope this demonstration is useful to you.

NOTE!
Removing an SD card while a file is open for writing will almost certainly cause corruption of the file system. This example is intended to be useful in cases such as when an SD card is replaced with another one while the device is waiting for some user interaction.

Kind regards,
- Henrik
Attachments
CheckSD.zip
Example VSIDE Solution of how to recognize the existence of an SD card.
(7.87 KiB) Downloaded 8 times
Good signatures never die. They just fade away.

321go
User
Posts: 14
Joined: Sun 2018-09-02 7:16

Re: Defined User Interface Message for removed SD Card?

Post by 321go » Wed 2019-10-30 14:39

Thank you very much, that´s great help!
Martin

Post Reply