Skip to main content
Sashvat
Associate III
May 3, 2019
Solved

STM32 blue pill not connecting to Arduino IDE.

  • May 3, 2019
  • 4 replies
  • 5762 views

Hi guys, I have a STM32 blue pill and followed instructions from a youtube video which showed me how to program the Blue pill with the Arduino IDE. After doing something I was able to load code on to it but later I wasn't able to. I am using a MacBook Pro and the Arduino is giving me an error message of this-

Arduino: 1.8.9 (Mac OS X), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), Serial, 72Mhz (Normal), Smallest (default)"

Sketch uses 12648 bytes (19%) of program storage space. Maximum is 65536 bytes. Global variables use 2456 bytes (11%) of dynamic memory, leaving 18024 bytes for local variables. Maximum is 20480 bytes. Error probing interface "serial_posix" stm32flash Arduino_STM32_0.9 Cannot handle device "/dev/cu.usbserial-A800GAP3"

Failed to open port: /dev/cu.usbserial-A800GAP3http://github.com/rogerclarkmelbourne/arduino_stm32

Using Parser : Raw BINARY

the selected serial port does not exist or your board is not connected

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences

This is the error message I get every time I hook up my Blue pill to an FTDI tool. What should I do?

This topic has been closed for replies.
Best answer by Peter BENSCH

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Thank you for your understanding.

Regards
/Peter

4 replies

Ozone
Principal
May 3, 2019

You most probably overwrote the Arduino bootloader, which is required for the Arduino toolchain.

Locate a bootloader (binary, Hex, etc.) for your board, and use a JTAG pod (ST-Link, Segger JLink, etc.) to flash it.

Sashvat
SashvatAuthor
Associate III
May 3, 2019

Is this possible with a Mac? and where can I get the boot loader? can you tell me how to do this?

Ozone
Principal
May 3, 2019

I don't use Arduino, and will not.

Try a search engine. The bluepill pages will tell you about the BL.

Nor do I use a Mac.

Pretty sure Segger's JLink stuff run on Mac.

MikeDB
Senior II
May 3, 2019

Are you trying to program it directly using the USB connector on the PCB ? If so, you'll continually have this problem so the simplest solution is to get a $1 CH340 USB-serial adapter and change to programming over serial. It's not possible to overwrite this part of the bootloader so you'll be safe.

Sashvat
SashvatAuthor
Associate III
May 3, 2019

No, I am using a FTDI tool (this one)- 0690X000008BEQ3QAO.jpg

MikeDB
Senior II
May 3, 2019

Ok that's similar to the CH340 one and fine. Your other settings are the same as I use for my Blue Pills, apart from I use a PC so can't help you with MAC drivers.

Do you have another Blue Pill you can check it with ? Otherwise I'd look at the drivers and/or the wiring to the Blue Pill.

Sashvat
SashvatAuthor
Associate III
May 3, 2019

Can anyone please tell me how to make an account in this page?- http://www.stm32duino.com/index.php

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
April 25, 2025

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Thank you for your understanding.

Regards
/Peter