cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G030C8T6 LED blink not working

TRUNG_EMC
Associate

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.

6 REPLIES 6

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.

TDK
Guru

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".

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.

 

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

Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!

If you find my solution useful, please click the Accept as Solution so others see the solution.

If IDR is high, voltage is there. It's independent from ODR.

Show your setup details and what/where you're measuring. Something is off.

If you feel a post has answered your question, please click "Accept as Solution".
gbm
Principal

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