Shop OBEX P1 Docs P2 Docs Learn Events
SD Card Test (Please test - may be used for boot code for the Prop2) — Parallax Forums

SD Card Test (Please test - may be used for boot code for the Prop2)

Cluso99Cluso99 Posts: 18,069
edited 2012-09-03 00:37 in Propeller 1
Here is some code for testing SD cards using the Prop1. I am specifically interested in any failures.

You will need to change the SD pins if they are not P0-3. The xtal is set to 5MHz (but check as I often forget to set it back). It compiles with PropTool.

This code is based on Andy's (Ariba) code. We want to verify that it works on as many SD cards as possible, so that we can propose this as the base for the ROM SD Boot code to go into the Prop2. Please post on this thread the results (cut & paste from PST), plus the brand of SD card and size and if SDHC or SDXC. We are not interested in the actual formatting on the card. If the code fails there will be no further output after the "testing..." message.

Latest code (24Aug2012) - bigger buffer, displays $20-$7F ASCII characters only, displays Ptn types if MBR record.
SD_test_003 - Archive [Date 2012.08.24 Time 23.12].zip
SD_test_003.binary

(older) Updated code to make trace buffer bigger for slower cards

SD_test_002 - Archive [Date 2012.08.20 Time 17.20].zip
SD_test_002.binary

This code will not write to your SD card. It just initialises it and reads sector 0 (MBR)

Postedit:
For those interested in the output data.
I output 4 bytes per command. The first byte is the command cmdo (in hex) followed by the parameter cmdp (byte only in hex, so $AA is in fact $1AA). The next byte is the returned byte (in hex) and then follows $FF as a filler.
CMD0 = $00 GO_IDLE_STATE
CMD8 = $08 SEND_IF_COND
CMD55 = $37 APP_COMMAND
ACMD41 = $29 SD_SEND_OP_COND
CMD58 = $3A READ_OCR
CMD17 = $11 READ_SINGLE_BLOCK
«13456

