Search This Blog

Radio Guy Tees

Radio Guy Tees
Radio Guy T-Shirts

Wednesday, 13 August 2025

It's Pill Time again

 You may recall that I used the SDM32 MCU range quite a lot and also the "Blue Pill" board for a lot of my projects.

Recently the board support package that I was using in Arduino has become depreciated and I wanted to document how I now use the boards with the Arduino IDE.

Firstly, in board manager I have added this to the "additional URL's" section:

https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json

This is the official board support file from the manufacturer.

Once that is complete, then you also need to install the STMCubeProgrammer, also from the manufacturer.

Once done, there are a number of options to upload from the IDE to the board, most require messing about with the boot jumpers, but there is a HID bootloader we can instal on the board for permanent conenctivity between the IDE and the board. Note the boot jumper settings below:


We then use the STMCubeProgrammer application to connect to the board using the FTDI COM port.


We can then download the appropriate binary from the selection here.

It's critical that you get the correct binary bootloader uploaded, I used the medium density PC13 for my board (PC13 is the pin the onboard LED connection).


Once loading is complete, move the boot jumper back BEFORE removing power, then bob is indeed your uncle.

Inside the IDE, I then used the following settings:


One of my boards didn't work using this method and I strongly suspect a counterfiet device - beware!



No comments:

Post a Comment