2019-05-24 01:32 PM
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
2019-05-24 04:34 PM
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.
2019-05-24 09:14 PM
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.
2019-05-28 02:18 PM
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
2019-05-28 02:18 PM
Where I can find the example code?
2019-05-28 02:27 PM
Not 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?