Comments

  • Cluso99Cluso99 Posts: 18,069
    edited 2012-08-19 23:16
    Here are my results for
    SanDisk 2GB SD (microSD)
    [code]
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 00 FF 3A 00 00 FF 11 00 00 FF
    FE FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    50 72 6F 70 65 6C 6C 65 72 49 49 00 00 06 00 00 PropellerII.....
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 ................
    04 00 06 0A CA CA 81 00 00 00 7F AF 3B 00 00 00 ....
  • Cluso99Cluso99 Posts: 18,069
    edited 2012-08-19 23:37
    SanDisk 1GB SD (microSD)
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 00 FF
    3A 00 00 FF 11 00 00 FF FE FF 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03  ................
    3D 00 06 1F FF D7 F9 00 00 00 07 44 1E 00 00 00  =..ÿ×ù....D....
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA  ..............Uª
    
  • Cluso99Cluso99 Posts: 18,069
    edited 2012-08-19 23:40
    Lexar 4GB SDHC (microSD)
    [code]
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 00 FF 3A 00 00 FF 11 00 00 FF
    FE FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 ................
    03 01 0B 75 F5 CA 00 20 00 00 00 58 77 00 00 00 ...u
  • Cluso99Cluso99 Posts: 18,069
    edited 2012-08-20 00:19
    SanDisk 2GB SD (microSD)
    I have 2 cards like this that are much slower and broke my first test code.
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02  ................
    0A 00 06 3F FF BC 87 00 00 00 39 E0 3A 00 00 00  ...?ÿ¼‡...9à:...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA  ..............Uª
    
    and
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02  ................
    0A 00 06 3F FF BC 87 00 00 00 39 E0 3A 00 00 00  ...?ÿ¼‡...9à:...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA  ..............Uª
    
  • SapiehaSapieha Posts: 2,964
    edited 2012-08-20 00:36
    Hi Cluso.

    Can I propose You add test for contiguous test of length of area after Sector 0 --- By testing for Byte "00" and report that to.



    Cluso99 wrote: »
    Here is some code for testing SD cards using the Prop1.

    You will need to change the SD pins if they are not P0-3. The xtal is set to 5MHz (but check as I often forget to set it back). It compiles with PropTool.

    This code is based on Andy's (Ariba) code. We want to verify that it works on as many SD cards as possible, so that we can propose this as the base for the ROM SD Boot code to go into the Prop2. Please post on this thread the results (cut & paste from PST), plus the brand of SD card and size and if SDHC or SDXC. We are not interested in the actual formatting on the card. If the code fails there will be no further output after the "testing..." message.


    Updated code to make trace buffer bigger for slower cards

    SD_test_002 - Archive [Date 2012.08.20 Time 17.20].zip
    SD_test_002.binary

    This code will not write to your SD card. It just initialises it and reads sector 0 (MBR)

    Postedit:
    For those interested in the output data.
    I output 4 bytes per command. The first byte is the command cmdo (in hex) followed by the parameter cmdp (byte only in hex, so $AA is in fact $1AA). The next byte is the returned byte (in hex) and then follows $FF as a filler.
    CMD0 = $00 GO_IDLE_STATE
    CMD8 = $08 SEND_IF_COND
    CMD55 = $37 APP_COMMAND
    ACMD41 = $29 SD_SEND_OP_COND
    CMD58 = $3A READ_OCR
    CMD17 = $11 READ_SINGLE_BLOCK
  • Cluso99Cluso99 Posts: 18,069
    edited 2012-08-20 01:23
    Sapieha: Really short on time. You mean looking for subsequent sectors that are $00 filled?
    BTW the MBR should point to the Partition area so that can be calculated.
  • SapiehaSapieha Posts: 2,964
    edited 2012-08-20 02:22
    Hi Cluso.

    Yes and NO.

    MBR -- Yes
    But not to First usable space after Boot sector's information TO RAW moed of BOOT loader

    Found one SDHC - SD in my spare-parts..
    Ad that one are formated as FAT32 -- By my Kodak CAM.
    If You look on attached picture it have 2 partition tables --- MASTER and SPARE and length of each one are C00-Hex
    That give first free sector = 1800

    Cluso99 wrote: »
    Sapieha: Really short on time. You mean looking for subsequent sectors that are $00 filled?
    BTW the MBR should point to the Partition area so that can be calculated.
    1024 x 707 - 158K
  • evanhevanh Posts: 15,949
    edited 2012-08-20 06:16
    Sapieha wrote: »
    But not to First usable space after Boot sector's information TO RAW moed of BOOT loader
    The block number of the start of the boot loader will be calculated and written to the MBR by a developer tool, the ROM loader doesn't need to know about free space.
    If You look on attached picture it have 2 partition tables --- MASTER and SPARE and length of each one are C00-Hex
    That give first free sector = 1800

    Ah, I think you might be looking at the two Volume Boot Records at the start of the FAT partition. The Master Boot Record is always at block 0.
  • SapiehaSapieha Posts: 2,964
    edited 2012-08-20 06:43
    Hi evanh.

    It is not volume info of start of FAT partition --- If You look carefully on picture It has address C00 hex --- and if You look top left You will see that first FAT 1 table starts at 6304 Hex.

    Boot still Both boot sector's(2) instances don't have ant data in position of BOOT parameters.

    evanh wrote: »
    The block number of the start of the boot loader will be calculated and written to the MBR by a developer tool, the ROM loader doesn't need to know about free space.



    Ah, I think you might be looking at the two Volume Boot Records at the start of the FAT partition. The Master Boot Record is always at block 0.
  • Cluso99Cluso99 Posts: 18,069
    edited 2012-08-20 06:59
    I am sorry Sapieha. I do not understand what you mean.

    My test program will just print the MBR (sector 0). In each of my SD cards (except 4GB which I am unsure), they are formatted either with FAT16 or FAT32.
  • evanhevanh Posts: 15,949
    edited 2012-08-20 07:46
    Sapieha wrote: »
    ... and if You look top left You will see that first FAT 1 table starts at 6304 Hex.

    A FAT table contains the cluster allocation map. And yes there is two such tables allowed for in a FAT volume. They exist inside the volume space.

    The actual start of that partition/volume is at block 6 (byte $C00).
  • dMajodMajo Posts: 855
    edited 2012-08-20 08:28
    Sapieha wrote: »
    Hi Cluso.

    Yes and NO.

    MBR -- Yes
    But not to First usable space after Boot sector's information TO RAW moed of BOOT loader

    Found one SDHC - SD in my spare-parts..
    Ad that one are formated as FAT32 -- By my Kodak CAM.
    If You look on attached picture it have 2 partition tables --- MASTER and SPARE and length of each one are C00-Hex
    That give first free sector = 1800


    Sapieha,
    this is the boot of the partition (the volume boot record) not the MBR

    As I am aware of there is only ONE MBR starting at absolute 0x0000. In the MBR beside other data you have the "partition table" starting at 0x01BC. The partition table can hold informations for max 4 (primary) partitions: each info (lenght 16 bytes) contain the partition status (1 byte), the absolute start address (3 bytes), the partition type (1 byte), the absolute ending address (3 bytes), LBA (4 bytes) and number of sectors in partition (4 bytes).
    When you follow the partition start address you find the volume boot record (relative 0 for the given partition) where in case of FAT volumes you have the master and slave cluster allocation map

    Cluso has got it right, the pointer in the MBR is the solution, except that I'll pefere to make two primary partitions on the SD being the first the prop firmware. If you have more than one partition you know that at absolute SD address of 0x01C0 you find the "partition type" info for the first one and at addresses 0x01BD to 0x01BF its starting point (where to start reading the firmware given the partition info is correct). This will prevente any OS tool corrupt your firmware area and because per Cluso solution you have to change the pointer in the MBR each time you change the file in the FAT32 than is the same if you use the same tool to write the firmware binary directly to the firmware partition area thus hiding it from the FAT partition and protecting it also from the accidental SD writes from a novice developer, incorrect SD mount/dismount and finally also from possible bugs in the prop SD-FAT drivers.

    @Cluso
    On storages with only one partition you have not the MBR but instead you have directly the VBR (volume boot record) in the device absolute 0. It will be very unsafe to write the firmware starting pointer in this area since it can be changed by any disk analisis tool thinking to correct an error. So having more than one partition it seems safer. Why not reserve than the first one (like is done on the today PCs - the recovery partition) for the prop firmware ?

    PEDIT: Regarding the various methods scanning the partition area for a given signature in the firmware file I thing they are dangerous because when you delete, overwrite the file the information change is done only in the fat and you can have two times the firmware in the disk but just one listed in the fat. What if you take the wrong one?
  • evanhevanh Posts: 15,949
    edited 2012-08-20 09:07
    dMajo wrote: »
    It will be very unsafe to write the firmware starting pointer in this area since it can be changed by any disk analisis tool thinking to correct an error. So having more than one partition it seems safer. Why not reserve than the first one (like is done on the today PCs - the recovery partition) for the prop firmware ?

    Same goes for the MBR, other OS tools have a habit of not understanding foreign structures. That doesn't mean the structures are at fault. The VBR is intended for, (as well as holding the various parameters), holding boot code. If the tools get that wrong they're not functioning correctly. I suggest avoid using them.

    Partitions are viable as is. No need to force it mandatory.
    Regarding the various methods scanning the partition area for a given signature in the firmware file I thing they are dangerous because when you delete, overwrite the file the information change is done only in the fat and you can have two times the firmware in the disk but just one listed in the fat. What if you take the wrong one?

    Yep. If the official way is busted then the boot loader is prolly history.
  • JonnyMacJonnyMac Posts: 9,108
    edited 2012-08-20 09:38
    Found a ScanDisk 512MB -- probably from an old cell phone
    testing...
    Parameters used...
    00 00 01 FF 08 AA 05 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 01 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 00 FF 11 00 00 FF FE FF 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03  ................
    31 00 06 0F FF D6 ED 00 00 00 A3 1D 0F 00 00 00  1...ÿÖí...£.....
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA  ..............Uª
    
  • pgbpsupgbpsu Posts: 460
    edited 2012-08-20 09:54
    16GB SanDisk MicroSDHC - previously formatted to work with fsrw
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 82  ...............‚
    03 00 0C FE FF FF 00 20 00 00 00 AC DA 01 00 00  ...þÿÿ. ...¬Ú...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA  ..............Uª
    
  • pgbpsupgbpsu Posts: 460
    edited 2012-08-20 10:03
    I tried this with a 16GB SanDisk MicroSDHC (same type as previous post) which was previously used in RAW mode. I had to remove the "print as text part" because is was sending garbage to PST. Here are the results:
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    MBR sector 0...
    67 65 6F 50 65 62 62 6C 65 20 50 53 49 43 45 20
    62 6C 6F 63 6B 20 5A 65 72 6F 2E 20 20 20 20 20
    20 20 20 20 20 20 53 4E 3A 20 47 52 4E 44 30 31
    20 20 44 41 54 45 2F 54 49 4D 45 20 61 72 65 20
    67 69 76 65 6E 20 69 6E 20 59 59 2F 4D 4D 2F 44
    44 20 48 48 3A 4D 4D 3A 53 53 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 53 54 41 52 54 20 54 49 4D 45
    3A 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 31 32 2F 30 36 2F 30 31 20 32 31
    3A 30 32 3A 33 37 20 20 4C 41 53 54 20 4D 4F 44
    49 46 49 43 41 54 49 4F 4E 20 54 49 4D 45 3A 20
    20 20 20 20 20 20 20 31 32 2F 30 36 2F 30 31 20
    32 31 3A 32 30 3A 35 39 20 20 63 61 72 64 20 73
    69 7A 65 20 69 6E 20 35 31 32 2D 62 79 74 65 20
    62 6C 6F 63 6B 73 3A 20 20 20 20 20 20 20 20 20
    20 20 33 31 39 35 30 30 30 30 20 20 66 69 72 73
    74 20 64 61 74 61 20 62 6C 6F 63 6B 3A 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 31 20 20 6E 65
    78 74 20 64 61 74 61 20 62 6C 6F 63 6B 3A 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 32 39 37 31 37 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 20 20 45 4F 46
    
  • dMajodMajo Posts: 855
    edited 2012-08-20 10:46
    evanh wrote: »
    Same goes for the MBR, other OS tools have a habit of not understanding foreign structures. That doesn't mean the structures are at fault. The VBR is intended for, (as well as holding the various parameters), holding boot code. If the tools get that wrong they're not functioning correctly. I suggest avoid using them.

    Partitions are viable as is. No need to force it mandatory.

    Sorry Evanh, perhaps my english is not good enough. I mean that if the OS reconize wrong data in the VBR can try to correct them. The MBR will clearly identify the partition by its partition type information and if this parameter is not indicating one type supported by the OS it will leave the partition and its data untached.
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2012-08-20 16:22
    Attached are results from 9 different cards -- SanDisk, Kingston, Transcend, PNY, and Panasonic. Two of them are old, 16MB and 256MB. The 256MB card gave rather odd results, so I ran it by the Mac Disk utility which found errors that it was able to repair. So I included your test both before and after repair, but the results still seem odd.

    I modified your test program: 1) my PCB applies power to the card through a pmosfet when p12 is low. I first tried making it low at the top of the spin code, but something later was making it high (or input) again and turning off power to the card. Bizarre results! After a brief look I didn't see anything doing that in either the spin or the pasm, but I found that I could make it work by adding another out[12]~ after the COGNEW to keep the card turned on. 2) There was still a bit of initial garbage coming from the serial port, cured by moving dbg.start and 0.1 s delays down to after COGNEW.
  • evanhevanh Posts: 15,949
    edited 2012-08-20 17:52
    dMajo wrote: »
    Sorry Evanh, perhaps my english is not good enough. I mean that if the OS reconize wrong data in the VBR can try to correct them. The MBR will clearly identify the partition by its partition type information and if this parameter is not indicating one type supported by the OS it will leave the partition and its data untached.

    Remember, the default layout is with a MBR. If it's partitionless, then the system designer is the one who made it that way.
  • AribaAriba Posts: 2,690
    edited 2012-08-20 18:01
    evanh wrote: »
    Remember, the default layout is with a MBR. If it's partitionless, then the system designer is the one who made it that way.
    I have here a 4GB Kingston SD card with no MBR just a FAT32 boot sector. So who is the system designer that made it that way?

    Andy
  • AribaAriba Posts: 2,690
    edited 2012-08-20 18:04
    What I am really interessted in is how many SD cards do you find which will not initialize correct. Cluso modification do not test the timeout abort, so you see this only in that you get a MBR with all zeroes. This is the output of my (only) not working card:
    testing...
    Parameters used...
    00 00 1F FF 00 00 C1 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 00 00 C0 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 00 00 C0 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 00 00 C0 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 00 00 C0 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 00 00 C0 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 00 00 C0 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 08 AA C0 FF 37 AA 05 FF 29 AA 05 FF
    11 00 05 FF F3 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    

    Andy
  • evanhevanh Posts: 15,949
    edited 2012-08-20 18:21
    Ariba wrote: »
    I have here a 4GB Kingston SD card with no MBR just a FAT32 boot sector. So who is the system designer that made it that way?

    I'd doubt the card maker formatted it that way. Anyway, there is nothing wrong with VBR at block 0. There is no need for partitions at all and anything could boot that way just fine. Just like a floppy. :)
  • Cluso99Cluso99 Posts: 18,069
    edited 2012-08-20 19:02
    Thanks all. Keep it coming. I probably need to strip the top bit from the ASCII output or also check for characters >=$80.
  • pgbpsupgbpsu Posts: 460
    edited 2012-08-21 10:06
    Hi Cluso99-

    Here's another test. It's the same card I used in the two tests above:
    16Gb SanDisk microSDHC; formatted as ext3

    I think the potential of the prop II, with its larger memory, opens up the door for serious datalogging applications. Ones that would benefit from long filenames or ext2/3 files systems. Any boot-from-SD feature that couldn't work from an NON-FAT16/32 card isn't a complete solution in my mind.
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    
  • pgbpsupgbpsu Posts: 460
    edited 2012-08-21 10:16
    SanDisk 2GB standard SD card
    format: unknown
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02  ................
    0A 00 06 3F FF BC 87 00 00 00 39 E0 3A 00 00 00  ...?ÿ¼‡...9à:...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA  ..............Uª
    
  • pgbpsupgbpsu Posts: 460
    edited 2012-08-21 10:18
    Kingston 16GB standard SD card
    format: FAT
    testing...
    Parameters used...
    00 00 C0 FF 00 00 C0 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 00 00 C0 FF 00 00 C0 FF 00 00 C0 FF
    00 00 C0 FF 08 AA C0 FF 37 AA 05 FF 29 AA 05 FF
    11 00 05 FF F3 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    
  • pgbpsupgbpsu Posts: 460
    edited 2012-08-21 10:19
    SanDisk Ultra II SDHC 16GB
    format: raw
    testing...
    Parameters used...
    00 00 01 FF 08 AA 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 01 FF 37 00 01 FF 29 00 01 FF
    37 00 01 FF 29 00 00 FF 3A 00 00 FF 11 00 00 FF
    FE FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    MBR sector 0...
    67 65 6F 50 65 62 62 6C 65 20 50 53 49 43 45 20  geoPebble PSICE
    62 6C 6F 63 6B 20 5A 65 72 6F 2E 20 20 20 20 20  block Zero.
    20 20 20 20 20 20 53 4E 3A 20 20 20 67 70 62 30        SN:   gpb0
    38 20 44 41 54 45 2F 54 49 4D 45 20 61 72 65 20  8 DATE/TIME are
    67 69 76 65 6E 20 69 6E 20 47 50 53 20 57 45 45  given in GPS WEE
    4B 20 4E 55 4D 42 45 52 20 61 6E 64 20 53 45 43  K NUMBER and SEC
    4F 4E 44 53 20 4F 46 20 43 55 52 52 45 4E 54 20  ONDS OF CURRENT
    57 45 45 4B 2E 20 20 20 20 20 20 20 20 20 20 20  WEEK.
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 53 54 41 52 54 20 54 49 4D 45        START TIME
    3A 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  :
    20 20 20 20 20 20 20 20 20 20 20 31 36 33 33 20             1633
    20 34 32 31 33 36 33 20 4C 41 53 54 20 4D 4F 44   421363 LAST MOD
    49 46 49 43 41 54 49 4F 4E 20 54 49 4D 45 3A 20  IFICATION TIME:
    20 20 20 20 20 20 20 20 20 20 20 20 20 31 36 33               163
    35 20 20 34 34 38 30 37 33 20 63 61 72 64 20 73  5  448073 card s
    69 7A 65 20 69 6E 20 35 31 32 2D 62 79 74 65 20  ize in 512-byte
    62 6C 6F 63 6B 73 3A 20 20 20 20 20 20 20 20 20  blocks:
    20 20 33 31 39 35 30 30 30 30 20 20 66 69 72 73    31950000  firs
    74 20 64 61 74 61 20 62 6C 6F 63 6B 3A 20 20 20  t data block:
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 20 20 20 31 20 20 6E 65             1  ne
    78 74 20 64 61 74 61 20 62 6C 6F 63 6B 3A 20 20  xt data block:
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    20 20 20 20 20 20 20 20 34 39 36 35 35 33 20 20          496553
    66 69 72 73 74 20 4D 41 43 4D 20 62 6C 6F 63 6B  first MACM block
    3A 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  :
    20 20 20 20 20 20 20 20 33 31 37 32 36 35 37 34          31726574
    20 20 6E 65 78 74 20 4D 41 43 4D 20 62 6C 6F 63    next MACM bloc
    6B 3A 20 20 20 20 20 20 20 20 20 20 20 20 20 20  k:
    20 20 20 20 20 20 20 20 20 20 33 31 37 32 36 35            317265
    37 34 20 20 20 20 20 20 20 20 20 20 20 45 4F 46  74           EOF
    
  • pgbpsupgbpsu Posts: 460
    edited 2012-08-21 10:21
    Lexar 1GB SD card
    Format: FAT16

    [code]
    testing...
    Parameters used...
    00 00 01 FF 08 AA 05 FF 37 AA 01 FF 29 AA 01 FF
    37 AA 01 FF 29 AA 00 FF 11 00 00 FF FE FF 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    MBR sector 0...
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 ................
    39 00 06 1F FF DF F5 00 00 00 0B 83 1E 00 00 00 9..
  • pgbpsupgbpsu Posts: 460
    edited 2012-08-21 10:29
    I was unable to get any results from a Panasonic 16 class 4 SDHC card. I can see it on my Mac. It's a FAT32 filesystem but it starts sending non-printable chars to the screen and munches the results. I tried to fix this by commenting out the final dgb command in PRI DisplayMBR, but that didn't fix it. No idea what's going on here. Sorry.

    p
  • SapiehaSapieha Posts: 2,964
    edited 2012-08-21 10:34
    Hi pgbpsu.

    If You have possibility to reformat it by that methode I desribed on Propeller II thread.
    And see if it are both MAC compatible and readable -- that have be very nice.

    pgbpsu wrote: »
    I was unable to get any results from a Panasonic 16 class 4 SDHC card. I can see it on my Mac. It's a FAT32 filesystem but it starts sending non-printable chars to the screen and munches the results. I tried to fix this by commenting out the final dgb command in PRI DisplayMBR, but that didn't fix it. No idea what's going on here. Sorry.

    p
Sign In or Register to comment.