2024-01-14 08:42 PM
Hi,
I am using LPUART and LPDMA on STM32U575. But I am getting Data Transfer Error.
I have tried LPUART with GPDMA it works fine but LPUART with LPDMA giving Data Transfer Error.
So I have two questions:
1. Can we use LPUART & LPDMA together?
2. What will be the cause of Data transfer error and how to configure LPDMA ?
Can you please guide me on this?
2024-01-15 08:12 AM
Hello @PCC,
Thank you for your questions :
1/ "The DMA operation can take advantage of the LPBAM mode. In autonomous mode the LPDMA and LPUART can work even with CPU in Stop mode, thanks to a hardware subsystem embedded in the STM32 microcontroller. The autonomous mode is rich in features and settings. The additional effort to set and
optimize it is paid off by the performance enhancement. CubeMX includes a tool that helps setting up the code servicing the LPBAM library and hardware. An LPTIM is used to trigger the LPDMA when the CPU is in Stop mode." (extract from chapter 7.6 of AN4637) Please, read the entire chapter.
2/ You can check these articles Getting Started LPBAM, and How to configure the GPDMA?.
On a bus access (as a AHB single or a burst) to the source or the destination
(extract from chapter 17.4.6 in RM0456)
If you have other question, feel free to ask. You can share screenshot of your configuration.
Best Regards,
Pierre
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.