Skip to main content
Visitor II
August 18, 2026
Question

Program memory of STM8S208RB Nucleo Board is erased after the USB connection is disconnected.

  • August 18, 2026
  • 0 replies
  • 14 views

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