cancel
Showing results for 
Search instead for 
Did you mean: 

Does STM32F070 DMA controller support unaligned data transfer?

Vvine
Associate II

I want to know if the DMA in STM32F070 supports data transfer of 2/3 bytes? Or Does it support transfer only of multiple of 4 bytes?

In my project, I have a problem of data alignment. My hardware is receiving 3 bytes of data over UART periodically. I am reading it through DMA. Normally it works without any problem. However, sometimes the data is misaligned, as in I receive last byte from previous cycle as the first byte of current cycle. The DMA then never recovers from this problem. The transmitter side is well tested so should not be an issue here. I am using STM32Cube_FW_F0_V1.9.0 drivers.

Any suggestion appreciated.

Thanks.

1 REPLY 1
S.Ma
Principal

U