« Return to Thread: Sd card interface

Re: RES: Sd card interface

by Harold Hallikainen-2 :: Rate this Message:

Reply to Author | View in Thread

Similar to the "one big text file" approach, I made an SD/MMC card
bootloader. I store the code to be bootloaded as a hex text file on a
freshly formatted card. I edit the hex file to add a distinct string at
the start. Then, my code just reads sector by sector until it finds the
unique string. Then, it reads in a byte at a time passing it to the
bootloader. To make sure it will work, the code actually first goes
through the hex file checking the checksum on each line. If it all looked
ok, it goes back and loads the file. So, there's a way of reading a single
file from a freshly formatted MMC/SD.

Harold

--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!
--
http://www.piclist.com PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist

 « Return to Thread: Sd card interface

LightInTheBox - Buy quality products at wholesale price!