Issue encountered when using OTSPI1 and GPDMA1 on the STM32U545 with the TrustZone option enabled.
I have an application that uses the OCTOSPI1 interface to read from and write to an external NOR flash memory into an SRAM1 buffer. The read and write operations are performed in the NS section of the application. If I perform a transfer without using DMA, it works. However, if I try to use GPDMA1, I get a buffer with all data set to 0, with no error.
Additional information: the application works very well with GPDMA1 if I disable the MCU’s TrustZone mode.
I conclude that GPDMA is not fully initialized to work with TrustZone enabled, but I can’t figure out what’s missing despite my searches on this forum.
Any help would be greatly appreciated.
