cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube IDE code not working

Manimekalai
Associate

Hi buddies,

 I'm very new to the STM32 series as well as STM32CubeIDE.

I created the toggle LED program for STM32F769I-DISCO(I'm currently working on this). Before generating the code I just choose the PJ5 pin(because this is an onboard green led ). And name it LED_GREEN and I'm gone with the default settings.

But after building the code it doesn't work. And I used the debugger the code doesn't come into the loop section it seems to be stuck randomly in that code.

But I write the code inside this MX_GPIO_Init() it is working led blink continuously(not using the toggle command using the HAL_GPIO_WRITE() ). I can't understand how it's working.

Thanks in advance.

by 

Manimekalai Devendran.

 

2 REPLIES 2
Mike_ST
ST Employee

Hello,

If you wish share your code/.ioc file, so the community can see what is wrong.

ajimathew
Associate III

There might be the issues in clock configuration. That's why when you debug the program the control didn't enter into the main(). Kindly configure the clock properly.

Better you go for internal clock configuration. HSI or MSI .