On 20/06/2021 17:59, Andreas Bolsch wrote:
On 2021-06-20 14:12, Oleksandr Redchuk wrote:
нд, 20 черв. 2021 о 00:42 Andreas Bolsch <hyphen0br...@gmail.com> пише:
On 2021-06-19 22:58, Oleksandr Redchuk wrote:
> FT2232D-based adapter
> The same behavior as Ali Tekin reported:
> "Error: error writing to flash at address 0x08000000 at offset
> 0x00000000"
>> On 2021-06-17 14:51, ali tekin wrote:
Do you get this warning below, too? Could you post the cfg file?
>> > Warn : target was in unknown state when halt was requested
Yes, exactly the same.
Right, I get the same problem with an FT232 adapter on
STM32L0538-Disco. So the problem is apparently not in the flash loader
etc. but somewhere in the transport layer, as via STLink it works. And
even with the FT232, the first run (exactly 7168 bytes) is written
properly.
Andreas, most probably this is the same old problem: stm32l0x NVM
controller stalls the AHB during flash programming
and makes SWD memory access very problematic. The different results for
different adapters are mainly due to timing.
See http://openocd.zylin.com/5270 and http://openocd.zylin.com/5303
Tom