riscv-openocd/contrib/loaders/flash/stm32
Jimmy 7901cf2124 flash/nor/stm32lx: fixed writes at high adapter speeds
The busy flag must be polled after each half-page write.
At low clock speeds, no issue is observed when the poll
is omitted, because the writes complete before the next
write begins. But at high clock speeds the subsequent
writes would overlap and cause the operation to fail.

The status polls are done on the target for efficiency,
since the half-pages are very small.

Change-Id: Ia1e9b4a6a71930549b3d84a902744ce6e596301b
Signed-off-by: Jimmy <nhminus@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/5598
Tested-by: jenkins
Reviewed-by: Jelle De Vleeschouwer
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Andrzej Sierżęga <asier70@gmail.com>
2021-11-03 20:32:54 +00:00
..
Makefile flash/stm32l4x: switch to to c loader instead of assembly loader 2021-09-02 17:21:13 +00:00
stm32f1x.S flash/nor, contrib/loaders: add stm32 loaders Makefile and generated .inc 2018-04-23 20:41:50 +01:00
stm32f1x.inc flash/nor, contrib/loaders: add stm32 loaders Makefile and generated .inc 2018-04-23 20:41:50 +01:00
stm32f2x.S flash/nor, contrib/loaders: add stm32 loaders Makefile and generated .inc 2018-04-23 20:41:50 +01:00
stm32f2x.inc flash/nor, contrib/loaders: add stm32 loaders Makefile and generated .inc 2018-04-23 20:41:50 +01:00
stm32h7x.S contrib: fix minor typos 2020-07-26 20:14:51 +01:00
stm32h7x.inc flash/stm32h7x: add support of STM32H7Ax/H7Bx devices 2020-03-02 15:13:00 +00:00
stm32l4x.c flash/stm32l4x: fix flash programming in 64-bit hosts 2021-09-12 14:26:31 +00:00
stm32l4x.inc flash/stm32l4x: switch to to c loader instead of assembly loader 2021-09-02 17:21:13 +00:00
stm32lx.S flash/nor/stm32lx: fixed writes at high adapter speeds 2021-11-03 20:32:54 +00:00
stm32lx.inc flash/nor/stm32lx: fixed writes at high adapter speeds 2021-11-03 20:32:54 +00:00