2025-11-19 1:00 AM
Hello everyone,
I am reaching out to the community regarding an issue my team is experiencing on the STM32MP257F, specifically within a project running on the Cortex-M33 core.
We are attempting to configure SPI2 to transmit data to an external DAC using HPDMA1. While SPI2 transmission works correctly without DMA, integrating HPDMA results in no data movement—DMA does not appear to start, and SPI output remains idle.
We initially relied on CubeMX for code generation, but due to several inconsistencies (e.g., peripherals marked as enabled were not properly configured, some register settings missing), we shifted to a manual initialization approach. Unfortunately, the issue persists.
The intended configuration is as follows:
DMA Mode: Standard transfer (no linked list).
Direction: Transmit only; no receive path required.
DMA Request Source: HPDMA_REQUEST_TIM3_UP
TIM3 period: 50 µs
Clock: 200 MHz, Period register: 9999
Trigger Source: TIM15_TRGO
TIM15 period: 250 µs
Clock: 200 MHz, Period register: 3999
We would greatly appreciate if anyone could provide:
A reference implementation,
A known-working initialization sequence, or
Any code snippet demonstrating the correct setup of SPI2 + HPDMA1 under similar conditions.
Such an example would help us validate our approach and identify any missing configuration steps.
Thank you in advance for your support and insights.