STM32G030C8T6 LED blink not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-26 2:14 AM - last edited on ‎2025-02-26 2:23 AM by Andrew Neil
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.
- Labels:
-
STM32G0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-26 2:22 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-26 4:23 PM - edited ‎2025-02-26 4:23 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-26 6:56 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-26 7:07 PM
Not mind readers here. Custom board? Show your code. Upload your IOC file.
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-26 8:42 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-26 10:58 PM
So why don't you show your code with is probably missing MODER register setup?
