2023-04-09 10:36 PM - edited 2023-11-20 08:38 AM
I've programmed SAI tx DMA to generate event to driving other DMA wich software triggering LPTIM.
In the code SAI DMA generate intrrupt to change GPIO state and LPTIM outputs it's waveform on a pin with onepulse mode.
It has the configuration of 4 block on each DMA transmission in circular mode.
I expect LPTIM pulse on SAI_tc on GPIO transitions (After 4 data according to configuration, the transfer completes, and GPIO changes it's state). But I can see 4 pulse between two transition.
I know DMA event generation occur at each DMA internal counter register update. But I think this is a hardware or software HAL bug. I'm not sure.
The code has been written on STM32cubeIDE 1.12.