UTMonkey
New Member
Dear All,
I have pretty much finished my SD Routines and have started testing them with a collection of SD cards I have accumulated.
I have had positive results with 128MB, 256MB and 1GB cards - no problem.
I am left with a 512mb and 1GB card which is giving me some odd results.
Take a look at the MBR output produced from my code.
It looks "like" an MBR as it has the 0x55AA at the end of the block and also bytes 0x1C0-0x1CC look like valid data for the first partition.
The strangeness is where all these 0x0f and 0x04's come from. I wouldnt mind so much apart from the fact that it takes the 0x0F04 and OR's it with the actual data on the sector.
Does anyone know why this happens?
Many thanks
Mark
I have pretty much finished my SD Routines and have started testing them with a collection of SD cards I have accumulated.
I have had positive results with 128MB, 256MB and 1GB cards - no problem.
I am left with a 512mb and 1GB card which is giving me some odd results.
Take a look at the MBR output produced from my code.
Code:
0x0000 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0010 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0020 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0030 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0040 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0050 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0060 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0070 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0080 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0090 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x00A0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x00B0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x00C0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x00D0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x00E0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x00F0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0100 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0110 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0120 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0130 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0140 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0150 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0160 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0170 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0180 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x0190 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x01A0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x01B0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x03
0x01C0 0x3F 0x04 0x06 0x03 0xC3 0xE6 0xF3 0x00 0x0F 0x04 0x0D 0xB3 0x1e 0x00 0x00 0x00
0x01D0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x01E0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00
0x01F0 0x0F 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x0F 0x04 0x00 0x00 0x00 0x00 0x55 0xAA
It looks "like" an MBR as it has the 0x55AA at the end of the block and also bytes 0x1C0-0x1CC look like valid data for the first partition.
The strangeness is where all these 0x0f and 0x04's come from. I wouldnt mind so much apart from the fact that it takes the 0x0F04 and OR's it with the actual data on the sector.
Does anyone know why this happens?
Many thanks
Mark