PM0214 Rev 10 183/262
PM0214 The STM32 Cortex-M4 instruction set
261
3.11.3 DMB
Data memory barrier.
Syntax
DMB{cond}
Where: ‘cond’ is an optional condition code, see Conditional execution on page 65.
Operation
DMB acts as a data memory barrier. It ensures that all explicit memory accesses that
appear, in program order, before the DMB instruction are completed before any explicit
memory accesses that appear, in program order, after the DMB instruction. DMB does not
affect the ordering or execution of instructions that do not access memory.
Condition flags
This instruction does not change the flags.
Examples
DMB ; Data Memory Barrier