r/stm32f103 • u/thekakester • Apr 30 '21
r/stm32f103 • u/thekakester • Apr 20 '21
STM32F103 is now a PUBLIC subreddit
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 • u/[deleted] • Jul 18 '24
Question (Beginner) Chinese Cortex M0 in Vapes
This is a Chinese Cortex M0 chip found in disposable vapes with the color screens. What hardware and software could I use to interface with this chip?
Chip details: https://www.lcsc.com/mobile/product-detail/Microcontroller-Units-MCUs-MPUs-SOCs_PUYA-PY32F030K28U6TR_C3018718.html
r/stm32f103 • u/Tonygrapher1810 • Jul 27 '24
Authorized check STM23F103
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 • u/shadow18707 • Dec 31 '21
Using an Stm32f103rb to pid control two brushless motors
Hello everyone, my graduation project is trying to make a bar balance by controlling two brushless motors with an stm32f103rb microcontroller and an adxI345 sensor. I am trying to find online sources that can help me with writing the code on cubeide for my project but I found nothing of use. My problem is that I don't know how to properly implement a pid code that will control the pulse sent to my motors based on the readings the sensor gives. Any help would be greatly appreciated.
r/stm32f103 • u/BeemoBeep • May 08 '21
Question (Beginner) Blue Pill: No device found on target
Hi everyone,
I started learning about embedded systems using a STM32 Blue pill board yesterday and I already am having issues with the board. I have posted this question in r/embedded but I think my question would also fit here.
I have 2 blue pill boards that I used to run a blink program by using STM32CubeIDE after following this tutorial . While one of the boards managed to do a proper LED blink, the other wasn't able to do so. The error I'm getting was:
Error in initializing ST-LINK device. Reason: ST-LINK: Could not verify ST device! Abort connection. with a pop-up window stating:
Error in final launch sequence: Failed to start GDB server Failed to start GDB server Error in initializing ST-LINK device. Reason: (18) Could not verify ST device! Abort connection. My server options are (default):
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : EnabledThe workarounds I have done with no success were:
Check if the pin connections outside and inside of the ST-LINK V2 are the same - They are the same
Download and install STM32 ST-Utility, disconnect ST-LINK V2 from PC, set BOOT1 and BOOT2 to HIGH (or 1), press "Connect to the Target", do full chip erase, press "Disconnect to the Target", disconnect and reconnect ST-LINK V2 with board and press "Run" in IDE as shown here - Same error
Step 2 but only BOOT 1 is set to HIGH (or 1) - Same error
Set SYS→Debug to Serial Wire option in Pinout and Configuration tab of IDE, generate code and press "Run" and also "Debug" again - Same error
The workarounds I have done with partial success were:
Tried doing openOCD as the debug probe in Debugger tab of Run cofiguration - It works the first time I open the STM32CubeIDE but when you change it back to GDB server and then go back again to openOCD, it wont work
Obtain .bin file of code in STM32CubeIDE, open it in STM32CubeProgrammer and download it to the board - program is in the board and LED is blinking but I am hoping that I can upload the code again via STM32CubeIDE and be able to do debugging
Is there a way or another possible workaround for this where I can use again STM32CubeIDE?
Let me know if there are some stuff I need to add in my post. I'm still new to the Blue pill environment but I'm doing my best to understand it.
r/stm32f103 • u/satoshinm • Dec 27 '17
Pill Duck: Scriptable USB HID device using an STM32 blue pill, from mouse jigglers to rubber duckies
r/stm32f103 • u/ARDev1161 • May 06 '26
RP2040 SWIM
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 • u/Sufficient-Brush2189 • Oct 27 '25
Looking for someone to guide me through my STM32 project (willing to pay for help)
galleryr/stm32f103 • u/pikajew97 • Aug 22 '23
Question (Beginner) Help for a beginner with a "Black Pill" Dev Board
Hello, does anyone know of any guides for the black pill? I've seen a few so far but haven't been able to get anything to work using the STM32 IDE. Even if I follow all the steps, I'm unable to flash over the code since the microcontroller is not detected (I'm using an STLINK V2). I've attached pictures of my connections to ensure they are ok.
Furthermore, I've seen more guides for the Blue Pill than the Black Pill. Are these guides interchangable (except for things like clock speeds)? Does anyone have a good guide with full documentation for me to follow?
My final goal is to get this microcontroller to receive data from multiple sensors and to have the data logged and also transmitted via RF module and for now I can't even get the blink to work. All help would be highly appreciated.



r/stm32f103 • u/mehrdad-mixtape • Apr 25 '22
Project Unlock your pc with RFID-RC522 & Stm32f103c8
r/stm32f103 • u/scruss • May 01 '21
simple USB serial frequency meter for Black Pill
r/stm32f103 • u/wanders78746 • Jul 28 '19
Is www.stm32duino.com dead?
I've tried to log in for several days, and all I get is a "Server quota exceeded" message. I know that the site was previously on shaky pinnings, but I thought that Roger and ST Micro had worked all that out. Any info would be appreciated.
r/stm32f103 • u/Aromatic_Oil_2377 • Dec 11 '24
STM32 Based MQTT App ( STM32H7 - Ethernet - LWIP - MQTT - QT MQTT )
r/stm32f103 • u/Low-Weakness-6262 • Jan 29 '24
STM32 103RB for PWM w/ motor driver Escon 50/5
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 • u/[deleted] • Dec 21 '23
How to program a desktop application that will communicate with a microcontroller.
Hi, I have been serching for a long time but cannot find any answer to my question on my own. Could someone please tell me in which programming languages (what is the name of the field of this type of program) desktop applications are created to control keyboards, mice, headphones etc.? What is the best way to create such a GUI. Maybe someone has a rodemap of this specialisation, or could send me tutorials on how to start with something like this from scratch.
I would be bloody grateful for any hints, as I would like to learn something like this.
Only thing is I saw one guy doing something similar on stm32 using tkinter in python. And some lame projects in visual studio code 2019
Some examples:



