Description
Operating System
Windows 10
Arduino IDE version
PlatformIO
Board
esp32-s3-devkitc-1
ArduinoCore version
framework-arduinoespressif32 @ 3.20011.230801 (2.0.11)
TinyUSB Library version
Adafruit TinyUSB Library @ 3.1.0
Sketch as ATTACHED TXT
using examples/MassStorage/msc_sdfat.ino
Compiles correctly but when ran causes exception.
Platformio.ini:
`; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
board_upload.flash_size = 16MB
board_build.partitions = default_16MB.csv
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=0
-DUSE_TINYUSB=true
'-DCFG_TUSB_CONFIG_FILE="${platformio.home_dir}/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/arduino_tinyusb/include/tusb_config.h"'
board_build.arduino.memory_type = opi_qspi
lib_deps =
adafruit/Adafruit TinyUSB Library@ 3.1.0
upload_port = COM3
monitor_port = COM3
monitor_speed = 115200;`
Compiled Log as ATTACHED TXT
Processing esp32-s3-devkitc-1 (platform: espressif32; board: esp32-s3-devkitc-1; framework: arduino) -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitc-1.html
PLATFORM: Espressif 32 (6.4.0) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM)
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20011.230801 (2.0.11)
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 38 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Adafruit TinyUSB Library @ 3.1.0
|-- SdFat - Adafruit Fork @ 2.2.3
|-- SPI @ 2.0.0
Building in release mode
Retrieving maximum program size .pio\build\esp32-s3-devkitc-1\firmware.elf
Checking size .pio\build\esp32-s3-devkitc-1\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.3% (used 20520 bytes from 327680 bytes)
Flash: [ ] 4.6% (used 299757 bytes from 6553600 bytes)`
What happened ?
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
How to reproduce ?
Load example, compile, download and reboot
Debug Log
`ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fce3808,len:0x3ac
load:0x403c9700,len:0x9b4
load:0x403cc700,len:0x292c
entry 0x403c98bc
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x42026a8a PS : 0x00060630 A0 : 0x82003e50 A1 : 0x3fcebbe0
A2 : 0x00000000 A3 : 0x3fc95914 A4 : 0x3fc95d54 A5 : 0x00000000
A6 : 0x3fcf25cc A7 : 0x00000000 A8 : 0x00000001 A9 : 0x3fcebba0
A10 : 0x00000017 A11 : 0x7856a890 A12 : 0x7856a890 A13 : 0x3fc962c4
A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000010 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000002 LBEG : 0x400570e8 LEND : 0x400570f3 LCOUNT : 0xffffffff
Backtrace: 0x42026a87:0x3fcebbe0 0x42003e4d:0x3fcebc00 0x42001b3f:0x3fcebc20 0x4200599a:0x3fcebc50`