Skip to main content
Associate
August 18, 2026
Question

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

  • August 18, 2026
  • 1 reply
  • 86 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

1 reply

cevnacarAuthor
Associate
August 21, 2026

Updating the embedded ST-LINK/v2-1 using latest version of STSW-LINK007 solved the problem.