r/stm32f103 • • Sep 30 '23

Problem to update a script to my stm32

Post image
0 Upvotes

One time I upload a program to my stm32 , but when I try upload again other script, the stm32 acts normally, (there is a blink in the led), but the script never uploads. This windows appear , but I don't know how upgrade a firmware.


r/stm32f103 • • Sep 13 '23

Help with a Blue Pill STM32F103C8T6 and real time clock (RTC)

0 Upvotes

~RESOLVED~

Hello. I built a SD card reader to simulate an hard drive for an Atari ST following instructions I found on the web. That solution also provides a real time clock for the Atari using the STM32 RTC and a 3V battery on the Vbat pin. The SD card + hard drive emulation are working fine. The real time clock is not working totally. The time is saved on the STM32. It is saved when the power is off thanks to the battery, but the time is not running when on Vbat only. Next time I power the system, I see the time it was switched off. Is it something I need to configure to get the STM32's RTC while on Vbat only? I thought it had a crystal for that. Do I need to do something with the STM32CubeIDE and a ST-Link dongle? So far, I've been loading the code using the Arduino IDE only

Many thanks for your help


r/stm32f103 • • Apr 11 '24

help me pls!! i stuck with this all week!!

0 Upvotes

r/stm32f103 • • May 24 '23

stm32f1+neo6m

0 Upvotes

Hi everybody does anyone know how to receive raw data from the neo6m gps module? it shouldn’t be that difficult since the gps sends data through the serial port. however I don’t know how to receive it


r/stm32f103 • • Mar 20 '25

Idk what's going on...Help plz🥲

Post image
1 Upvotes

Why is the clock undefined also how do I change it????

I am using keil uvision....


r/stm32f103 • • Sep 30 '23

Problem to update a script to my stm32

Post image
0 Upvotes

One time I upload a program to my stm32 , but when I try upload again other script, the stm32 acts normally, (there is a blink in the led), but the script never uploads. This windows appear , but I don't know how upgrade a firmware.


r/stm32f103 • • Nov 12 '21

Question (Beginner) Where can i know the basic of these components schematic drawing?

Post image
1 Upvotes

r/stm32f103 • • Sep 06 '22

Is possible to get the keyboard led's status with a STM32F103C6T6A?

1 Upvotes

Hi guys, I'm trying to create my own keyboard, but I'm not sure if it's possible to handle with an STM32f103c6t6a (bluepill) the keyboard's led (num lock, caps lock, scroll lock). Thx in advance

#keyboard #stm32 #stm32f103 #bluepill #led


r/stm32f103 • • Jan 27 '26

Question (Advanced) URGENT! SCIENCE EXHIBITION DUE TOMORROW. HOW DO I RUN 16 SERVOS FROM ONE SINGLE BLUE PILL?

0 Upvotes

So I've read a lot of articles and asked bunch of questions to different ais. It's said the 4 timers can be utilised to run 16 servos through pwm signal. Or running 12 servos from 3 timers, and running servo.h (12 servos) in the 4th timer. I just honestly want 16 servos to run anyhow. Has anybody tried it? Please dont mention about pca servo driver. I dont have it, the exibition is due tomorrow. Please respond.


r/stm32f103 • • Apr 20 '21

STM32F103 is now a PUBLIC subreddit

17 Upvotes

Hey all, great news! This subreddit is now public. You no longer need to be an approved user to post. I am a new Mod here, so hopefully we can open this community back up.

In the mean time, I’ll start making some changes, and I’ll also be looking for a few new mods to help me out.

I’d really appreciate if you help spread the word that this sub is public again!


r/stm32f103 • • Oct 27 '25

Looking for someone to guide me through my STM32 project (willing to pay for help)

Thumbnail gallery
5 Upvotes

r/stm32f103 • • Mar 18 '25

Clockwise and Anticlockwise motor rotation

2 Upvotes

Hello guys, am a beginner and intrested to learn embedded systems. I recently bought stm32f103 bluepill on aliexpress, installed cube ide and run the blinking led. I try to learn by doing projects. Hence, am kindly asking if anyone know the code of having similar method to run a motor clockwise for a given number of steps if a button is pressed for clockwise direction and another one to run again back to the original position if the other button is pressed for anticlockwise direction, back to original position with same number of steps.

