How to enable USB CDC on custom STM32L476 board? #36931
Unanswered
dberenguer
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I guess STM32L4 is supported, at least boards/arm/disco_l475_iot1looks like.
You probably mean PA9 pin muxed for VBUS sensing detection mandatory for self-powered devices? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear community members,
I've started by creating a custom board in Zephyr based on boards/arm/nucleo_l476rg, then changed the pinout according to our real board's pinout and run blinky. Everything runs nicely. However, our board uses the native USB port of the L476 MCU so I wanted to enable this feature as well. At first, I looked at how some STM32F4 boards featuring USB communications are configured so I basically added "- usb_device" in the list of supported hardware in our yaml file and then I appended this piece of code into our dts file:
Apart from this, I expected to find a place where to specify our USB VBUS GPIO pin (PA9) but I had no success in this regard. In any case, samples/subsys/usb/cdc_acm builds ok but after flashing no virtual serial port is detected by my computer. Dmesg shows no activity in fact.
After these tests, I'd say that USB is not supported by the current STM32L4 cores in Zephyr. Am I right? Any advice about how to proceed is more than welcome.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions