ESP32-S3 USB MSC - Core 1 panic'ed (LoadProhibited)

EspUser123
Posts: 5
Joined: Thu Apr 28, 2022 12:58 pm

ESP32-S3 USB MSC - Core 1 panic'ed (LoadProhibited)

Postby EspUser123 » Tue May 24, 2022 7:47 am

H there,

I'm using the USB MBC example with ESP-IDF 4.4.1.
During/after Uninstall the following Exception appears:

Code: Select all

Device info:
         Capacity: 959 MB
         Sector size: 512
         Sector count: 1966079
         PID: 0x1234 
         VID: 0xABCD 
         iProduct: UDisk            
         iManufacturer: General  
         iSerialNumber:          
I (2259) USB: Writing file
I (2279) USB: Reading file
I (2279) USB: Read from file: 'Hello World!'
I (2279) USB: Unregister
I (2279) USB: Uninstall device
I (2329) USB: Uninstall host
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x42014c89  PS      : 0x00060033  A0      : 0x82013fa9  A1      : 0x3fc96a70  
0x42014c89: root_port_callback at /home/tk/esp/esp-idf/components/usb/hub.c:703

A2      : 0x3fcaf050  A3      : 0x00000002  A4      : 0x00000000  A5      : 0x00000001  
A6      : 0x3fc99f0c  A7      : 0x3fcf5180  A8      : 0x3fc9a404  A9      : 0x00000000  
A10     : 0x00000001  A11     : 0x3fc99f0c  A12     : 0x00060021  A13     : 0x00060023  
A14     : 0x00060923  A15     : 0x00000000  SAR     : 0x00000016  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000  


Backtrace:0x42014c86:0x3fc96a700x42013fa6:0x3fc96a90 0x40376e1e:0x3fc96ac0 0x4209d167:0x3fcf51b0 0x42003da6:0x3fcf51d0 0x4037dc61:0x3fcf51f0 0x4037f8e9:0x3fcf5210 
0x42014c86: root_port_callback at /home/user/esp/esp-idf/components/usb/hub.c:703

0x42013fa6: intr_hdlr_main at /home/user/esp/esp-idf/components/usb/hcd.c:946

0x40376e1e: _xt_lowint1 at /home/user/esp/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1111

0x4209d167: cpu_ll_waiti at /home/user/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:182
 (inlined by) esp_pm_impl_waiti at /home/user/esp/esp-idf/components/esp_pm/pm_impl.c:837

0x42003da6: esp_vApplicationIdleHook at /home/user/esp/esp-idf/components/esp_system/freertos_hooks.c:63

0x4037dc61: prvIdleTask at /home/user/esp/esp-idf/components/freertos/tasks.c:3973 (discriminator 1)

0x4037f8e9: vPortTaskWrapper at /home/user/esp/esp-idf/components/freertos/port/xtensa/port.c:131
Is there a known issue with this? How can I solve this?

Regards

EspUser123
Posts: 5
Joined: Thu Apr 28, 2022 12:58 pm

Re: ESP32-S3 USB MSC - Core 1 panic'ed (LoadProhibited)

Postby EspUser123 » Wed Jun 01, 2022 9:35 am

The application consists of the usb_msc example and another task, that just connects to a wifi.

Within some further researches, I found out, that the excption appears, if the tasks are created not pinned to a specific core (tskNO_AFFINITY).

If I use xTaskCreatePinnedToCore() for task creation it doesn't matter which cores are used, (I tested all 4 combination). The exception didn't appear.

If somebody can explain this, let me know, why this happens.

Who is online

Users browsing this forum: Bing [Bot] and 239 guests