I am trying to use the USBSerial class on an STM32F767VI and it works fine. I also have CAN3 RX setup on pin PA8 (USB SOF) and a GPIO on PA10 (USB ID). I am not using the SOF or ID functionality, but initializing the USB makes it so those pins don’t do anything else. I tried setting “target.usb_speed” to “USE_USB_NO_OTG”, because I am under the impression that SOF and ID are mostly related to OTG, and this is device only, but then I get a whole raft of other compile errors. I also tried using STM32Cube to make my own drivers where the USB is initialized as being device only and it compiles, but changes nothing. Is there any way in the current USB implementation that I can actually use the SOF and ID pins?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
USBDevice support for STM32F3 | 10 | 1803 | November 6, 2020 | |
Use both USB-OTG-HS and USB-OTG-FS as serial devices with custom STM32F446RCTx | 0 | 428 | May 25, 2023 | |
STM32F103 (Bluepill) USBSerial is not Working after init CAN | 0 | 881 | December 11, 2019 | |
STM32F7 USB HS Support | 2 | 3420 | July 17, 2020 | |
Proper way to use USBSerial to read and write | 2 | 1051 | April 1, 2020 |