I've checked it with the latest HEAD on my board based on STM32L051 and two different programming HW
ST-LINK V2 clone with patched HW: STM8 reset output is cut and STM32 reset is routed to reset output (reset is necessary because firmware uses SWD pin disabling and deep sleep) Works as expected. FT2232D-based adapter The same behavior as Ali Tekin reported: "Error: error writing to flash at address 0x08000000 at offset 0x00000000" Both adapters work well earlier 0.10. version and if I use "set WORKAREASIZE 0" with HEAD. FT2232D-based adapter is my main HW to program STM32F1*, F030, L051 and L011. пт, 18 черв. 2021 о 23:27 Andreas Bolsch <hyphen0br...@gmail.com> пише: > Just checked with latest HEAD on STM32L0538-Disco: Works as expected. > The problem in your case might be there: > > On 2021-06-17 14:51, ali tekin wrote: > > Warn : target was in unknown state when halt was requested > > I'd suggest to do a mass erase, reset option bytes to factory defaults, > power cycle, then try again. > > -- wbr, ReAl