Skip to main content
Explorer
October 16, 2023
Solved

BlackPill RobotDyn how to program it ??

  • October 16, 2023
  • 7 replies
  • 8254 views

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 ?

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    ST resources are dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes work properly with the firmware we provide.

    Thank you for your understanding.

    7 replies

    Graduate II
    October 16, 2023

    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

    SuntchiAuthor
    Explorer
    October 16, 2023

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

    Graduate II
    October 16, 2023

    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.

    SuntchiAuthor
    Explorer
    October 16, 2023

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

    SuntchiAuthor
    Explorer
    October 17, 2023

    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



    Super User
    October 17, 2023

    here is (in German - maybe use translate) : howto flash bootloader in arduino with st-link ->

    https://www.elektronik-labor.de/Projekte/BluepillArduino.html

     

    SuntchiAuthor
    Explorer
    October 17, 2023

    Hi Ascha.3,
    with these latest versions it is no longer possible to use the STLINK as you can see even using the IDE 1.8 there is no possibility of programming this board with STLINK.
    Using both BlackPill and BluePill or MapleMini, I don't have much chance they are always the same...
    Thank you for your help, but we need something more sophisticated, which unfortunately I don't have; the ability to thoroughly understand this type of hardware and also software.
    Unfortunately I'm inexperienced....  :frowning_face:

     

    Immagine.png

    SuntchiAuthor
    Explorer
    October 18, 2023

    It worked for a few minutes but now it won't connect anymore !!?
    It will mean that I will throw them in the waste bin...

    Graduate II
    October 18, 2023

    The firmware you load onto the STM32F1 has to facilitate the VCP, this can either come from the Arduino Loader parked on it, or from application code if that fills the device's memory.

    Transitioning and resetting might cause the USB connectivity to be lost or fail. It can't speak to the robustness or suitability of the Maple loader.

    SuntchiAuthor
    Explorer
    October 18, 2023

    Thank you Tesla DeLorean.
    I only partially understand what you're telling me due to the lack of culture on the subject, in fact this makes this board very difficult to use, I'm a beginner and I'm trying to learn. Unfortunately all these problems do nothing but increase the complexity of use, obviously I'm talking about myself.
    I thought a more sophisticated card than the BluePill such as the BlackPill would be better as it has a greater memory capacity and therefore even if my programs are not optimized I can still run them. But this way it becomes a difficult undertaking for my limited knowledge.
    My program takes up 60% of the total available space so I don't think this could be the cause of the unstable operation.
    The drivers installed on the PC are the latest and most used, the bootloader is the one written by RogerClark which from various online searches appears to be the best.
    I honestly don't know what to do anymore...

    Graduate II
    October 18, 2023

    For the most seamless integration with ST tools I'd recommend using the Nucleo 144 pins boards. Embedded development where you want / need a debugger.

    For Arduino I'd either suggest their own brand products or those of AdaFruit or SparkFun. For scratch boards of this size the RPi Pico.

    SuntchiAuthor
    Explorer
    October 19, 2023

    Ciao Tesla DeLorean,
    after all I also have an STM32F4XX unfortunately I have little space and the core doesn't fit, I replaced the BluePill due to a memory space problem.
    I saw the Nucleo board but it's too big...
    I also tried using LGT8F328P but they have problems with some drivers and I couldn't get some sensors to work.
    It's a real shame not to be able to make these BlackPills work, for me they were ideal, but without debugging (of the serial monitor) I struggle to check correct functioning.
    Question, can they be programmed with some software other than the Arduino IDE, while still having the possibility of even spartan debugging like the Arduino serial one?

    SuntchiAuthor
    Explorer
    October 24, 2023

    I apologize for the too hasty response regarding the Nucleo boards.
    I went to look at a Mall and only saw boards bigger than the BluePill. But then going to the ST website I realized that I made a mistake, I saw that there are boards of the same size as the BluePills.
    Pardon...

    mƎALLEmAnswer
    Technical Moderator
    April 14, 2025

    Hello,

    ST resources are dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes work properly with the firmware we provide.

    Thank you for your understanding.