Keep getting HUB: Stage failed: START error (ESP-IDF v5.0.6) [SOLVED]
Posted: Thu May 09, 2024 10:35 am
I get HUB: Stage failed: START error wehen inserting USB MSC while being connected to a mqtt server and with BLE (nimBLE) initialized and working:
But if you think seeing my code would help you understand the issue better, i can provide the portion regarding what you need to see, keep in mind that my project includes:
- while not connected to the mqtt server the USB is recognized and everything works.
- if I don't call bluetooth_init, therefore disabling BLE, than USB works perfectly when inserted even during mqtt connection.
- if i don't initialize my 3 buttons using the buttons component (v3.2.0) and my addressable led using the led_strip component (v.2.5.0), than the error i get is "USB_MSC: msc_host_install_device(367)", which seems to be related to the "usb_host_interface_claim()" method, but I'm not sure.
But if you think seeing my code would help you understand the issue better, i can provide the portion regarding what you need to see, keep in mind that my project includes:
- EEPROM
- LITTLEFS
- LVGL (display and touchscreen)
- digital IO such as buttons, 2 leds and 1 addressable led
- BLE (NimBLE)
- WI-FI (both AP and STA mode)
- MQTT connection
- WEBSOCKET server
- MSC