Skip to main content
ingwmeier
Senior
August 20, 2018
Solved

Nucleo Board 072 gets erased replugging USB connector

  • August 20, 2018
  • 6 replies
  • 998 views

I wrote a simple program for the nucleo board. reconnecting the USB erases my program.

How can this be prevented. Did not find any hint so far.

    This topic has been closed for replies.
    Best answer by ingwmeier

    Correct solution: upgrade ST-LINK part to latest version solves the whole issue.

    6 replies

    Tesla DeLorean
    Guru
    August 20, 2018

    Are you sure it is erasing Flash? Checked with ST-LINK Utilities?

    Is code properly downloaded, and not into RAM?

    Could something be probing/writing the mbed drive?

    Got current firmware?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    ingwmeier
    ingwmeierAuthor
    Senior
    August 20, 2018

    Thank you Clive.

    I work with Keil. It's a regular program created with cube, I see the software loaded into flash. After reconnecting I see 0xff > 0x08000100 when I reconnect debugger. also the first few code bytes do not match "my program"..

    I will give it a try using ST-LINK Utilities

    ingwmeier
    ingwmeierAuthor
    Senior
    August 20, 2018

    Tried ST-LINK Utilities: same thing. Reproduced same thing with F030 and F091 Nucleo Board.

    ingwmeier
    ingwmeierAuthor
    Senior
    August 21, 2018

    Found a "solution"; somehow connecting power through USB, the ST-LINK part seems to load something through USB (Flash Disk Demo???) thus erasing my program. Using E5V and also setting power Jumper to E5V does not erase my program. Even removing SW Jumpers and shorting BOOT0 to GND did not help..

    ingwmeier
    ingwmeierAuthorBest answer
    Senior
    August 21, 2018

    Correct solution: upgrade ST-LINK part to latest version solves the whole issue.

    Khouloud GARSI
    ST Employee
    August 24, 2018

    Hi @ingwmeier​ ,

    Many thanks a lot for sharing the solution. For sure, this will be helpful for other users facing the same issue.

    Tip: Always use the most updated version of our tools. It contains enhancement and bug fixes.

    Khouloud.