2024-08-13 07:34 AM - edited 2024-08-13 08:10 AM
I've successfully set up an evaluation project on the STM32U5A9J-DK PCB with a custom 640x480 MIPI/DSI display in video mode. I've also configured the HexaSPI PSRAM in memory-mapped mode at 160MHz, which I've verified with a scope. My memory tests have all passed, and I've set up the display with double buffering and an RGB888 color scheme. Drawing to the frame buffer works as expected.
However, after porting the Embedded Wizard graphic library with CPU2D support, I'm experiencing graphical artifacts during heavy memory traffic. It appears that I'm hitting a memory bottleneck with three bus masters accessing the frame buffer and dynamic memory block in the external HexaSPI PSRAM.
Optimization Attempts
I've read AN4861 and attempted to optimize the frame buffer line length to be a multiple of 64, but this hasn't resolved the issue with CPU2D.
Questions