ESP-IDF v6.1 - #649
Conversation
+ add error screen for usb mount failure at boot
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change migrates platform code to ESP-IDF 6.1. It updates display and I2C drivers, TinyUSB storage, cryptography, Bluetooth, C/C++ symbol exports, ESP32 configuration, build actions, and device properties. It adds USB failure propagation to the boot interface, updates filesystem race handling, and adjusts ESP32-P4 compatibility and linker configuration. Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to Affected display targets may not build, while some USB and accelerated-display startup failures can be hidden or reported incorrectly. These issues should be resolved before merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 38.30% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 94 functions across 50 files. (3 skipped: 3 unsupported.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
Drivers/ili9881c-module/source/ili9881c.cpp (1)
238-238: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winMigrate DMA2D enablement to the runtime panel API.
ESP-IDF v6.1 removes
use_dma2dfromesp_lcd_dpi_panel_config_t, so these designated initializers no longer compile. Remove.use_dma2dfrom all three configurations. Whenconfig->use_dma2dis true, callesp_lcd_dpi_panel_enable_dma2d(internal->panel_handle)after panel creation and handle a non-ESP_OKresult as panel-start failure.Platforms/platform-esp32/source/drivers/esp32_wifi.cpp (1)
84-84: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winDo not map unsupported authentication modes to open authentication.
ESP-IDF 6.1 replaces the removed external-PSK values with
WIFI_AUTH_DUMMY_1andWIFI_AUTH_DUMMY_2. It also definesWIFI_AUTH_UNKNOWNfor invalid or unparseable scan records.api_get_scan_results()passes these values toto_wifi_authentication_type(), whosedefaultbranch reports them asWIFI_AUTHENTICATION_TYPE_OPEN. Preserve a distinct WPA3 or unsupported result.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 7320c46f-64fa-4081-b9f3-79ddbc047ce3
📒 Files selected for processing (55)
Devices/lilygo-tdeck/lilygo,tdeck.dtsDevices/lilygo-tdisplay-s3/CMakeLists.txtDevices/m5stack-stickc-plus2/CMakeLists.txtDrivers/cst816s-module/source/cst816s.cppDrivers/ft5x06-module/source/ft5x06.cppDrivers/ft6x36-module/source/ft6x36.cppDrivers/gc9a01-module/source/gc9a01.cppDrivers/gt911-module/source/gt911.cppDrivers/ili9341-module/source/ili9341.cppDrivers/ili9488-module/source/ili9488.cppDrivers/ili9881c-module/source/ili9881c.cppDrivers/jd9165-module/source/jd9165.cppDrivers/jd9853-module/source/esp_lcd_jd9853.cDrivers/jd9853-module/source/jd9853.cppDrivers/lilygo-module/CMakeLists.txtDrivers/rgb-display-module/source/rgb_display.cppDrivers/ssd1306-module/source/ssd1306.cppDrivers/st7121-module/source/st7121.cppDrivers/st7123-module/source/st7123.cppDrivers/st7123-module/source/st7123_touch.cppDrivers/st7701-module/source/st7701.cppDrivers/st7735-module/source/st7735.cppDrivers/st7789-i8080-module/source/st7789_i8080.cppDrivers/st7789-module/source/st7789.cppDrivers/st7796-i8080-module/source/st7796_i8080.cppDrivers/st7796-module/source/st7796.cppLibraries/QRCode/src/qrcode.hLibraries/mbedtlsModules/crypt-module/CMakeLists.txtModules/crypt-module/source/crypt.cppModules/mbedtls-module/source/module.cppPlatforms/platform-esp32/CMakeLists.txtPlatforms/platform-esp32/include/tactility/drivers/esp32_esp_hosted_ota.hPlatforms/platform-esp32/include/tactility/drivers/esp32_i2s.hPlatforms/platform-esp32/source/drivers/esp32_esp_hosted_ota.cppPlatforms/platform-esp32/source/drivers/esp32_i8080.cppPlatforms/platform-esp32/source/drivers/esp32_wifi.cppPlatforms/platform-esp32/source/drivers/usb/esp32_usb_cdc_device.cppPlatforms/platform-esp32/source/drivers/usb/esp32_usb_device_controller.cppPlatforms/platform-esp32/source/drivers/usb/esp32_usb_device_msc.cppTactility/CMakeLists.txtTactility/Include/Tactility/hal/usb/Usb.hTactility/Private/Tactility/hal/usb/UsbTusb.hTactility/Source/app/apphub/AppHubApp.cppTactility/Source/app/boot/Boot.cppTactility/Source/file/File.cppTactility/Source/hal/usb/Usb.cppTactility/Source/hal/usb/UsbMock.cppTactility/Source/hal/usb/UsbTusb.cppTactility/Source/service/espnow/EspNowBackendHosted.cppTactility/Source/service/espnow/EspNowBackendNative.cppTactility/idf_component.ymlTactilityKernel/include/tactility/drivers/usb_device_controller.hTactilityKernel/include/tactility/drivers/usb_msc_device.hdevice.py
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 4
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: aaefe23f-dece-419a-b071-5932ecd4c232
⛔ Files ignored due to path filters (9)
partitions-16mb-no-sd-dev.csvis excluded by!**/*.csvpartitions-16mb-no-sd.csvis excluded by!**/*.csvpartitions-16mb-with-sd.csvis excluded by!**/*.csvpartitions-32mb-no-sd-dev.csvis excluded by!**/*.csvpartitions-32mb-no-sd.csvis excluded by!**/*.csvpartitions-4mb-with-sd.csvis excluded by!**/*.csvpartitions-8mb-no-sd-dev.csvis excluded by!**/*.csvpartitions-8mb-no-sd.csvis excluded by!**/*.csvpartitions-8mb-with-sd.csvis excluded by!**/*.csv
📒 Files selected for processing (20)
Devices/m5stack-tab5/device.propertiesDrivers/ili9881c-module/source/ili9881c.cppDrivers/jd9165-module/source/jd9165.cppDrivers/st7121-module/source/st7121.cppDrivers/st7123-module/source/st7123.cppModules/c-symbols-module/source/module.cppModules/cpp-symbols-module/README.mdModules/cpp-symbols-module/source/module.cppPlatforms/platform-esp32/CMakeLists.txtPlatforms/platform-esp32/include/tactility/drivers/esp32_esp_hosted_ota.hPlatforms/platform-esp32/private/bluetooth/esp32_ble_internal.hPlatforms/platform-esp32/source/drivers/bluetooth/ble_hci_gate.cPlatforms/platform-esp32/source/drivers/bluetooth/esp32_ble.cppPlatforms/platform-esp32/source/drivers/esp32_esp_hosted_ota.cppPlatforms/platform-esp32/source/drivers/esp32_wifi.cppPlatforms/platform-esp32/source/drivers/esp32p4_libc_compat.cTactility/Source/service/espnow/EspNowBackendHosted.cppTactility/Source/service/espnow/EspNowBackendNative.cppTactility/idf_component.ymldevice.py
💤 Files with no reviewable changes (2)
- Platforms/platform-esp32/private/bluetooth/esp32_ble_internal.h
- Platforms/platform-esp32/source/drivers/bluetooth/ble_hci_gate.c
🚧 Files skipped from review as they are similar to previous changes (1)
- Platforms/platform-esp32/include/tactility/drivers/esp32_esp_hosted_ota.h
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.
+ remove old i2c driver for esp32
Fully declare Module struct
Use new API
Summary by CodeRabbit
New Features
Improvements
Bug Fixes