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

Back to back UART DMA transactions #463

Open
akhilveeraghanta opened this issue Apr 15, 2023 · 0 comments
Open

Back to back UART DMA transactions #463

akhilveeraghanta opened this issue Apr 15, 2023 · 0 comments

Comments

@akhilveeraghanta
Copy link

akhilveeraghanta commented Apr 15, 2023

I just wanted to follow up on this ticket: #216

Is it possible to do back to back DMA transactions? Or is the workaround in that ticket still the only way to reset the dma channel?

      let mut rx = serial.rx.with_dma(channels.3); : RxDma<Rx<USART3>, C3> channel:                                                   
+     let mut buf = singleton!(: [u8; 128] = [0; 128]).unwrap(); : &mut [u8; 128]                                                     
+     (buf, rx) = rx.read(buf).wait(); buffer:                                                                                        
⚠     (buf, rx) = rx.read(buf).wait(); buffer:  

Simply having another rx.read blocks forever, any help would be greatly appreciated!

@akhilveeraghanta akhilveeraghanta changed the title Back to back DMA transactions Back to back UART DMA transactions Apr 15, 2023
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