The STM32 Cortex-M4 instruction set PM0214
184/262 PM0214 Rev 9
3.11.4 DSB
Data synchronization barrier.
Syntax
DSB{cond}
Where: ‘cond’ is an optional condition code, see Conditional execution on page 65.
Operation
DSB acts as a special data synchronization memory barrier. Instructions that come after the
DSB, in program order, do not execute until the DSB instruction completes. The DSB
instruction completes when all explicit memory accesses before it complete.
Condition flags
This instruction does not change the flags.
Examples
DSB ; Data Synchronisation Barrier