r/stm32f103 • u/emreyigitcbc • Dec 09 '23
How to read data from 2 UART's then write to another
Hi! I have STM32F103C8 board and i want only READ from 2 different RX pins and combine these data, then write to 3. UART.
I know that i have to use Interrupts but how?
I didn't understand how. Can you help me?
r/stm32f103 • u/Brightboi2000 • Dec 19 '21
Can't read I2C on NucleoF103
I'm a total beginner. Only got my device yesterday but I have a lot of experience with Arduino.
I'm using STM32duino since I'm already familiar with Arduino IDE.
I keep trying to read an I2C flow sensor on the STM32 but the board just won't recognize it.
Ran the default I2C scanner and it says that no I2C device was found. The same code works perfectly fine on Arduino.
Can someone please guide me?
r/stm32f103 • u/Tinkerer-Dude • Sep 07 '21
Basic trouble with STM32L4 - can't get PC to recognize board
Hi folks - n00b here - I've been trying to get my computers to recognize the STM32L4 board. I've tried Windows 10 in VMs, bare metal, and a Mac. In all cases it seems like my computer doesn't recognize the board when I have it plugged in via my computer's USB --> uUSB STLINK port on the board.
In STM32 Cube Programmer, I try to connect to the board with UART, and it looks like it attempts to connect, then I get the following error:
"Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again..."
I feel like I'm missing something really simple, like a driver, or a basic configuration step.
I've exhausted the documentation. Per the quick start guide, I have jumper JP8 open, JP5 & 6 & 7 closed, and jumper JP4 set to ST_ST_LINK. Would really appreciate any help! Driving myself nuts.
r/stm32f103 • u/[deleted] • Jul 26 '21
Can't use a bluepill clone + stlink v2 clone. Multiples errors
Hey,
Trying to blink the embedded led on gpio c13 using an aliex^ress stm32f103C8 clone and a slink v2 clone.
Tried to program it. Looked for tutorials online but all of them talk about stm32duino (lmao) or when they use hal libraries or arm, they don't show how they plug the stm32 LMAO.
How I connected my stuff: stlink v2 connected to my computer on one side, on the other side of the stlink I connected gnd to the ground of the stm32, 3.3V to the 3.3V of the stm32, SWDIO to the SWDIO of the stm32 and SWCLK to the SWCLK of the stm32.
I know my connection is good because when I change to connections (I connect the SWDIO pin of the arduino to the reset pin of the stlink [which is right above the SWDIO pin and it's the only one where it's not the same pin above so I was scared it was the issue but it's not] I have another error message: "No target detected".
(I do not move the jumper because I think it's useless if using a stlink but I do try to reset the board after loading [trying to load*])
For the programming: I choose stm32f103c8 on cubeMX, set debug to seril wire or smth, set gpios pin c13 to gpio output. I open the project on Keil. On keil I put those 2 lines in the while: "HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13); HAL_Delay(1000);"
I can build with no errors but when I load I get those "pop up windowns":
keil: "Not a genuine ST Device! Abort connection"
Debugger - cortex-M error: "Flash timeout. "Reset the target and try it again"
Debugger - cortex-M error: "Cannot access target. Shutting down debugging session"
uVision: "Erro: flash Download failed - "Cortez M3" "
Then I downloaded STM32 ST-LINK Utility, instaleld it and that's all I did with it xD because when I open it idk what to do.
I can give more info if needed but it's clearer than any of the tutorials I looked at xD
If you don't know the answer to my issue but have a good tutorial maybe that would help me.
r/stm32f103 • u/thekakester • May 02 '21
Question (Advanced) STM32 with ethernet
Has anyone here used ethernet with STM32? I’m looking for a low-cost option that works with STM32.
The F107 and F207 (and a few others) have built in MAC support. This still needs an external PHY chip still, which is fine.
Unfortunately, it’s darn near impossible to source STM32’s right now, so I have no idea what is a reliable/popular/low cost way to implement this.
I’m about to drop $15-20/ea on an STM32F207, which is crazy expensive compared to things like a PIC18F97J60, which is less than $5, AND doesn’t need an external PHY chip.
Thanks!
r/stm32f103 • u/thekakester • Apr 20 '21
New to STM32?
This post is intended to help out with the frequently asked questions when learning STM32 for the first time.
Have a question? Post it below (just one question per post please)
Is this a common question? Upvote it so it gets more visibility
Know the answer? Well... what are you waiting for‽ Answer it!
Please be respectful of people who may ask duplicate or poorly worded questions. Learning STM32 for the first time might be overwhelming already. We don't need to scare people by telling them they're asking "bad questions"