Hardware: stm32f103c8t6, drv8825, stepper motor, button 1( clockwise), buttom 2 (anticlockwise)


r/stm32f103 • • Sep 09 '25

ST-Link v2 - "Device Descriptor Request Failed" after firmware update via STM32CubeIDE

2 Upvotes

Hello all,

I've come here to reddit, with the hope of receiving help in trying to recover this device...

Recently after a few motivation bouths i went and opened a fairly dust box with my old projects and equipment for programing, and went and tried to program a "Blue Pill" clone with a git i found for turning it into a USB controller.

The setup required a ST-link v2 for programing, and after going about the necessary steps to program the board, i get prompted by the STM32CubeIDE, if i wish to update the firmware of this device, for context, at this point i was ready to debug the code and i had the board connected to the st-link v2, ( this apparently had a genuine ST chip, because i had a serial number and the program identified it as such ), needless to say i had this laying around for almost 8 years, and i thought why not, on the first prompt i get the message that i need to hard reset the board to proceed, and i did, the flashing ended, and again asked me to reset the board, this last step, resulted in the title of this post... i got a windows message saying usb device malfunction and could not be recognized, and the device manager shows "Device Descriptor Request Failed". I don't know if this is a problem or not, but i did this update while the dongle was connected to the blue pill and i thought i broke something.

I checked everything, no shorts, 3.3v was present and chip was alive (apparently), D+ add a 2.1kohm resistor ( can't be accurate because i didn't desolder the smd resistor and have a cheap multimeter), the LED on the board would turn on every time i connected to the usb port, but after a time it would turn off and on randomly,this repeated a few times and would turn off completely after a while.

I can't do any of the standard firmware flashing solutions, because the device isn't recognized by the system, even after i reinstalled the drives from ST, STSW-LINK007 and STSW-LINK009.

I decided to try and reflash the firmware and the bootloader into the dongle, using another ST-Link i had, this one is unfortunately a clone, and only worked with the ST-LINK Utility, STSW-LINK004.

Scavenging the net, i found the unprotected-2-1-bootloader.bin, and decompiling the STSW-LINK007 firmware update i found the f2_6.bin, that apparently is the one i need.

I proceeded to install the f2_6.bin using the ST-LINK utility, because the CUBEprogramer refused to connect to the clone, and after bashing my head in the keyboard copy pasting command lines in OpenOCD i got to install the bootloader, but the device keeps saying the same line "Device Descriptor Request Failed", i tried uninstalling the drivers and retrying again with no luck...

Friends of Reddit, i seek your help in this, what did i miss, what did do wrong?

It pains me to let go of a "somewhat genuine" ST link that it was working until i pressed the button, and in part because i can't seem to use the ST-link clone in the CubeIDE, it refuses to work with the program, complaining that can't find any ST-link device.


r/stm32f103 • • May 06 '26

RP2040 SWIM

5 Upvotes

Hi everyone! I made SWIM programmer on RP2040, tested with stm8s003 - https://github.com/ARDev1161/rp2040swim It can be used with my fork of stm8flash - https://github.com/ARDev1161/stm8flash (feat-rp2040-swim branch). Check it out & feel free to add issue


r/stm32f103 • • Jul 27 '24

Authorized check STM23F103

Post image
6 Upvotes

I just got the new IC on my keyboard pcb but I think it looks a bit weird, and I think it could be fake one. Can anybody confirm it for me? And is there any trouble with my pcb if I keep it? Thank you very much!!


r/stm32f103 • • Sep 04 '26

Can I program this board without ST link v2

Post image
2 Upvotes

r/stm32f103 • • Jun 01 '26

Please help me figure out the STM32 firmware for the Arduino IDE.

3 Upvotes

Sorry, I'm from Russia and using a translator. I tried to flash the STM32 via ST-Link version 2, but the guides on YouTube aren't helping. Please help me figure it out. I'm only very basic, like writing code on Arduino, connecting, etc.


