Skip to main content
AGupt.0
Associate
May 24, 2019
Question

Hi All, I am trying to use STM32F429I-DISC1 with STM32Cube IDE, I am newbie and trying to work on the Blink LED of the onbard LED of MCU, but its not working

  • May 24, 2019
  • 3 replies
  • 1540 views

After so many trying I am unable to do so. When I build my program LED just doesn't blink (however the demo program showing on LCD disappears when building the program).

I have configured Pin 13 and 14 of GPIOG as output anduses these 2 lines to toggle the LED:   

HAL_GPIO_TogglePin(GPIOG, GPIO_PIN_13);

 HAL_Delay(500);

Can anyone help me out in what else do I have to configure and if I am missing anything

Ankit

This topic has been closed for replies.

3 replies

T J
Senior III
May 24, 2019

Can you single step ?

did you use the example code in the repository ?

if you do something wrong the program will end up in hardfaulty

if you cannot single step, then you wont know it.

AGupt.0
AGupt.0Author
Associate
May 28, 2019

Where I can find the example code?

S.Ma
Principal
May 25, 2019

Go debug mode and put a SW breakpoint in main().

Then view the HW registers for the corresponding GPIO.

You can manually modify the MODER register to program the pins as output, then use OUT register to force 1 or 0 on selected pins, and check in the IN register the level mesured on the pin is following.

If not, find out what is missing.

AGupt.0
AGupt.0Author
Associate
May 28, 2019

How To manually modify the MODER registers (is their any examples for this board)? I cannot find any examples specific to this board. Debug mode doesn't reflect anything. I don't know why a simply LED program doesn't works, Cube id says that the download is successful but I couldn't see LED blinking.

Ankit

AGupt.0
AGupt.0Author
Associate
May 28, 2019

0690X000008a70lQAA.pngNot sure why but now I am getting this message when I try to create a new project to start from scratch, what to do with this one?