cancel
Showing results for 
Search instead for 
Did you mean: 

BlackPill RobotDyn how to program it ??

Suntchi
Associate III

Hi, I'm trying to figure out how to program this MPU with the Arduino IDE.
I tried to make the serial port appear but without any success.
Unfortunately I have lost all reference to the purchase and it seems that RobotDyn no longer exists.

I tried the following configurations:
BlackPill F103C8
BluePill F103C8
BluePill F103C6

I tried to install the bootloader with STMCubeProgrammer using the following bootloaders:
generic_boot20_pc13, generic_boot20_pc13_fastboot, maple_mini_boot20

I installed the following USB drivers:
install_drivers.bat
install_STM_COM_drivers.bat
wdi-simple.exe

In all possible permutations, but I was able to program this board.
And STLINK isn't even displayed, at most I see a Maple_003 port which I tried to use but without success.

Where am I doing wrong ?

24 REPLIES 24

You don't have an ST-LINK, you aren't going to see one.

To access via USB and STM32 Cube Programmer, you need to set the BOOTx jumper pins so that the STM32F1 starts in System Loader mode.

BOOT0=HIGH, BOOT1=LOW

https://community.st.com/t5/stm32-mcus-embedded-software/boot0-boot1-pins-boot-mode-doubt/td-p/472463

The board should then present via USB as "STM32 BOOT DEVICE" or something similar, and you connect in STM32 Cube Programmer using the USB/DFU option, and not as ST-LINK

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

yes, that's what I did but the USB Serial port doesn't appear

I have an STLINK V2 and i used it to install the bootloader

 

this board ?

https://stm32-base.org/boards/STM32F103C8T6-RobotDyn-Black-Pill.html

so use the stlink to flash it.

If you feel a post has answered your question, please click "Accept as Solution".

The standalone ST-LINK/V2 doesn't instantiate a VCP/CDC, so you won't get a serial port.

You'll need to change the BOOT jumpers on the pill board for software loaded into FLASH to run, and bring up a serial port, if that's what the code is supposed to do.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

The problem is that the stlink is only seen by STMCubeProgrammer and not by the Arduino IDE

I also changed the jumper during bootloader programming, but in any case I don't see the serial port but only Maple 003

>>The problem is that the stlink is only seen by STMCubeProgrammer and not by the Arduino IDE

Ok, but that's because Arduino uses other methods to access their, and related, boards. Typically either on with a serial class, but often an MSC class to push updates via drag-n-drop type .BIN copy to the MSC drive.

https://stm32-base.org/boards/STM32F103C8T6-RobotDyn-Black-Pill.html

If you going to use this with the Arduino IDE you're going to need to apply the appropriate loader, and jumper the board to run from FLASH.

With an ST-LINK attached you might be able to debug the situation.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Suntchi
Associate III

Many thanks everyone for your suggestions.
So, this is the situation after trying to install both the maple_mini_boot20 and generic_boot20_pc13 bootloaders, both with the BOOT0 jumper set to 1
I have never programmed a board with the STM32CubeProgrammer, I only saw online how to install the bootloader.
In the condition where the Maple 003 port is displayed on the Arduino IDE, the dfu 4-12.2 port appears but even using that I cannot program the board.
Is it possible to program it using the STM32CubeProgrammer?
Is there a guide to do this?

Immagine.png

Immagine2.png