ESP32 reboots when enable SPI
Posted: Wed Oct 24, 2018 3:11 pm
While developing firmware we stumbled upon very strange behaviour.
We have ESP32-WROVER with SPI chip MCP23S09 connected to it.
But after trying to initialize SPI, ESP32 reboots.
Interesting thing is that if we use ESP32-WROOM, then this problem does not happen.
Here is sample application (can use default makefile, default sdkconfig):
So it means that after call to spi_bus_initialize device reboots.
What should I do to fix this problem?
We have ESP32-WROVER with SPI chip MCP23S09 connected to it.
But after trying to initialize SPI, ESP32 reboots.
Interesting thing is that if we use ESP32-WROOM, then this problem does not happen.
Here is sample application (can use default makefile, default sdkconfig):
Code: Select all
I (0) cpu_start: App cpu up.
I (230) heap_init: Initializing. RAM available for dynamic allocation:
I (236) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (242) heap_init: At 3FFB3378 len 0002CC88 (179 KiB): DRAM
I (249) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (255) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (261) heap_init: At 40089618 len 000169E8 (90 KiB): IRAM
I (268) cpu_start: Pro cpu start user code
I (286) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (287) test: before spi_bus_initialize
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5804
load:0x40078000,len:9020
ho 0 tail 12 room 4
load:0x40080000,len:6064
What should I do to fix this problem?