- Re-entered core dump! Exception happened during core dump!
- Rebooting...
- ESP-ROM:esp32c3-api1-20210207
- Build:Feb 7 2021
- rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
- Saved PC:0x40048b82
- SPIWP:0xee
- mode:DIO, clock div:1
- load:0x3fcd5820,len:0xf64
- load:0x403cc710,len:0x73c
- load:0x403ce710,len:0x2eb8
- entry 0x403cc710
- Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled.
- Core 0 register dump:
- MEPC : 0x40388d52 RA : 0x40382dac SP : 0x3fc8dad0 GP : 0x3fc8c000
- TP : 0x3fc88f1c T0 : 0x7fffffff T1 : 0x01200000 T2 : 0x00000002
- S0/FP : 0x3fc8e000 S1 : 0x3fc8cf1c A0 : 0x3fc8e5ec A1 : 0x00000000
- A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x50d83aa1
- A6 : 0xfa000000 A7 : 0x0000003e S2 : 0x03ffffff S3 : 0x3fc8e000
- S4 : 0x00000000 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
- S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
- T3 : 0x3fc8e53c T4 : 0x00000000 T5 : 0x00000001 T6 : 0x00000000
- MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x000000a8
- MHARTID : 0x00000000
- Stack memory:
- 3fc8dad0: 0x00000008 0x3fc8cf1c 0x3fc8cf00 0x40381284 0x03ffffff 0x00000000 0x3fc8db20 0x4038769e
- 3fc8daf0: 0x00000000 0x00000000 0x3fc8db20 0x40382156 0x00000000 0x00000000 0x00000000 0x00000001
- 3fc8db10: 0x00001881 0x80000005 0x00000000 0x403801ee 0x60023000 0x40383bfa 0x40383c06 0x00000000
- 3fc8db30: 0x3fc8db2c 0x00000000 0x00000000 0x00000000 0x3fc8db44 0xffffffff 0x3fc8db44 0x3fc8db44
Was I wrong?
- uint8_t spi_write_cmd( uint16_t uiCmd )
- {
- // set uiCmd and 7 = bitleng
- REG_WRITE( SPI_USER2_REG, ( uiCmd ) | ( 7 << 28 ) );
- }
- spi_write_cmd( 0x01 ); //Transfer Type: Wr_BUF, CMD STATE = 1bit mode, ADDR STATE= 1bit mode, DATA STATE= 1bit mode
This is the crash File: