2026-02-03 8:39 AM
I am attempting to make a previously developed design run with Trustzone enabled. I have been unable to get the HSPI1 PSRAM to function.
I've set the peripheral's GTZC's attributes to NSEC|NPRIV.
I've set the appropriate GPIO pins' attributes to NSEC.
I've set the MPCWM Config to consider the memory as NSEC|NPRIV
I've set the appropriate/associated DMA channels as NSEC|NPRIV.
None of these seem to have any effect. The Initialization code hangs/timesout in:
BSP_HSPI_RAM_Config16BitsOctalRAM in stm32u5a9j_discovery_hspi.c.
RCC->AHB2ENR2 shows the HSPI clock enabled.
Can anyone point to a minimal working example of using the AP512 on the STM32u5A9J-DK with trustzone enabled?