Uploads every other try fails

Hello, been using IDE 2 since beta and am really happy with it.
But today something really odd is happening.
Opened up a .ino LCD7735 Adafruit fill i had tested with some months ago.
Selected target STM32F411CE, selected stlink programmer port.
Did a test build, that worked, so did a build/upload and all worked fine, LCD was painted.
Edited .ino and upload failed with "Failed to erase memory" :frowning:
Me thinking something in new code causing upload error, odd
Removed program edit and upload worked fine. :-).

Turns out that not the program edit not working, but upload function only works on every other attempt:

Success
failed to erase memory
Success
failed to erase memory
... EtAl

Ideas most gracefully received pleased, IMK

I'm not familiar with STM boards but it might be important to let use know which board package you're using.

Generic STM32F4 Series.. Good Upload below:
Next Upload fails with ----> Error: failed to erase memory

ST-LINK SN : 003F002B5553500720393256
ST-LINK FW : V3J9M3
Board : STLINK-V3MINI
Voltage : 3.23V
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
2nd connect tentative with frequency (8MHz)
ST-LINK SN : 003F002B5553500720393256
ST-LINK FW : V3J9M3
Board : STLINK-V3MINI
Voltage : 3.25V
SWD freq : 8000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x431
Revision ID : Rev A
Device name : STM32F411xC/E
Flash size : 512 KBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0xD0

Memory Programming ...
Opening and parsing file: WeActTFT-Test-1.ino.bin
File : WeActTFT-Test-1.ino.bin
Size : 30.14 KB
Address : 0x08000000

Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 1]
Download in Progress:

File download complete
Time elapsed during download operation: 00:00:00.665

RUNNING Program ...
Address: : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully

This is odd;
went and took a nice relaxing bath came back to desk and problem seems to have gone away. Only thing I did was put Win10 PC in sleep mode.. for hour or so....
imk

1 Like