Blink the PC13 LED with an ST-Link V2

Post here first, or if you can't find a relevant section!
Post Reply
medarda
Posts: 1
Joined: Thu Feb 27, 2025 1:47 am

Blink the PC13 LED with an ST-Link V2

Post by medarda »

I’m trying to program my STM32F103C8T6 (Blue Pill) using the Arduino IDE, and I’ve hit a wall. I installed the STM32 core via the Boards Manager using the URL https://github.com/stm32duino/BoardMana ... index.json Chill Guy Clicker, selected "Generic STM32F103C series" under Tools > Board, and set the upload method to "STM32CubeProgrammer (SWD)" since I’m using an ST-Link V2. I wired it up (SWDIO to PA13, SWCLK to PA14, 3.3V, GND, and reset pin), but when I try to upload a simple Blink sketch for the onboard LED on PC13, I keep getting this error: "Failed to connect to target - STM32CubeProgrammer error: No STM32 target found." The ST-Link’s LED blinks green, so it’s powered, but the IDE won’t upload, and STM32CubeProgrammer standalone can’t detect the board either. I’ve double-checked the boot jumper (BOOT0 to 0, BOOT1 floating), reset the board manually, and even reinstalled the drivers, but no luck. What am I missing?
fpiSTM
Posts: 1944
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 108
Location: Le Mans
Contact:

Re: Blink the PC13 LED with an ST-Link V2

Post by fpiSTM »

Remove the 3.3v from the swd connector and power the bord with usb.

Boot 0 an 1 have to be 0.
Post Reply

Return to “General discussion”