I programmed the STM8S208RB Nucleo board to blink the LD2 LED (connected to pin C5). The `main.c` file is attached. I loaded the file with the `.19` extension using STVP. The file loaded successfully (Image_1.jpg), but LD2 did not blink. LD2 started blinking only after I closed STVP. However, it stopped working when I disconnected and reconnected the USB cable. When I checked the Program Memory using STVP, I saw different, shorter code (Image_2). Why Nucleo board is behaving this way?
I am using Win 10 and STVP 3.4.1