cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H562 + PSRAM + GPDMA: Memory Overflow Issues with Real-time Audio

Vaishak-hoomanely
Associate II

We're experiencing memory overflow errors when trying to use external PSRAM (IS66WVE4M16EALL-70BLI) with GPDMA for real-time audio capture on STM32H562AII6. Despite having 8MB external PSRAM, our audio buffers cannot be placed there due to DMA timing/access issues.
Hardware Configuration
MCU: STM32H562AII6 (UFBGA169)

Internal RAM: 640KB
Flash: 2MB
Running at: 250MHz (HCLK)
External PSRAM: IS66WVE4M16EALL-70BLI
Capacity: 8MB (4M × 16-bit)
Access Time: 70ns
Interface: FMC Bank 1 (16-bit async SRAM mode)
Base Address: 0x60000000
Application: Real-time Audio Capture
Audio ADC: PCM1862 (I2S master, 48kHz stereo, 16-bit)
STM32 SAI: Slave mode receiving audio via GPDMA
Buffer Requirements: ~416KB total for audio buffers

We need guidance on whether external PSRAM via FMC is suitable for real-time GPDMA applications on STM32H562, and if so, what the optimal configuration should be. If not, recommendations for alternative approaches would be greatly appreciated.

Any insights into proper FMC timing, cache management, or alternative memory solutions for large audio buffers would help resolve this critical memory constraint in our real-time audio system.

Thank you for any assistance!

0 REPLIES 0