STM32U5 TrustZone enabled DMA problem
I am using STM32U585 and I stumbled upon the following problem:
If a device is configured with TrustZone enabled (TZEN=1) there is different behavior in the following situations:
1. SPI is configured without DMA and CPU is running non-secure code in privileged mode in that case the CPU is able to read/write to SRAM1 (from IRQ handler)
2. SPI is configured using GPDMA and CPU is running non-secure code in privileged mode however in this case the GPDMA is not able to read/write to SRAM1
Reading the documentation I would expect that SRAM1 when TrustZone is enabled allows only secure / privileged access, but how does then the first described situation work at all, how does CPU have access to SRAM1 at all when it is running non-secure code?
