Hi mendip_discovery,
Sorry for the very late reply.
I have just re-installed a new (actually refurbished) laptop, a Thinkpad T470, with both Ubuntu Linux 23.04 and Windows 11 in a dual boot configuration.
This will be my main MCU software development machine from now on.
In Ubuntu Linux, I also manually installed both Arduino IDE 2.1.0, the STM32 board support, and STM32 Cube Programmer and tested these on a Black Pill STM32F411CEU6, and
this combination works fine, I have verified that I can program the Black Pill using the Cube Programmer DFU method. The Black Pill must be put in DFU mode as usual by pressing the
boot button and then connecting the USB-C cable, then releasing the
boot button. One can check that the Black Pill has entered DFU mode by checking the Linux kernel messages with the
dmesg command. Note that sometimes the Black Pill fails to enter DFU mode on the first try (this time it only worked for me on the second try, but I remember it taking quite a few tries sometimes). Room temperature was 21.5C.
I am next going to test the same software combo but using Windows 11 to come as close as possible to your setup.
I'll add some screenshots ASAP.
Thanks to all of you for your patience !
Notes :
1. The Arduino IDE 2.1.0 is a free download from the Arduino website.
2. The STM32 board support is automatically installed following the instructions from the STM32duino GitHub Wiki.
3. The STM32 Cube Programmer is a free download from the STM32 electronics website, but requires one to register. The registration is free.
4. To get the Arduino Serial Monitor to have permissions to communicate with the STM32F411CEU6, you have to include yourself in the
dialout group, using the command:
sudo usermod -aG dialout <your user name>