STM32 Tutorial #16 - UART Receive with DMA and Idle Detection

  Рет қаралды 453

STM32World

STM32World

Күн бұрын

Пікірлер: 12
@edwardcomeau2625
@edwardcomeau2625 Ай бұрын
I was looking for PICO PIO work with DMA to do basically the same, read a message to idle into a DMA buffer - found this video very informative on what I'm trying to do being on the right lines and if I can't achieve with PIO then great to know about what the STM32 can do as another option. Great video!
@stm32world
@stm32world Ай бұрын
When I discovered that one about a year ago I think I was quite surprised that this is not being mentioned more often. The receive to idle makes it much easier to work with serial receive. Happy you enjoyed the video! Check out my other videos in the series - you might find another surprise or two (bit banding is a life safer too).
@niclash
@niclash 3 ай бұрын
Small nitpick; @5:51 "A much much better approach..." well, that depends on what you are using serial communications for. For instance, in more stateful protocols (often binary), then it can be a lot easier to do the interrupt-driven approach. And if the bitrate is really low, then the "wait to idle" might be unnecessary long (one full byte out of say (2-10 bytes), if the IRQ routine knows that an "end-of-packet" marker was just sent. "In many cases..." would have been a better wording. ALSO; Kudos on improving sound quality!!!
@stm32world
@stm32world 3 ай бұрын
Well - just to be clear - I do love the nitpicks - that is the ONLY way I can improve this. And yes - I can easily imagine situations where interrupt - or even polling would work fine but I _think_ the vast majority of cases uarts are used it is to receive strings of sorts. So - audio quality if ok-ish now?
@niclash
@niclash 3 ай бұрын
@@stm32world Audio is a magnitude better than previously.
@stm32world
@stm32world 3 ай бұрын
Compression enabled and level boosted
@bubaks2
@bubaks2 3 ай бұрын
Curious , what software do you use for editing the video/audio?
@stm32world
@stm32world 3 ай бұрын
@@bubaks2 I mentioned in the first video that I _really_ want to do these videos unscripted. I record them with OBS studio and two external cams. I use a noise cancelling Logitech headset for the audio (the noise cancellation is essential as I am sitting about 1 1/2 m from a fan). The audio compression was done inside OBS studio while recording. IF I edit anything I do that in an application called kdenlive, but many of the videos are one shot unedited.
@capistor1
@capistor1 3 ай бұрын
Awesome stuff!
@stm32world
@stm32world 3 ай бұрын
Glad you enjoyed it
@niclash
@niclash 3 ай бұрын
Another small mistake I just noticed; @4:07 PA2 should go to PA1 (Tx -> Rx)
@stm32world
@stm32world 3 ай бұрын
Right - I missed that. Not going to redo the video because of that detail ;) Let it be a learning experience for the viewers.
STM32 Tutorial #17 - More debugging - introducing SWO
17:25
STM32 Tutorial #25 - Bit manipulation using bit banding
20:27
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 66 МЛН
STM32 UART DMA + IDLE Line | Receive Data of Unknown Size
12:34
Embedded Here
Рет қаралды 332
STM32 Tutorial #35 - DEMYSTIFYING C Pointers (and Variables)
22:48
STM32 UART #5 || Receive Data using IDLE Line || Interrupt || DMA
21:40
The SQLite Rewrite In Rust
22:15
ThePrimeTime
Рет қаралды 100 М.
You Don't Need Text Editor - Just Use My ChatBot
1:48:19
Tsoding Daily
Рет қаралды 20 М.
STM32 Tutorial #23 - UNDERSTANDING GPIO
17:51
STM32World
Рет қаралды 360
debugging a broken cache!
21:16
anthonywritescode
Рет қаралды 2,8 М.
STM32 Tutorial #27 - DIVING into FreeRTOS
31:51
STM32World
Рет қаралды 505