STM32 gotchas
245. DMA in 'G4 does not work with memory address pointer set to the CCMRAM area at 0x1000'0000

In the 'G4 family, SRAM is partitioned into several portions. One of them, marked CCMRAM (for Close-Coupled Memory RAM) has a connection through the busmatrix to both the I- and D-port of processor, for fast execution of code, mapped at 0x1000'0000; as well as to the S-port, mapped at the 0x200x'xxxx area, just above SRAM2 (to form a continuous RAM area together with SRAM1 and SRAM2).

As this mapping is only for the processor, CCMRAM is mapped to DMA only at the 0x200x'xxxx area. Consequently, using CCMRAM as memory buffer for DMA transfers at the 0x1000'0000 area does not work and leads to Transfer Error fault in the DMA.

portion of 'G4 busmatrix indicating CCMRAM mapping to processor and DMA

User liampwll came across this issue.