Skip to main content
Visitor II
February 26, 2025
Question

STM32G030C8T6 LED blink not working

  • February 26, 2025
  • 3 replies
  • 583 views

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.

    3 replies

    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.

    Super User
    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.

    TRUNG_EMCAuthor
    Visitor 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.

     

    Graduate II
    February 27, 2025

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

    Graduate
    February 27, 2025

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