2025-08-11 4:11 PM
Hi,
I am working with the STM32WBA62CI MCU and need to communicate with an external SPI-based device by reading 34 registers (16-bit each) periodically. I want to store received data in RAM for 20 such events before overwriting it and continuing indefinitely.
Currently, I can successfully perform the DMA based SPI communication using HAL_SPI_TransmitReceive_DMA() triggered by a timer interrupt, incrementing the RX buffer manually by 34 on each transfer. However, I want to eliminate CPU involvement by triggering the SPI DMA transfers via peripheral interconnects and/or GPDMA triggers.
From my research, I understand there are two possible approaches:
Unfortunately, neither approach yields successful communication so far. Additionally, the .ioc file only allows triggering GPDMA channels from TIM3, TIM4, and COMP2, although the reference manual lists many more triggers including LPTIM1.
Could you please help me with the correct configuration details, including:
Thank you for your assistance.
Best regards,
Adnan
2025-09-15 9:57 AM
Hello @adnan-ashraf
For that, I suggest you check the examples available on the STM32CubeWBA. they should be be really helpful for you to understand how to configure them exactly.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.