USB host MSC example fail
Posted: Sun Sep 08, 2024 4:35 am
ESP v5.3.1
I created a new project using the example USB/HOST/MSC
https://github.com/espressif/esp-idf/tr ... b/host/msc
When I run it and stick a USB stick in i get the following in the terminal.
Its failing on this line: ESP_ERROR_CHECK(msc_host_vfs_register(msc_device, MNT_PATH, &mount_config, &vfs_handle));
Any thoughts why ?
I created a new project using the example USB/HOST/MSC
https://github.com/espressif/esp-idf/tr ... b/host/msc
When I run it and stick a USB stick in i get the following in the terminal.
Its failing on this line: ESP_ERROR_CHECK(msc_host_vfs_register(msc_device, MNT_PATH, &mount_config, &vfs_handle));
I (371) example: Waiting for USB flash drive to be connected
I (1351) example: MSC device connected
ESP_ERROR_CHECK failed: esp_err_t 0x1701 (ERROR) at 0x42007c80
0x42007c80: app_main at J:/ESP_5.3.1/Projects/z/main/msc_example_main.c:294 (discriminator 1)
file: "./main/msc_example_main.c" line 294
func: app_main
expression: msc_host_vfs_register(msc_device, MNT_PATH, &mount_config, &vfs_handle)
abort() was called at PC 0x4037a05f on core 0
0x4037a05f: _esp_error_check_failed at J:/ESP_5.3.1/esp/v5.3.1/esp-idf/components/esp_system/esp_err.c:49
Backtrace: 0x40375b96:0x3fc98010 0x4037a069:0x3fc98030 0x4037fea2:0x3fc98050 0x4037a05f:0x3fc980c0 0x42007c80:0x3fc980f0 0x4202f80b:0x3fc982d0
0x40375b96: panic_abort at J:/ESP_5.3.1/esp/v5.3.1/esp-idf/components/esp_system/panic.c:463
0x4037a069: esp_system_abort at J:/ESP_5.3.1/esp/v5.3.1/esp-idf/components/esp_system/port/esp_system_chip.c:92
0x4037fea2: abort at J:/ESP_5.3.1/esp/v5.3.1/esp-idf/components/newlib/abort.c:38
0x4037a05f: _esp_error_check_failed at J:/ESP_5.3.1/esp/v5.3.1/esp-idf/components/esp_system/esp_err.c:49
0x42007c80: app_main at J:/ESP_5.3.1/Projects/z/main/msc_example_main.c:294 (discriminator 1)
0x4202f80b: main_task at J:/ESP_5.3.1/esp/v5.3.1/esp-idf/components/freertos/app_startup.c:208
ELF file SHA256: 549afd0e5
CPU halted.
Any thoughts why ?