

Now we have to prepare the Arduino IDE and install the drivers before we can program the STM32 board. We have flashed the STM32 board with Arduino boot loader successfully. Step 8: Once the flashing is completes successfully, we will get the below screen.
#STM32 DRIVER SKYBOARD SOFTWARE#
Step 7: The software will download some required files as shown below and will then begin the process of flashing.

Step 6: In the next step, select Download to device and browse to the location where we downloaded our bin file in step 1 and select it. The board we are using is STM32F1 with 128K flash memory. Step 5: Click on the Next button twice and the software will again automatically detect the board details and display as shown below. Leave the rest of the setting as it is as shown below. The software will automatically detect the COM port if not use the Device manager and make sure you select the correct COM port number. Step 4: Once downloaded install the software, make sure your STM32 board is connect to your computer though FTDI board and then launch the software. Don’t forget to check your spam folder for the E-mail, sometimes it takes a couple of minutes for the E-mail to arrive. Yes it’s a bit frustrating but this is how it should be done. Then follow the link back to the website and click on get software again and you download will begin. Step 3: To download the software you have to enter your E-mail address and the download link will be sent to your E-mail. Click on this link to get into the ST website and scroll to the bottom and click on get software Step 2: Next we have to download and install the STM Flash loader software to flash the downloaded bin file into STM32. There are many versions of bin file, for the Blue Pill board use this github link and click on the download button to download the bin file. Step 1: We have to download the boot loader program file binaries (bin file) form the github page. Once we have made the above connection connect the FTDI board to your computer and follow the steps to flash the boot loader into the STM32. Uploading the Maple Boot loader to STM32 Development board Once the boot loader is flashed this pin can be changed back to initial position (operating mode). Make sure the boot 0 jumper pin on the board is set to 1 (programming mode) while uploading the boot loader. Where the A9 is the Tx pin of STM32 MCU and the A10 is Rx pin. The Rx and Tx pin of the FTDI board is connected to the A9 and A10 pin of the STM32 respectively. The ground is connected to the Ground of STM32. The Vcc pin of the FTDI board is connected to the STM32 5V pin of power the board. This board is connected to the Rx and Tx pin of the STM32 as shown below. To do this we need to use a Serial FTDI board.

To program the STM32 Blue Pill board directly through USB port we need to first flash the Maple boot loader into the MCU. STM32 – (BluePill) Development Board ( STM32F103C8).Before proceedings with this tutorial make sure you have read the previous tutorial to understand the basics of this board including details about the specifications and pin-outs.

However this boot loader is still in developmental stage at the time of documenting this tutorial and is not advisable for critical applications. This boot loader can be flashed into the STM32 once and thereafter we can directly use the USB port of the STM32 board to upload programs just like any other Arduino boards. Hopefully though, there exists an experimental boot loader developed by LeafLabs for Maple mini boards. The reason for doing that is, when the STM32 development board is purchased it does not come with an Arduino ready boot loader and hence the board will not be discovered by your computer when connected through the USB. Also the mini-USB port on the Development board was left totally unused. In order to program the Board we utilised a FTDI programmer module and also had to toggle the boot 0 jumper between and 1 position while uploading and testing a code, which is surely a daunting task. In our previous tutorial we learnt the basics of the STM32 Development Board and also programmed it to blink an LED. Also since, this board can be easily programmed using the Arduino IDE it has become a preferable choice for many hobbyists and engineers for quick prototyping. The STM32 Development Board housing the STM32F103C8 Microcontroller is getting increasingly popular thanks to its ARM Cortex M3 architecture, it has high operational speed and more peripheral options.
