Skip to main content
Associate II
February 26, 2025
Question

STM32G030C8T6 LED blink not working

Hi everybody,

I am having a problem with stm32g030c8t6 as follows:
I tried to write a draft program to blink the led, when I debug, the ODR register blinks but my Led does not blink. I checked on the PD0 pin and found that there is no signal output. Please help me.

This topic has been closed for replies.

6 replies

Andrew Neil
Super User
February 26, 2025

Welcome to the forum.

You need to give some more details - see How to write your question to maximize your chances to find a solution.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
February 27, 2025

Does the LSB in the IDR register follow along with what the ODR register does? If so, it's working as expected and perhaps the LED is reversed or otherwise not soldered correctly, but the voltage is there. If IDR remains 0, pin could be shorted to ground, or not configured as push pull output.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TRUNG_EMCAuthor
Associate II
February 27, 2025

The ISR register value is the same as ODR but I took an oscilloscope to measure at the IO pins and there is no voltage.

 

Karl Yamashita
Principal
February 27, 2025

Not mind readers here. Custom board?  Show your code. Upload your IOC file. 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
gbm
Super User
February 27, 2025

So why don't you show your code with is probably missing MODER register setup?

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice