X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=contrib%2Floaders%2Fflash%2Fstm32f2x.S;h=0dd1223192ea10310cf0b9dacec5104f878108ba;hp=c64f0a1f88837043be5649c574fb1362ca807a35;hb=5396ec5dcc64354c8101f8d3f16d498ca3b10326;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee diff --git a/contrib/loaders/flash/stm32f2x.S b/contrib/loaders/flash/stm32f2x.S index c64f0a1f88..0dd1223192 100644 --- a/contrib/loaders/flash/stm32f2x.S +++ b/contrib/loaders/flash/stm32f2x.S @@ -56,6 +56,7 @@ wait_fifo: str r6, [r4, #STM32_FLASH_CR_OFFSET] ldrh r6, [r7], #0x02 /* read one half-word from src, increment ptr */ strh r6, [r2], #0x02 /* write one half-word from src, increment ptr */ + dsb busy: ldr r6, [r4, #STM32_FLASH_SR_OFFSET] tst r6, #0x10000 /* BSY (bit16) == 1 => operation in progress */