[SOLVED]Unable to Program Blue Pill in Arduino IDE v1.8.12 on Mac Catalina 10.15.5
Posted: Sun Jul 05, 2020 10:39 pm
I recently purchased two batches of generic STM32F103C's from different suppliers.
I was able to program the first batch of boards using a simple FTDI USB-Serial interface in Arduino IDE v1.8.12 on my Mac running Catalina 10.15.5.
However, I haven't been able to get any of the boards from second batch I ordered to work with my FTDI?
I came across an article that suggested that some FTDI boards are simply incompatible with some Blue Pill variants, so apparently the most reliable way to consistently program them is to use an STLink adapter.
I went ahead and bought a generic STLink v2 from eBay before I realized that setup instructions were fairly sparse for Mac.
For starters, I've tried using STM32 board libraries from STMicroelectronics (v1.9.0) and Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32), but I can't seem to get either to allow me to to program with my STLink v2 .
The first challenge I noticed is that my Mac doesn't seem to recognize my STLink v2 when it's plugged into the USB port? (Confirmed using System Information Utility).
I thought I might have to install a driver first to get my system to detect the device, so I looked for a STLink v2 driver on the ST.com site, but was only able to find a Java file called STLinkUpgrade.jar? Does anyone know where could I place this file to enable my system to detect the device?
I also tried installing the STMCubeProgrammer from ST.com, but this is also only a Java package (SetupSTM32CubeProgrammer-2.4.0) and I haven't been able to figure out where to put this either?
Appreciate any and all assistance that can get me going on this.
Cheers!
I was able to program the first batch of boards using a simple FTDI USB-Serial interface in Arduino IDE v1.8.12 on my Mac running Catalina 10.15.5.
However, I haven't been able to get any of the boards from second batch I ordered to work with my FTDI?
I came across an article that suggested that some FTDI boards are simply incompatible with some Blue Pill variants, so apparently the most reliable way to consistently program them is to use an STLink adapter.
I went ahead and bought a generic STLink v2 from eBay before I realized that setup instructions were fairly sparse for Mac.
For starters, I've tried using STM32 board libraries from STMicroelectronics (v1.9.0) and Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32), but I can't seem to get either to allow me to to program with my STLink v2 .
The first challenge I noticed is that my Mac doesn't seem to recognize my STLink v2 when it's plugged into the USB port? (Confirmed using System Information Utility).
I thought I might have to install a driver first to get my system to detect the device, so I looked for a STLink v2 driver on the ST.com site, but was only able to find a Java file called STLinkUpgrade.jar? Does anyone know where could I place this file to enable my system to detect the device?
I also tried installing the STMCubeProgrammer from ST.com, but this is also only a Java package (SetupSTM32CubeProgrammer-2.4.0) and I haven't been able to figure out where to put this either?
Appreciate any and all assistance that can get me going on this.
Cheers!