That is because they ship from WeAct with a proprietary bootloader that reacts to the KEY button. You can still put them in DFU mode by following method 2 a) which I described above.david.prentice wrote: Thu Aug 26, 2021 1:22 pm My brand new WeAct V3.0 board arrived just now.
BOOT0 + RST does not start STM32 Bootloader.
Pressing KEY for 5 seconds does start STM32 Bootloader.
That is because at this stage you have overwritten WeAct's proprietary bootloader with your ASCIITable binary.david.prentice wrote: Thu Aug 26, 2021 1:22 pm I select Upload method: STMCubeProgrammer (DFU)
Build and run ASCIITable.ino
This creates a "STM Serial" on COM3.
When I select COM3 and open Serial Monitor : it displays the ASCII Table
Subsequent BOOT0+RST does not start STM32 Bootloader.
Subsequent KEY does not start STM32 Bootloader.
As you have confirmed, method 2 a) described above, which I have been using for the last 6 months, works rather well to put the Black Pill in DFU programming mode.david.prentice wrote: Thu Aug 26, 2021 1:22 pm Selecting Upload method HID Bootloader 2.2 does not start any Bootloader.
However I can use (DFU) if I unplug USB. Re-plug with MODE0 button pressed.
So it appears that BOOT0 + RST does not start STM32 Bootloader reliably. I suspect that you might succeed after 100 attempts.
And the only way to Bootload is via a power cycle.
The BluePill uploads fine with HID 2.2 (and USB CDC Serial)
No, I have not measured the HSI frequency on either BlackPill yet.
David.
Just to summarize the recommended steps:
1. Compile (Verify) your sketch to make sure there are no compilation errors,
2. In the Arduino IDE, select DFU upload method.
3. Connect the USB C end of a good quality cable to the Black Pill.
4. Press and hold the BOOT button on the Black Pill.
5. While holding the BOOT button pressed, connect the USB A end of the cable to your computer. Release the BOOT button. The power led (red LED) on the Black Pill should be on, and your computer should have detected a DFU device (on a Linux computer, check dmesg).
6. Now click on the Upload button in the Arduino IDE and the binary for your sketch gets uploaded in a few seconds.