My program doesn't run when i download but it runs when i debug

Hi,

i did my configuration using CubeMX. Then i wrote this simple program.

HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_14);
HAL_Delay(1000);

I builded and downloaded my program and nothing happened. Then, i started debug session and i clicked run  and program worked properly. I couldn't understand why my program doesn't work with build and download.

Best regards.

More questions in this forum