Code: Select all
void app_main(void)
{
ESP_LOGI(TAG, "Initializing SD card");
#ifndef USE_SPI_MODE
ESP_LOGI(TAG, "Using SDMMC peripheral");
sdmmc_host_t host = SDMMC_HOST_DEFAULT();
host.slot = SDMMC_HOST_SLOT_0;
But every time I do that, I get:
Code: Select all
␛[0;32mI (282) cpu_start: Starting scheduler on PRO CPU.␛[0m
␛[0;32mI (0) cpu_start: Starting scheduler on APP CPU.␛[0m
␛[0;32mI (284) example: Initializing SD card␛[0m
␛[0;32mI (284) example: Using SDMMC peripheral␛[0m
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Core 0 register dump:
PC : 0x400d1bc0 PS : 0x00060030 A0 : 0x800d1d4f A1 : 0x3ffc64b0
A2 : 0x0000000b A3 : 0x3ff4905c A4 : 0x00000000 A5 : 0x3ffc85b4
A6 : 0x3ffc2028 A7 : 0x3ffc85c0 A8 : 0x800d1310 A9 : 0x3ffc6490
A10 : 0x0000000b A11 : 0x00000000 A12 : 0x3ffc8618 A13 : 0x00000000
A14 : 0x00000001 A15 : 0x00000000 SAR : 0x00000013 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0xffffffff
Backtrace: 0x400d1bc0:0x3ffc64b0 0x400d1d4c:0x3ffc64e0 0x400d2395:0x3ffc6500 0x400d40ac:0x3ffc6550 0x400d0e29:0x3ffc65a0 0x400d2df
0:0x3ffc6690
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
Thanks!