Hi
I saw that HID bootloader has support STM32F407 board, therefore i bought a STM32F407G-DISC1 board. I am able to upload the HID bootloader onto the board via STM32CubeProgrammer successfully. However, the direct USB (known as STM32 Virtual COM Port) can neither be detected by Device Manager (Windows 10) nor Arduino IDE. Although, i can upload the code using HID bootloader in Arduino IDE successfully, but the STM32 Virtual COM Port still cannot be detected, so i can't use the Serial Monitor at all.
I tried to upload the code by using STM32CubeProgrammer(SWD) as upload method on Arduino IDE, STM32 Virtual COM Port can be detected by both Device Manager and Arduino IDE. But this makes me unable to have the Direct USB as programming USB and native USB at the same time, which is a nice feature of HID bootloader since STM32F103 on bluepill.
Is there any solution / guidance on this?
Best,
Samuel
STM32 Virtual COM Port not detected after HID Bootloader uploaded on STM32F407G-DISC1
-
- Posts: 1
- Joined: Fri Jul 16, 2021 7:41 am
-
- Posts: 633
- Joined: Thu Dec 19, 2019 1:23 am
Re: STM32 Virtual COM Port not detected after HID Bootloader uploaded on STM32F407G-DISC1
Which of :https://github.com/search?q=STM32+HID+bootloader ???
You may also want to look deeper into the USB stack with:
https://docs.microsoft.com/en-us/window ... er/usbview
You may also want to look deeper into the USB stack with:
https://docs.microsoft.com/en-us/window ... er/usbview
I'm of the opinion that 3rd party tools (inc. many libs) cause more issues than they solve: P.I.T.A.But this makes me unable to have the Direct USB as programming USB and native USB at the same time, which is a nice feature of HID bootloader since STM32F103 on bluepill.
... appears the Windows driver is loading correctly.I tried to upload the code by using STM32CubeProgrammer(SWD) as upload method on Arduino IDE, STM32 Virtual COM Port can be detected by both Device Manager and Arduino IDE.
Re: STM32 Virtual COM Port not detected after HID Bootloader uploaded on STM32F407G-DISC1
you need to do a usb reset - also called a 'single ended zero', to ask the host to enumerate the buses again.
https://www.usbmadesimple.co.uk/ums_3.htm
oh and i think stm32f407g has its own usb dfu boot loader, all it takes is to set boot0 and reset.
i think there may even be a way to trigger it by rebooting from your sketch
https://www.usbmadesimple.co.uk/ums_3.htm
oh and i think stm32f407g has its own usb dfu boot loader, all it takes is to set boot0 and reset.
i think there may even be a way to trigger it by rebooting from your sketch
Re: STM32 Virtual COM Port not detected after HID Bootloader uploaded on STM32F407G-DISC1
It's totally normal, STM32 USB device doesn't support both of those protocols, either one or other.
Re: STM32 Virtual COM Port not detected after HID Bootloader uploaded on STM32F407G-DISC1
Your board comes with STLink v2 which can provide a virtual com port. So you may have the following set up:
native USB of STM32F407 -- for flashing via embedded STM bootloader
USB of STLink -- for virtual com
However instead of using 2 USB ports you can actually use just the STLink since it supports both flashing via SWD and virtual com on a single USB.
native USB of STM32F407 -- for flashing via embedded STM bootloader
USB of STLink -- for virtual com
However instead of using 2 USB ports you can actually use just the STLink since it supports both flashing via SWD and virtual com on a single USB.