STM32(f303cbt) chip never reaches while loop in default cubeMX generated code.
I designed my own PCB and created a project with STM32CubeMX for Truestudio with the chip taht I used on my board (stm32f303cbt). This is the first time I made my own PCB and my last project was done with an AVR chipset.
When I debug the chip with the code generated by cubeMX, it never reaches the while loop.
The main function looks like this:
int main(void)
{
HAL_Init();
SystemClock_Config();
int i = 0;
while (1)
{
i++;
if(i>100) {
i=0;
}
}
}After executing the `SystemClock_Config();` function, I can't pause or step through the code anymore with the debugger. I can step into the SystemClock_Config(); function, but after the last line it looks like the chip is busy with this line until the end of time.
I might be missing crucial info since I don't know where I should be looking to solve this error. Here are some extra screenshots of the cubeMX configuration.


