chegewara / EspTinyUSB

ESP32S2 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
MIT License
475 stars 70 forks source link

msc example not working? #6

Closed lucadentella closed 3 years ago

lucadentella commented 3 years ago

Hi!

I'm using a lilygo esp32_s2_woor. I was able to run most of the examples provided but the msc one. It compiles but when I connect the module to my PC nothing happens...

I also made an attempt defining this:

#define CFG_EXAMPLE_MSC_READONLY

but it didn't solve. Was anyone able to run this example? Thanks!

lucadentella commented 3 years ago

this is the stacktrace:

ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x8
load:0x3ffe6108,len:0x608
load:0x4004c000,len:0x824
load:0x40050000,len:0x2a90
entry 0x4004c130
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4001abc8  PS      : 0x00060030  A0      : 0x800810b5  A1      : 0x3ffc5570  
A2      : 0x00000000  A3      : 0x3ffbd568  A4      : 0x00001400  A5      : 0x00000000  
A6      : 0x4d903ceb  A7      : 0x534f4453  A8      : 0x3ffbe968  A9      : 0x3ffc5530  
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x00000003  A13     : 0x00000000  
A14     : 0x00000400  A15     : 0x00000008  SAR     : 0x00000000  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000000  LBEG    : 0x00000003  LEND    : 0x00000000  LCOUNT  : 0x40026825  

Backtrace:0x4001abc5:0x3ffc5570 |<-CORRUPTED

ELF file SHA256: 0000000000000000

Rebooting...
lucadentella commented 3 years ago

ok I found this post on esp32 forum and it solved.

To summarize:

image