Here are the logs for SunDisk Ultra UHS-I 8GB tested on ESP-WROVER-KIT v3ESP_igrr wrote:That is super weird indeed, given that the card is intialized in 1-line mode first, and then it is switched into 4-line mode.WiFive wrote:Isn't it a requirement of SD standard? Could be handshake problem?loboris wrote:The only "problem" I've ever had was that some SDHC/SDXC cannot operate in 1-line mode (but they do operate in 4-line and SPI modes).
1-line mode (Error):
Code: Select all
D (60126) sdmmc_periph: peripheral version 5342270a, hardware config 03c44c83
D (60126) sdmmc_periph: slot=1 div=50 freq=400kHz
D (60126) sdmmc_periph: slot=1 width=1
D (60136) sdmmc_cmd: sdmmc_card_init
V (60136) sdmmc_cmd: sending cmd slot=1 op=0 arg=0 flags=20 data=0x0 blklen=0 datalen=0
V (60146) sdmmc_req: make_hw_cmd: opcode=0, rexp=0, crc=0
V (60146) sdmmc_req: sdmmc_handle_event: evt 00000004 00000000
V (60156) sdmmc_req: process_events: state=SENDING_CMD
V (60166) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (60166) sdmmc_req: process_events state=IDLE next_state=IDLE
V (60176) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0
V (60206) sdmmc_cmd: sending cmd slot=1 op=0 arg=0 flags=20 data=0x0 blklen=0 datalen=0
V (60206) sdmmc_req: make_hw_cmd: opcode=0, rexp=0, crc=0
V (60206) sdmmc_req: sdmmc_handle_event: evt 00000004 00000000
V (60206) sdmmc_req: process_events: state=SENDING_CMD
V (60216) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (60226) sdmmc_req: process_events state=IDLE next_state=IDLE
V (60226) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0
V (60256) sdmmc_cmd: sending cmd slot=1 op=8 arg=1aa flags=1c30 data=0x0 blklen=0 datalen=0
V (60256) sdmmc_req: make_hw_cmd: opcode=8, rexp=1, crc=1
V (60256) sdmmc_req: sdmmc_handle_event: evt 00000100 00000000
V (60256) sdmmc_req: process_events: state=SENDING_CMD
D (60266) sdmmc_req: process_command_response: error 0x107 (status=00000100)
D (60276) sdmmc_req: process_command_response: error 0x107 (status=00000100)
V (60276) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (60286) sdmmc_req: process_events state=IDLE next_state=IDLE
V (60296) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x107 state=0
D (60296) sdmmc_cmd: CMD8 timeout; not an SDHC/SDXC card
V (60306) sdmmc_cmd: sending cmd slot=1 op=55 arg=0 flags=1c00 data=0x0 blklen=0 datalen=0
E (60316) sdmmc_req: handle_idle_state_events unhandled: 00000004 00000000
V (60326) sdmmc_req: make_hw_cmd: opcode=55, rexp=1, crc=1
V (60326) sdmmc_req: sdmmc_handle_event: evt 00000100 00000000
V (60336) sdmmc_req: process_events: state=SENDING_CMD
D (60336) sdmmc_req: process_command_response: error 0x107 (status=00000100)
D (60346) sdmmc_req: process_command_response: error 0x107 (status=00000100)
V (60356) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (60356) sdmmc_req: process_events state=IDLE next_state=IDLE
V (60366) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x107 state=0
E (60376) sdmmc_cmd: sdmmc_card_init: send_op_cond (1) returned 0x107
Code: Select all
D (37111) sdmmc_periph: peripheral version 5342270a, hardware config 03c44c83
D (37111) sdmmc_periph: slot=1 div=50 freq=400kHz
D (37111) sdmmc_periph: slot=1 width=1
D (37121) sdmmc_cmd: sdmmc_card_init
V (37121) sdmmc_cmd: sending cmd slot=1 op=0 arg=0 flags=20 data=0x0 blklen=0 datalen=0
V (37131) sdmmc_req: make_hw_cmd: opcode=0, rexp=0, crc=0
V (37131) sdmmc_req: sdmmc_handle_event: evt 00000004 00000000
V (37141) sdmmc_req: process_events: state=SENDING_CMD
V (37151) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (37151) sdmmc_req: process_events state=IDLE next_state=IDLE
V (37161) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0
V (37191) sdmmc_cmd: sending cmd slot=1 op=0 arg=0 flags=20 data=0x0 blklen=0 datalen=0
V (37191) sdmmc_req: make_hw_cmd: opcode=0, rexp=0, crc=0
V (37191) sdmmc_req: sdmmc_handle_event: evt 00000004 00000000
V (37191) sdmmc_req: process_events: state=SENDING_CMD
V (37201) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (37211) sdmmc_req: process_events state=IDLE next_state=IDLE
V (37211) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0
V (37241) sdmmc_cmd: sending cmd slot=1 op=8 arg=1aa flags=1c30 data=0x0 blklen=0 datalen=0
V (37241) sdmmc_req: make_hw_cmd: opcode=8, rexp=1, crc=1
V (37241) sdmmc_req: sdmmc_handle_event: evt 00000004 00000000
V (37241) sdmmc_req: process_events: state=SENDING_CMD
V (37251) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (37261) sdmmc_req: process_events state=IDLE next_state=IDLE
V (37261) sdmmc_cmd: cmd response 000001aa 00000000 00000000 00000000 err=0x0 state=0
D (37271) sdmmc_cmd: SDHC/SDXC card
V (37271) sdmmc_cmd: sending cmd slot=1 op=55 arg=0 flags=1c00 data=0x0 blklen=0 datalen=0
V (37281) sdmmc_req: make_hw_cmd: opcode=55, rexp=1, crc=1
V (37291) sdmmc_req: sdmmc_handle_event: evt 00000004 00000000
V (37291) sdmmc_req: process_events: state=SENDING_CMD
V (37301) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (37301) sdmmc_req: process_events state=IDLE next_state=IDLE
V (37311) sdmmc_cmd: cmd response 00000120 00000000 00000000 00000000 err=0x0 state=0
V (37321) sdmmc_cmd: sending cmd slot=1 op=41 arg=40ff8000 flags=1030 data=0x0 blklen=0 datalen=0
V (37331) sdmmc_req: make_hw_cmd: opcode=41, rexp=1, crc=0
V (37331) sdmmc_req: sdmmc_handle_event: evt 00000004 00000000
V (37341) sdmmc_req: process_events: state=SENDING_CMD
V (37341) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (37351) sdmmc_req: process_events state=IDLE next_state=IDLE
V (37361) sdmmc_cmd: cmd response 00ff8000 00000000 00000000 00000000 err=0x0 state=0
V (37371) sdmmc_cmd: sending cmd slot=1 op=55 arg=0 flags=1c00 data=0x0 blklen=0 datalen=0
V (37371) sdmmc_req: make_hw_cmd: opcode=55, rexp=1, crc=1
V (37381) sdmmc_req: sdmmc_handle_event: evt 00000004 00000000
V (37381) sdmmc_req: process_events: state=SENDING_CMD
V (37391) sdmmc_req: process_events state=SENDING_CMD next_state=IDLE
V (37401) sdmmc_req: process_events state=IDLE next_state=IDLE
V (37401) sdmmc_cmd: cmd response 00000120 00000000 00000000 00000000 err=0x0 state=0
Code: Select all
D (36117) sdspi_host: sdspi_host_init_slot: SPI2 miso=2 mosi=15 sck=14 cs=13 cd=-1 wp=-1, dma_ch=1
I (36117) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
D (36127) sdmmc_cmd: sdmmc_card_init
V (36127) sdmmc_cmd: sending cmd slot=1 op=0 arg=0 flags=20 data=0x0 blklen=0 datalen=0
V (36137) sdspi_host: sdspi_host_start_command: slot=1, CMD0, arg=0x00000000 flags=0x4, data=0x0, data_size=0 crc=0x4a
V (36147) sdspi_transaction: r1 = 0xff hw_cmd.r[0]=0xffffffff
V (36157) sdmmc_cmd: cmd response 000000ff 00000000 00000000 00000000 err=0x0 state=0
V (36187) sdmmc_cmd: sending cmd slot=1 op=0 arg=0 flags=20 data=0x0 blklen=0 datalen=0
V (36187) sdspi_host: sdspi_host_start_command: slot=1, CMD0, arg=0x00000000 flags=0x4, data=0x0, data_size=0 crc=0x4a
V (36187) sdspi_transaction: r1 = 0x01 hw_cmd.r[0]=0xffffffff
V (36197) sdmmc_cmd: cmd response 00000001 00000000 00000000 00000000 err=0x0 state=0
V (36227) sdmmc_cmd: sending cmd slot=1 op=8 arg=1aa flags=1c30 data=0x0 blklen=0 datalen=0
V (36227) sdspi_host: sdspi_host_start_command: slot=1, CMD8, arg=0x000001aa flags=0x20, data=0x0, data_size=0 crc=0x43
V (36227) sdspi_transaction: r1 = 0x01 hw_cmd.r[0]=0xaa010000
V (36237) sdmmc_cmd: cmd response 000001aa 00000000 00000000 00000000 err=0x0 state=0
D (36247) sdmmc_cmd: SDHC/SDXC card
V (36247) sdmmc_cmd: sending cmd slot=1 op=59 arg=1 flags=1c00 data=0x0 blklen=0 datalen=0
V (36257) sdspi_host: sdspi_host_start_command: slot=1, CMD59, arg=0x00000001 flags=0x4, data=0x0, data_size=0 crc=0x41
D (36267) sdspi_host: data CRC set=1
V (36267) sdspi_transaction: r1 = 0x01 hw_cmd.r[0]=0xffffffff
V (36277) sdmmc_cmd: cmd response 00000001 00000000 00000000 00000000 err=0x0 state=0
V (36287) sdmmc_cmd: sending cmd slot=1 op=55 arg=0 flags=1c00 data=0x0 blklen=0 datalen=0
V (36297) sdspi_host: sdspi_host_start_command: slot=1, CMD55, arg=0x00000000 flags=0x4, data=0x0, data_size=0 crc=0x32
V (36307) sdspi_transaction: r1 = 0x01 hw_cmd.r[0]=0xffffffff
V (36307) sdmmc_cmd: cmd response 00000001 00000000 00000000 00000000 err=0x0 state=0
V (36317) sdmmc_cmd: sending cmd slot=1 op=41 arg=40ff8000 flags=1030 data=0x0 blklen=0 datalen=0
V (36327) sdspi_host: sdspi_host_start_command: slot=1, CMD41, arg=0x40ff8000 flags=0x4, data=0x0, data_size=0 crc=0x0b
V (36337) sdspi_transaction: r1 = 0x01 hw_cmd.r[0]=0xffffffff
V (36347) sdmmc_cmd: cmd response 00000001 00000000 00000000 00000000 err=0x0 state=0
V (36357) sdmmc_cmd: sending cmd slot=1 op=55 arg=0 flags=1c00 data=0x0 blklen=0 datalen=0
V (36357) sdspi_host: sdspi_host_start_command: slot=1, CMD55, arg=0x00000000 flags=0x4, data=0x0, data_size=0 crc=0x32
V (36367) sdspi_transaction: r1 = 0x01 hw_cmd.r[0]=0xffffffff
V (36377) sdmmc_cmd: cmd response 00000001 00000000 00000000 00000000 err=0x0 state=0
V (36387) sdmmc_cmd: sending cmd slot=1 op=41 arg=40ff8000 flags=1030 data=0x0 blklen=0 datalen=0
V (36397) sdspi_host: sdspi_host_start_command: slot=1, CMD41, arg=0x40ff8000 flags=0x4, data=0x0, data_size=0 crc=0x0b
V (36407) sdspi_transaction: r1 = 0x01 hw_cmd.r[0]=0xffffffff
V (36407) sdmmc_cmd: cmd response 00000001 00000000 00000000 00000000 err=0x0 state=0
V (36427) sdmmc_cmd: sending cmd slot=1 op=55 arg=0 flags=1c00 data=0x0 blklen=0 datalen=0
V (36427) sdspi_host: sdspi_host_start_command: slot=1, CMD55, arg=0x00000000 flags=0x4, data=0x0, data_size=0 crc=0x32
V (36437) sdspi_transaction: r1 = 0x01 hw_cmd.r[0]=0xffffffff
V (36447) sdmmc_cmd: cmd response 00000001 00000000 00000000 00000000 err=0x0 state=0
V (36447) sdmmc_cmd: sending cmd slot=1 op=41 arg=40ff8000 flags=1030 data=0x0 blklen=0 datalen=0
V (36457) sdspi_host: sdspi_host_start_command: slot=1, CMD41, arg=0x40ff8000 flags=0x4, data=0x0, data_size=0 crc=0x0b
V (36467) sdspi_transaction: r1 = 0x00 hw_cmd.r[0]=0xffffffff
V (36477) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0
V (36487) sdmmc_cmd: sending cmd slot=1 op=58 arg=0 flags=1630 data=0x0 blklen=0 datalen=0
V (36487) sdspi_host: sdspi_host_start_command: slot=1, CMD58, arg=0x00000000 flags=0x10, data=0x0, data_size=0 crc=0x7e
V (36507) sdspi_transaction: r1 = 0x00 hw_cmd.r[0]=0x0080ffc0
V (36507) sdmmc_cmd: cmd response c0ff8000 00000000 00000000 00000000 err=0x0 state=0
D (36517) sdmmc_cmd: host_ocr=0x40ff8000 card_ocr=0xc0ff8000
D (36527) sdmmc_cmd: sdmmc_card_init: host_ocr=40ff8000, card_ocr=c0ff8000
V (36527) sdmmc_cmd: sending cmd slot=1 op=10 arg=0 flags=50 data=0x3ffbb1b0 blklen=0 datalen=16
V (36537) sdspi_host: sdspi_host_start_command: slot=1, CMD10, arg=0x00000000 flags=0x5, data=0x3ffbb1b0, data_size=16 crc=0x0d
V (36547) sdspi_transaction: r1 = 0xff hw_cmd.r[0]=0x03feff00
V (36557) sdmmc_cmd: cmd response 000000ff 00000000 00000000 00000000 err=0x0 state=0
V (36567) sdmmc_cmd: sending cmd slot=1 op=9 arg=0 flags=1c50 data=0x3ffbb1b0 blklen=0 datalen=16
V (36577) sdspi_host: sdspi_host_start_command: slot=1, CMD9, arg=0x00000000 flags=0x5, data=0x3ffbb1b0, data_size=16 crc=0x57
V (36587) sdspi_transaction: r1 = 0xff hw_cmd.r[0]=0x40feff00
V (36587) sdmmc_cmd: cmd response 000000ff 00000000 00000000 00000000 err=0x0 state=0
V (36597) sdmmc_cmd: sending cmd slot=1 op=55 arg=0 flags=1c00 data=0x0 blklen=0 datalen=0
V (36607) sdspi_host: sdspi_host_start_command: slot=1, CMD55, arg=0x00000000 flags=0x4, data=0x0, data_size=0 crc=0x32
V (36617) sdspi_transaction: r1 = 0x00 hw_cmd.r[0]=0xffffffff
V (36627) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0
V (36627) sdmmc_cmd: sending cmd slot=1 op=51 arg=0 flags=1c50 data=0x3fff0b28 blklen=8 datalen=8
V (36637) sdspi_host: sdspi_host_start_command: slot=1, CMD51, arg=0x00000000 flags=0x5, data=0x3fff0b28, data_size=8 crc=0x63
V (36647) sdspi_transaction: r1 = 0xff hw_cmd.r[0]=0x01803502
V (36657) sdmmc_cmd: cmd response 000000ff 00000000 00000000 00000000 err=0x0 state=0
D (36667) sdmmc_cmd: switching to DS bus mode
D (36667) sdspi_host: Setting card clock to 20000 kHz
V (36677) sdmmc_cmd: sending cmd slot=1 op=55 arg=0 flags=1c00 data=0x0 blklen=0 datalen=0
V (36687) sdspi_host: sdspi_host_start_command: slot=1, CMD55, arg=0x00000000 flags=0x4, data=0x0, data_size=0 crc=0x32
V (36697) sdspi_transaction: r1 = 0x00 hw_cmd.r[0]=0xffffffff
V (36697) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0
V (36707) sdmmc_cmd: sending cmd slot=1 op=51 arg=0 flags=1c50 data=0x3fff0b28 blklen=8 datalen=8
V (36717) sdspi_host: sdspi_host_start_command: slot=1, CMD51, arg=0x00000000 flags=0x5, data=0x3fff0b28, data_size=8 crc=0x63
V (36727) sdspi_transaction: r1 = 0xff hw_cmd.r[0]=0x01803502
V (36737) sdmmc_cmd: cmd response 000000ff 00000000 00000000 00000000 err=0x0 state=0