Skip to content

Conversation

@roma-jam
Copy link
Collaborator

@roma-jam roma-jam commented Nov 14, 2025

Description

Synchronization logic:

  1. Take the changes from release/v0.19 branch from Prepare release/v0.19 branch #60
  2. Create the sync/release_v0.18 branch from release/v0.18 branch from fix(ci): Added path to recently added ignore_warning_file.txt in esp-usb #67
  3. Merge the changes out of release/v0.19 branch from step 1 to sync/release_v0.18 branch with solved conflicts:
  • idf_component.yml
  • src/portable/synopsys/dwc2/dcd_dwc2.c (BValid override + Critical Section for xfer)
  • src/portable/synopsys/dwc2/dwc2_common.c Reset procedure
  • src/tusb.c (teardown vs deinit)
  • src/tusb.h (teardown vs deinit)
  • src/tusb_option.h (H4 controller definition vs H4, C5, C61)
  • workflows and ci-related files
  1. Merge the sync/release_v0.18 branch to release/v0.19 branch (current PR)

Changes

This PR applies the ESP-related changes from the release/v0.18 branch to release/v0.19 branch.

Related

Test & Verification

Verify, that final version includes:

Tests, that are not available in CI yet:

Limitations

  • No Remote Wakeup feature on ESP32-P4 USB OTG 2.0
  • No remove obsolete dcd_esp32sx
  • No fix for HID stylus descriptor and HID example
  • No MTP fix
  • No fix of DWC2 enumeration when EP0 size=8
  • No DWC2 fix for EP0 IN
  • No DWC2 ZLP fix

roma-jam and others added 30 commits November 25, 2024 12:11
…ounter

fix(usbd/dcd_dwc2): Fixed epin counter assert, update buffer name for usbd_control debug
…_build_check

feature(ci): Added esp-iot-solution USB Device examples build verification
…st_apps

ci(tinyusb): Added esp-usb test_apps build and run (esp32s2)
…_class

feature(uvc): Applied proprietary changes in UVC Device class
feature(tusb): Added tusb_teardown()
ci(tinyusb): Added esp-idf run (esp32s2)
* fixed unit test with ceedling 1.0.0
roma-jam and others added 23 commits February 11, 2025 19:21
ci(workflow): Update ubuntu runners to ubuntu-latest
TinyUSB does not provide any locking means to protect the DCD variables.
This can lead to race conditions when the user is trying to submit
a transfer while the device is being disconnected. This can cause
the device to be in an inconsistent state, leading to a crash or
undefined behavior.

This commit adds a spin-lock to protect the DCD variables during
device disconnect.

Closes espressif/esp-idf#9691
Also reported in espressif/esp-usb#131
fix(dcd): Fixed race condition on device disconnect
fix(ci): Fixing build IDF and IOT solutions examples
Add ESP32-H4 as a supported MCU in TinyUSB and wire it into build/runtime:

- CMakeLists: map IDF target esp32h4 → OPT_MCU_ESP32H4, family=esp32sx
- tusb_option.h: define OPT_MCU_ESP32H4
- tusb_mcu.h: enable DWC2 USBIP for H4
- dcd_dwc2.c: add H4 USB_WRAP field aliases (wrap_* → legacy names)
- dwc2_esp32.h: add H4 controller entry (FS base/IRQ, ep caps)
- family.c: include H4 in USB init/PHY setup
- idf_component.yml: add esp32h4 target

This enables TinyUSB examples to build for ESP32-H4.
feat(usb): Add ESP32-H4 support in tinyusb
- Add all targets to esp-usb test apps and esp-idf examples
- Fix override tinyusb in the network example
…_example

fix(ci): Cleanup and extension of workflows [v0.18]
…_example

feature(ci): Adding esp32p4 target to Run step [v0.18]
- Added esp-idf release v6.0 to build & run
- Enabled preview target build to the esp-idf examples
- Updated the idf-build-apps version to 2.13.3
feature(ci): Updated CI workflows
Upstream synchronization - Partial  [v0.18]
…ing_file

fix(ci): Added path to recently added ignore_warning_file.txt in esp-usb
@roma-jam roma-jam self-assigned this Nov 14, 2025
@roma-jam roma-jam changed the title Synchronization patch with changes from release/v0.18 branch [v0.19] Synchronization patch with changes from release/v0.18 [v0.19] Nov 14, 2025
@roma-jam roma-jam mentioned this pull request Nov 14, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants