Page 1 of 1

Check for and expose maximum (DMA) transfer size  Topic is solved

Posted: Thu Oct 13, 2022 5:26 pm
by faisal
STM32 hal_spi_lld has an assert which checks that the maximum transfer size is not violated (n < 65536). Other drivers that use DMA also have this limitation, but this condition is not being checked. Additionally, it would be useful to remove that magic number and instead expose that as a #define so that the application can use it to split up transfers in blocks when needed.

Re: Check for and expose maximum (DMA) transfer size

Posted: Sun Nov 20, 2022 10:36 am
by Giovanni
Hi,

STM32 DMA drivers now export an STM32_DMA_MAX_TRANSFER definition. Removed the constant from all SPI drivers.

Currently in trunk but will be ported back to 21.11.3.

Giovanni