Using the ezdsp5535 test software I cannot correctly read a FAT32 SD Card sector 0.
I am running the application provided software, ezdsp5535_v1/tests/sd. This uses a function in the board support library, EZDSP5535_SDCARD_read() contained in the file ezdsp5535_sdcard.c. I configured this function to read 512 bytes of sector 0 of a FAT32 formatted SD card that contains no files.
Uint16 ReadBuff[256]; . . . status = EZDSP5535_SDCARD_read(0*512, 512, ReadBuff);
The content of ReadBuff does not match the data present in sector 0 of the card as determined by a hex editor that mounted and read the card. None of the data in ReadBuff matches except the AA 55 signature at offset 510, though these are byte swapped relative to the 55 AA value as read by the hex editor at this location.
Further, the hex editor indicates that card sectors 0, 1, 2, 6, 7, 8 and 12 all contain data. However, when these sectors are read by the function, only sector 0 contains data.
The first 128 bytes of the card sector 0, as read by a hex editor:
S0 00000000 EB 58 90 4D 53 44 4F 53 35 2E 30 00 02 08 C6 01 ëX.MSDOS5.0...Æ. 00000010 02 00 00 00 00 F8 00 00 3F 00 FF 00 3F 00 00 00 .....ø..?.ÿ.?... 00000020 C1 93 3C 00 1D 0F 00 00 00 00 00 00 02 00 00 00 Á“<............. 00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000040 80 00 29 1C 10 39 AC 4E 4F 20 4E 41 4D 45 20 20 €.)..9¬NO NAME 00000050 20 20 46 41 54 33 32 20 20 20 33 C9 8E D1 BC F4 FAT32 3ɎѼô 00000060 7B 8E C1 8E D9 BD 00 7C 88 4E 02 8A 56 40 B4 41 {ŽÁŽÙ½.|ˆN.ŠV@´A 00000070 BB AA 55 CD 13 72 10 81 FB 55 AA 75 0A F6 C1 01 »ªUÍ.r..ûUªu.öÁ.
First 128 bytes in ReadBuff using EZDSP_SDCARD_read():
00000000 C0 33 D0 8E 00 BC FB 7C 07 50 1F 50 BE FC 7C 1B 00000010 1B BF 50 06 B9 57 01 E5 A4 F3 BD CB 07 BE 04 B1 00000020 6E 38 7C 00 75 09 83 13 10 C5 F4 E2 18 CD F5 8B 00000030 C6 83 49 10 19 74 2C 38 F6 74 B5 A0 B4 07 8B 07 00000040 AC F0 00 3C FC 74 07 BB B4 00 CD 0E EB 10 88 F2 00000050 10 4E 46 E8 73 00 FE 2A 10 46 7E 80 0B 04 0B 74 00000060 7E 80 0C 04 05 74 B6 A0 75 07 80 D2 02 46 83 06 00000070 08 46 83 06 0A 56 E8 00 00 21 05 73 B6 A0 EB 07
This is very consistent. What is going on here?
-- bradley