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

uart DMA listen and DMA transmit #653

Open
michalcourson opened this issue Oct 29, 2024 · 0 comments
Open

uart DMA listen and DMA transmit #653

michalcourson opened this issue Oct 29, 2024 · 0 comments

Comments

@michalcourson
Copy link

Current Uart handler does not support having DMA reception in listening mode, and also using DMA to do transmissions. As written, Tx dma jobs will always be queued as dma_active_peripheral_ is always set in listening mode, and the Tx job never gets dequeued

I was able to get it to work for my setup by pinning the HalUartDmaRxStreamCallback to use USART_1 always, taking out the dma job queueing in DMATransmit, and taking out the wait on HAL_UART_GetState(&huart_). I also had to call DmaListenStop before starting the transmit, and could call DmaListenStart pretty much immediately after.

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

1 participant