RE: STM32H7 serial TX DMA issues

2024-03-08 Thread David Sidrane
Hi Kian, The Problem with the semaphore is it cause blocking when the port is opened non blocking. Please do PR so we can review it. David -Original Message- From: Kian Karas (KK) Sent: Friday, March 8, 2024 4:18 AM To: dev@nuttx.apache.org Subject: STM32H7

Re: STM32H7 serial TX DMA issues

2024-03-08 Thread Sebastien Lorquet
Hello, Yes, stm32h7 uart transmission has issues. You can easily test this in nsh with just an echo command and a very long string, eg > 64 ascii chars. At first I believed it was buffering problems. This caused me some headaches 1.5 years ago, but the DMA serial driver is too complex for

STM32H7 serial TX DMA issues

2024-03-08 Thread Kian Karas (KK)
Hi community The STM32H7 serial driver TX DMA logic is no longer working properly. The issues started with commit 660ac63b. Subsequent attempts (f92a9068, 6c186b60) have failed to get it working again. I think the original idea of 660ac63b is right, it just failed to restart TX DMA upon TX

Re: STM32H7 serial TX DMA issues

2024-03-08 Thread Kian Karas (KK)
Hi, here is the pull request: https://github.com/apache/nuttx/pull/11871 My initial comments (and "fix") for uart_xmitchars_dma() are no longer relevant. Hence, those changes are no longer included. Regards Kian From: Sebastien Lorquet Sent: 08 March 2024