diff options
author | Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> | 2015-08-17 15:17:32 +0200 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2015-10-30 17:52:50 +0000 |
commit | bb25049c39b6a7c9d163057be6e4c1c7a65c8209 (patch) | |
tree | a6ffc439fe54eadbe42bc672cd5f5fbe4abd15c0 /contrib | |
parent | cde29ce99b490defc01a4ce96b4a92b64d93a0a3 (diff) | |
download | riscv-openocd-bb25049c39b6a7c9d163057be6e4c1c7a65c8209.zip riscv-openocd-bb25049c39b6a7c9d163057be6e4c1c7a65c8209.tar.gz riscv-openocd-bb25049c39b6a7c9d163057be6e4c1c7a65c8209.tar.bz2 |
stm32f2x: Add memory barrier needed for STM32F7 flashing.
Change-Id: I44fca55c46fc8f960ba46a0604692ce98909face
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Reviewed-on: http://openocd.zylin.com/2939
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/loaders/flash/stm32f2x.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/loaders/flash/stm32f2x.S b/contrib/loaders/flash/stm32f2x.S index c64f0a1..0dd1223 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 */ |