2022-03-16 01:31 AM
I would have expected CubeMX to include/generate a line, for example like:
LL_DMA_SetPeriphAddress(DMA1, LL_DMA_CHANNEL_3, LL_USART_DMA_GetRegAddr(USART3, LL_USART_DMA_REG_DATA_RECEIVE) );
2022-03-16 06:54 AM
These are set up in the HAL_UART_Receive_DMA call which is in user code.
If using LL, you own that part.
2022-03-16 07:44 AM
Thank you for answer, but I submitted this as a bug-report because I think MX should set the correct circular mode DMA device address -- it is counter intuitive for me that is does not when given all the necessary input. Currently this part is like if you have GUI tool for making the configuration, but then you have to use a text editor to repeat the same configuration settings...
My code currently includes LL_DMA_SetPeriphAddress, LL_DMA_SetMemoryAddress and LL_DMA_SetDataLength.
On the other hand: HAL_UART_Receive_DMA is not applied nor needed in the "user code" for circular mode DMA.