First I saw that the Windows VCP drivers on the ST website are deprecated for Windows 10, so I didn’t use those. I’m not sure which serial instance to use in my sketch so I tried Serial, Serial1, and an instance of USBSerial. I get a notification “blurp” from the PC but no VCP driver is ever installed. I tried on another computer and it attempted to load a driver and failed with a non-helpful Windows error message that simply advised me that the driver had failed to install.
I decided to simplify things and just load a blink sketch. With this, it will run when connected to a USB charger, but not computer USB. It also launches an attempt to load a driver, which always fails. Along with that, I can see that the sketch is not running because the LEDs are not blinking.
Am I missing something (probably), or is something in STM core 1.05 not quite complete?
I can confirm this works, I was doing some testing with a Black407VET6 & 1.5.0 yesterday.
and normally usb serial is SerialUSB. remember to issue SerialUSB.begin(0); in setup(), note that is still usb-serial.
and you can try SerialUSB.println(“hello world”);
use a terminal program, i think that in Arduino IDE should work.
if usb serial initialise, windows would enumerate the usb ports and normally prompt that there is a new usb device and install the drivers for it.
that driver install has to happen if the driver don’t install it you don’t get usb serial. you may want to try st’s drivers if that helps
for linux it is all built-in
dfu is a different thing, to use dfu set boot0 (it is stm’s own dfu boot loader) and review the thread on f407vet black board.
and if you do not want dfu, make sure boot0 is not set
and oh yes, you are using a ‘raw’ board there is ‘nothing’ before your sketch, your app installs at 0x8000,000 unlike with maple mini / blue pill.
check things like the correct ld script is used. stm32duino libmaple core runs pretty much ‘bare metal’ on f4, you may also want to check out the other cores e.g. stm’s core or stm32 generic, the features would vary
[ag123 – Mon Mar 04, 2019 7:34 pm] –
if you are using libmaple core
He’s using the STM core. I assume 1.50 and not 1.05
Depending on what menu options were selected either there will be no serial enabled, SerialUSB or, Serial.
It would be worth showing a screenshot of the Tools menu.
[BennehBoy – Mon Mar 04, 2019 6:23 pm] –
How do you have the jumpers set on the board? You need to make sure BOOT0 & BOOT1 are both jumpered to ground.
I can confirm this works, I was doing some testing with a Black407VET6 & 1.5.0 yesterday.
Yes, both jumpers are configured to ground. I am using the Generic F407VET6 board profile in the IDE Tools menu (as suggested in the ST docs). I also have “USB Serial (CDC)” selected there. Also I have tried with two different boards of the same type, and two different USB cables.
Can you install USBDeview and see what the board is enumerating as?
- Untitled.png (12.96 KiB) Viewed 175 times