Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dma receive size will be zero #16

Closed
tiantian1645 opened this issue Aug 13, 2021 · 1 comment
Closed

dma receive size will be zero #16

tiantian1645 opened this issue Aug 13, 2021 · 1 comment

Comments

@tiantian1645
Copy link

https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx/blob/master/projects/usart_rx_idle_line_irq_ringbuff_G0/Src/main.c#L91

pos = ARRAY_LEN(usart_rx_dma_buffer) - LL_DMA_GetDataLength(DMA1, LL_DMA_CHANNEL_2);

pos will be zero if receive size equal ARRAY_LEN(usart_rx_dma_buffer)

@MaJerle
Copy link
Owner

MaJerle commented Aug 13, 2021

That's ok.

@MaJerle MaJerle closed this as completed Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants