Skip to content

ports/stm32: Updated STM32L452XX Multi OTG handling #15796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

higstar
Copy link
Contributor

@higstar higstar commented Sep 5, 2024

Added custom Multi OTG handling for STM32L452XX
based on STM32L432XX handling.
#15795

Summary

To enable USB when using an L4 which is not based on the L432, Multi OTG handling seems to fall through the cracks, and results in the build not completing.

Testing

I do not yet have HW, so have not been able to test on a L452 target.

Trade-offs and Alternatives

Ideally the multi OTG handling would not involve piecemeal handling for specific targets, which then needs springling around various files.

Copy link

github-actions bot commented Sep 5, 2024

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS

@andrewleech
Copy link
Contributor

andrewleech commented Sep 5, 2024

On a tangentially related note, if / when this is completed it should simplify USB compatibility and remove the need for per-chip-type handling of all these: Draft: stm32/usb: Add support for using TinyUSB stack by default. #15592

@mattytrentini
Copy link
Contributor

I couldn't find it after a quick look, but I do have a Blues Wireless Swan board somewhere. The micro it's built on is the STM32L4R5ZIY6 - if that's useful to test this PR on then let me know and I'll hunt down the board...

Copy link
Member

@dpgeorge dpgeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

This looks fine to me. I haven't tested it but it's a very low risk change.

Added custom Multi OTG handling for STM32L452xx, based on STM32L432xx
handling.

Fixes issue micropython#15795.

Signed-off-by: Adrian Higgins <adrian@higstar.com>
@dpgeorge dpgeorge merged commit 39ddfed into micropython:master Sep 17, 2024
10 checks passed
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.

4 participants