There is a way to detect if the SD Card is working in PicoCom 5? If the card is disconnected, I can't detect it.
SD Card Detection
-
-
Hello,
QuoteThere is a way to detect if the SD Card is working in PicoCom 5? If the card is disconnected, I can't detect it.
In contrast to previous PicoCOMs SD Card is detect by CD detect pin (pin12). But I assume on older baseboards customers did not
connect this pin to the sd slot. So we provide an SW option for detection similar to previous PicoCOMs:QuoteReg open \drivers\builtin\sdmmc_ch2
REM UseCardAvailable ->don’t use irq pin if 1
Reg set value UseCardAvailable dword 1
REM CardAvailable=1, card have to be already inserted than you can access. 0 -> Card not accessable
Reg set value CardAvailable dword 1
Reg saveDoes this resolve your problem?
-
NO, it doesn't resolv.
When I disconnect the SD the system continue to list the SD card as available, but (obviously) when I try to read, write or delete a file it gives me an I/O error.
Long story short, the SD is not "plug and play" like an usb drive. -
Hello,
- if you did *not* connect PCA5.J1.pin12 to the SD slot CD detect pin (and *not* set UseCardAvailabel=0) the SD is not "plug and play" like an usb drive! Esle it is "plug and play" like an usb drive!
- You can use the SW Option if you did *not* connect PCA5.J1.pin12 to the SD slot CD detect pin - but here you have to set the "CardAvailable" by "hand":(
-
Ok, probably I don't have the hardware pin connected.
But the problem is that, when I re-connect the SD the system is unable to read or write the SD untill I reboot all the device.
How can I solve this? -
I've checked. We have NOT the pin connected because in the basic schematic it isn't.
So the registry must be set to 1? -
Hello,
QuoteI've checked. We have NOT the pin connected
Than "autodetection" is not possible.
Set "UseCardAvailable"=DWORD:1 and "CardAvailable"=DWORD:1 if card is alredy inserted or "CardAvailable"=DWORD:0 before remove the card.