Skip to main content
Associate III
Nov 5, 2026 8:03 PM UTC
Question

STM32H56x GPDMA: unprivileged write to GPDMA_CxLBAR ignored on an unprivileged channel

Experienced the following on an STM32H562:

  • GPDMA1 channel 6, non-secure and unprivileged: SECCFGR = 0, PRIVCFGR = 0, RCFGLOCKR = 0. Channel disabled (EN = 0).
  • Code runs in unprivileged thread mode (CONTROL = 0x7, FreeRTOS-MPU); the MPU grants read/write to 0x40000000–0x5FFFFFFF.
  • Unprivileged writes to CBR1, CSAR, CDAR and CLLR of the same channel take effect.
  • Unprivileged write of 0x20030000 to GPDMA1_C6LBAR (0x40020350): reads back 0x00000000. The same write from the debugger (privileged) reads back 0x20030000.
  • Consequence: with CLLR = 0x3801DF60, the channel fetches the next LLI from 0x0000DF60 at the end of the first block, sets ULEF and stops.

Is GPDMA_CxLBAR writable only by privileged accesses, independent of PRIVCFGR.PRIVx?