espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
695 stars 163 forks source link

Problem with raspberrypi 4B ESP32 SDIO #123

Open micheledarold opened 2 years ago

micheledarold commented 2 years ago

I'm using a ESP32 with version 0.4 for esp-hosted SDIO I'm using raspberry 4 model B with kernel 5.10 and 5.15 and both of them doesn't work due to the error below

[ 105.865934] esp_remove: Context deinit 0 - 0 [ 105.866160] mmc1: card 0001 removed [ 136.608827] mmc1: queuing unknown CIS tuple 0x01 (3 bytes) [ 136.617024] mmc1: queuing unknown CIS tuple 0x1a (5 bytes) [ 136.620488] mmc1: queuing unknown CIS tuple 0x1b (8 bytes) [ 136.624089] mmc1: queuing unknown CIS tuple 0x80 (1 bytes) [ 136.624226] mmc1: queuing unknown CIS tuple 0x81 (1 bytes) [ 136.624362] mmc1: queuing unknown CIS tuple 0x82 (1 bytes) [ 136.627229] mmc1: queuing unknown CIS tuple 0x80 (1 bytes) [ 136.627366] mmc1: queuing unknown CIS tuple 0x81 (1 bytes) [ 136.627502] mmc1: queuing unknown CIS tuple 0x82 (1 bytes) [ 136.627767] mmc1: new high speed SDIO card at address 0001 [ 136.632560] esp_probe: ESP network device detected [ 136.640521] esp_sdio: probe of mmc1:0001:2 failed with error -22 [ 137.080110] esp_handle_isr: CMD53 read/write error at 129

MangeshMalusare commented 2 years ago

Can you confirm which ESP board you are using? This issue occurs either due to absence of required pull-ups on SDIO lines or bad jumper wires.

micheledarold commented 2 years ago

The kit is ESP32 DEV KIT C V4, I add the 10k pull up resistor on all lines but not on IO12/DATA2 because the pin in a bootstrap pin.

MangeshMalusare commented 2 years ago

Please check this: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/sd_pullup_requirements.html#strapping-conflicts-dat2