can microSD be write protected?

Hello,

Is there a way to write-protect microSD flash cards? There is no mechanical switch on the little card. Can it be done by software?

Thanks T.I.

Reply to
Talal Itani
Loading thread data ...

Yes. Code a 'WriteDataToProtectedCard()' function and comment out the line that sends the data to the card. Then if you wish to have the card write protected call that function instead of the normal one.

It should work quite well.

--
John B
Reply to
John B

Hi John,

Thanks, but this is not what I meant. I want to program the microSD chip, and then keep others from re-programming it. Similar to the write-protect bit in windows files.

T.I.

Reply to
Talal Itani

"Talal Itani" schrieb im Newsbeitrag news:B5Kvh.3378$lk3.982@trnddc04... | Hello, | | Is there a way to write-protect microSD flash cards? There is no mechanical | switch on the little card. Can it be done by software?

The mechanical switch is read by the host (or not) located on the card interface slot. Inside the SD card the mechanical switch does nothing. So you can write to the card even if it is "write-protected". Some slots do not have a micro-switch! Some SD cards don't have a mechanical switch - better say "slider".

- Henry

--

formatting link

Reply to
Henry Kiefer

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.