cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F769i board novice question

TDJ
Lead

Hi Community,

I try to develop my first test app for the STM32F69i board. I got STM32CubeIDE environment working, generated project with all the default settings for this board. According to STM32F769i docs user LED1 and 2 are hooked up to port J, pins 5 and 13, so within the main() method, after HALL_Init(), I placed the following code:

while (1) {
   HAL_GPIO_TogglePin(GPIOJ, GPIO_PIN_5);
   HAL_GPIO_TogglePin(GPIOJ, GPIO_PIN_13);
   HAL_Delay(1000);
}

I can step-through the code in debug, I believe it executes but the LEDs do not blink.

What am I missing?

2 REPLIES 2

You would need to initialize the GPIO J clock somewhere, and then initialize the pins as outputs.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDJ
Lead

Thank you! I expected this to be part of the default setup for this board. I will investigate.