r/stm32f103 • • Dec 09 '25

Issue with STM32CubeMX / .ioc file and IDE setup

2 Upvotes

I’m starting out with STM32 (using STM32F103C8T6 – Blue Pill) and I’m facing issues with setting up STM32CubeMX and the .ioc file.

The problems I’m running into:

Confusion about how the .ioc file actually works and what it controls

Unclear which IDE to select (STM32CubeIDE vs external IDE like VS Code)

When generating code from CubeMX, I’m not sure:

where the generated files should go

how the project is properly linked to the .ioc file

After opening the project in the IDE, changes made in CubeMX sometimes don’t reflect correctly, or I’m unsure if I’m regenerating the project the right way

Overall confusion about the correct workflow:

CubeMX → .ioc → code generation → IDE → build → flash

I’d really appreciate a clear beginner-friendly explanation of the correct setup process and common mistakes to avoid when working with .ioc files and STM32CubeMX/CubeIDE.


r/stm32f103 • • Dec 15 '17

Converting an STM32F103 board to a Black Magic Probe

Thumbnail
medium.com
2 Upvotes

r/stm32f103 • • Dec 15 '17

STM32 Blue Pill ARM development board first look: from Arduino to bare metal programming (x-post /r/stm32f4)

Thumbnail
satoshinm.github.io
2 Upvotes

r/stm32f103 • • Mar 27 '18

Strange reset behaviour with blue pill development board and debugger connected

1 Upvotes

So I've got a blue pill STM32F103C8 development board and had a few plays around with it but left it months in between due to problems I've encountered with it... These problems seem to manifest in strange ways - I'm not doing anything complicated, just a freertos LED blinking sample from STM32CubeMX, and they work OK when programmed and powered on their own, however I am seeing very strange reset bahaviour when a debugger is connected and I reset the module (I've tried a jlink in SWD mode and 5-wire JTAG mode and an ST-LINK V2), normally when you reset the module everything should return to it's default settings i.e. all GPIOs should be inputs, but the LED on the board (PC13) stays on, constantly... I can see the code executing via the debugger and see it is toggling the LED state but the LED stays constantly on, I have to unplug it and plug it back in to get it to work properly.

One might jump out and say it's something wrong with the code, but I've got the same project running on the STM32F401 nucleo board and it works as I'd expect, the LED turns off when the reset button is held and works fine after a reset even with the debugger connected. So to me this is pointing to something fundamentally wrong with the blue pill boards I have but I can't think what would cause this behavior. I've tried bridging the Vbat pin to VDD as advised by the datasheet and that makes no difference either. This happens when being powered by a micro-USB cable and when powering the board externally so I don't think it's related to using the micro-USB port.

So does anyone have any clue as to what could be the cause of this issue or any methods of tracking it down?


r/stm32f103 • • Feb 01 '18

Debug I2C communication from MPU6050 to STM32F103C8T6 using Hantek 6022BE USB Oscilloscope

Thumbnail 2bitornot2bit.com
1 Upvotes

r/stm32f103 • • Jan 29 '24

STM32 103RB for PWM w/ motor driver Escon 50/5

Thumbnail
gallery
4 Upvotes

Hi! I’m new to the STM world. I’m using an STM Nucleo F103RB and an escon 50/5 motor driver to support a motor. I am confused about how to wire and connect these. The motor and motor driver are already connected together properly. I am using pin PWM/D11 for pwm (I already generated the proper code and verified with an oscilloscope). I thought about connecting this with AnIN 2+ (J6) on the escon 50/5.

I am unsure how to go about with the power supply and ground connections. The motor driver is already connected to a power supply, what is the easiest way to go about grounding and ensuring the power supply wires are connected properly?

Has anyone used STM with escon 50/5 and could share their wiring set up?

Sorry if this was confusing, like I said, I just started with stm not long ago. I attached an image of the Escon 50/5 pinout and the STM board. Any help is so so much appreciated, thank you so much! <3


r/stm32f103 • • Jan 19 '24

How to fix L6630E and L6226E, using Keil uvision to code STM32F103C8Tx

Thumbnail
self.embedded
3 Upvotes