Intermittent "sdmmc_read_blocks failed (263)" error

novalight
Posts: 40
Joined: Tue Apr 19, 2016 1:13 pm

Intermittent "sdmmc_read_blocks failed (263)" error

Postby novalight » Thu Jun 21, 2018 8:40 pm

I have a custom board running a SD card in 4 wire mode. Sometimes I get "sdmmc_read_blocks failed (263)" error which is hard to reproduce. The SD-Traces are kept relatively short and the power supply is good.
Next week I have the chance to measure some stuff. What are the software and/or hardware causes which could provoke this issue? What should I measure/check to confirm hardware is working correctly? What could be debugged on the software side?
I have an 4-Channel-Oscilloscope but no logic analyzer. Is there anything special to measure?

Code: Select all

D (1216322) sdmmc_periph: peripheral version 5342270a, hardware config 03c44c83
D (1216323) intr_alloc: Connected src 37 to int 4 (cpu 1)
I (1216329) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
D (1216338) sdmmc_periph: slot=1 host_div=10 card_div=20 freq=400kHz
D (1216345) sdmmc_periph: slot=1 width=1
D (1216350) sdmmc_req: process_command_response: error 0x107  (status=00000100)
D (1216377) sdmmc_cmd: SDHC/SDXC card
D (1216378) sdmmc_req: process_command_response: error 0x107  (status=00000100)
D (1216378) sdmmc_cmd: sdmmc_card_init: io_send_op_cond (1) returned 0x107; not IO card
D (1216397) sdmmc_cmd: host_ocr=0x40ff8000 card_ocr=0xc0ff8000
D (1216397) sdmmc_cmd: sdmmc_card_init: host_ocr=40ff8000, card_ocr=c0ff8000
D (1216403) sdmmc_cmd: switching to 4-bit bus mode
D (1216406) sdmmc_periph: slot=1 width=4
D (1216413) sdmmc_cmd: sdmmc_card_init: switching host to HS mode
D (1216415) sdmmc_periph: slot=1 host_div=4 card_div=0 freq=40000kHz
D (1216422) vfs_fat_sdmmc: using pdrv=0
D (1216559) sdmmc_req: process_data_status: error 0x107 (status=00000208)
E (1216560) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (1216563) diskio_sdmmc: sdmmc_read_blocks failed (263)
D (1216569) sdmmc_req: process_command_response: error 0x107  (status=00000104)
E (1217576) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
D (1217577) sdmmc_cmd: cmd=17, sdmmc_req_run returned 0x107
E (1217578) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (1217585) diskio_sdmmc: sdmmc_read_blocks failed (263)
D (1217591) vfs_fat: vfs_fat_stat: fresult=1
D (1217596) sdmmc_req: process_command_response: error 0x107  (status=00000104)

Who is online

Users browsing this forum: No registered users and 118 guests