HAL: #6 How to - USART with DMA

  Рет қаралды 42,588

Web learning

Web learning

6 жыл бұрын

In this tutorial I will show how to use the HAL USART with DMA functions.
Before you watch this, please see the video on how to use the STM32CubeMX if you dont already know.
• #1 STM32CubeMX Tutoria...
Also, the project is based on Video #26, so if you didnt see it, or or have the project, please make sure you watch it first.
** 2 Free Board giveaway is Closed***
2 Free Board giveaway is open. Make sure you subscribe and have
the notification button on so you will know when you will get a chance to win also a board next time.
See this link for rules and restrictions: • Video
/ weblearning

Пікірлер: 50
@vincentl7022
@vincentl7022 5 жыл бұрын
JUST SO YOU know that your tutoriels are gold !
@MrEptor
@MrEptor 6 жыл бұрын
i have a blue pill, and your videos are helping me to learn how to use it, it will be nice to have a board with more documentation
@motormadness9975
@motormadness9975 3 жыл бұрын
Please note for DMA: If using newer version of CubeIDE - code configuration is wrong by default. In main -> change : /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_USART2_UART_Init(); MX_DMA_Init(); /* USER CODE BEGIN 2 */ To: /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); MX_USART2_UART_Init(); /* USER CODE BEGIN 2 */ @Web learning please let your viewers know of this issue.
@joaopedrovbs
@joaopedrovbs 2 жыл бұрын
Thanks! I've been strugling with this for some time, and this solved it for me!!
@zrnradmilovic
@zrnradmilovic 2 жыл бұрын
This is very true. Where exactly is this pointed out? I haven't seen it.
@01001000010101000100
@01001000010101000100 2 жыл бұрын
Best to change the sequence in IOC Project Manager / Advanced Settings. DMA position is fixed, but you can move UART / TIM initialization behind DMA. If you change main.c and then change IOC file the IDE will overwrite your changes.
@rand6626
@rand6626 2 жыл бұрын
Thanks a lot for the tip!
@samueljames2491
@samueljames2491 2 жыл бұрын
OMG! THANKS A LOT!!!!! I WAS STRUGGLING WITH THIS FOR OVER A WEEK!
@Steve_be
@Steve_be 6 жыл бұрын
Excellent video, thanks for making,
@naasikhendricks1501
@naasikhendricks1501 6 жыл бұрын
Hi well explained with the interrupt function you can do a data check of the buffer and ring the buffer to align data. I would like to request i2c DMA. I have had problems implementation of i2c transmit and receive. Very weird but I had loads of fun playing with the DMA. It is my first choice when running a Peripherals as it just frees the MCU up for the fun stuff.
@The_Murrays
@The_Murrays 6 жыл бұрын
Great video!
@vankatar
@vankatar 6 жыл бұрын
Hi, it will be very nice to have a board, thanks in advance. I really like the tutorials, they are verry helpfull. Great job!
@muhammadhassanulhaq
@muhammadhassanulhaq 6 жыл бұрын
Hi Web Learning, I am Hassan. Your videos are helping me in getting started with Nucleo and Discovery Boards. I have already worked with STM32F103 (Blue Pill) but now want to upgrade to the faster M4 and M7. I am also asking for the free giveaway. Kind regards.
@mohamedfall1600
@mohamedfall1600 3 жыл бұрын
Thanks, i helped !!
@Weblearning1
@Weblearning1 3 жыл бұрын
Glad it helped!
@MrRonychakraborty
@MrRonychakraborty 4 жыл бұрын
Nice Brother, It helped
@Weblearning1
@Weblearning1 4 жыл бұрын
Thanks
@ZiclopDevices
@ZiclopDevices 3 жыл бұрын
22.440 visualizations... only 218 likes... I dont understand people ... Excellent work! I like your videos very much.
@Weblearning1
@Weblearning1 3 жыл бұрын
Thank you so much 😀 Dont forget to subscribe and click the notification bell. That also helps...
@najimmouadili9455
@najimmouadili9455 6 жыл бұрын
Excellent video, thanks . can you make some thing for ethernet port programming.
@leecoca482
@leecoca482 4 жыл бұрын
Very useful tutorial. You are very great. Person like you rarely possible to see.Thanks a lot. I just want to know, for STM32F103 can we use USB as Host and Device both?
@Weblearning1
@Weblearning1 4 жыл бұрын
Thank you for this. The feature that you refer to on the USB its called OTG. You need to use another pin called ID to know if you are the Host or Device. But, its only supported on the F105 and others. More info at this site: www.emcu.it/STM32/STM32_USB_Device_Host_OTG/STM32_USB_Device_Host_OTG.html
@maharshisorathiya3205
@maharshisorathiya3205 4 жыл бұрын
May be your code needs a correction, on this one. Because you are shorting on the pins thats why you are getting a response this is not correct. To test this code correctly you have to short them by the code , I mean that you have to copy received data in the transmission DMA buffer. By doing this only you can check if your program or configuration is working or not.
@khalilaliouich8246
@khalilaliouich8246 6 жыл бұрын
Excellent, I uset it with interupt, so can you send me an nucleo stm32 to France, thanks bro
@TheCarlosmach
@TheCarlosmach 6 жыл бұрын
im looking forward to the giveaway i really want a free board :)
@Weblearning1
@Weblearning1 6 жыл бұрын
Hi. You are one of the free demo board winners. Please send me your information in a privet message. Thanks.
@TheCarlosmach
@TheCarlosmach 6 жыл бұрын
message sent :)
@TechnoAutomation
@TechnoAutomation 6 жыл бұрын
Hi, I have started working on blue pill. I followed your videos for getting started. Currently working on project having nextion display & stm32, Still face some difficulties. I wish to upgrade my projects on new boards If I'll get.
@Weblearning1
@Weblearning1 6 жыл бұрын
Hi. You are one of the free demo board winners. Please send me your information in a privet message. Thanks.
@AbrahamGutierrez76i
@AbrahamGutierrez76i 4 жыл бұрын
Did you manage to control the Nextion screen with the STM32?
@Weblearning1
@Weblearning1 4 жыл бұрын
Sorry, never got around to do that. I do know of someone else that did it for their final year project.
@amitchautmal
@amitchautmal 3 жыл бұрын
Hi, i try to use DMA with i2c transfer and receive using blue pill for Eeprom . My read data function working well and call back also working well but on data write (DMA TX) I2C SHIWING IN BUSY STATE CONTINUOUSLY there after whole communication is stopped why my DMA TX USING I2C IN BUSY STATE CONTINUOUSLY ? INSTEAD IF I USE BLOCKING ( I2C TX ) IT WORKING FINE. BUT I2C (DMA TX) HAS BUSY STATE.
@Weblearning1
@Weblearning1 3 жыл бұрын
Thanks for sharing
@naasikhendricks1501
@naasikhendricks1501 5 жыл бұрын
Hey, I was actually search the internet regarding I2C and SPI DMA. I was wondering if you have time to do a tutorial? I notice a lot of the guys either have issues regarding how the bus works in DMA mode. I would say that is all dependent on the Sensor or device transmitting data.
@Weblearning1
@Weblearning1 5 жыл бұрын
Hi, yes it's in the pipeline, but I never got around to record it.
@naasikhendricks1501
@naasikhendricks1501 5 жыл бұрын
I was considering writing my own I2C drivers because I couldn't find enough on spec docs. I then proceeded to play around with i2c. I wanted to understand that driver full.
@Weblearning1
@Weblearning1 5 жыл бұрын
There is a great book that will answer most of your questions and it's not expensive: leanpub.com/mastering-stm32
@lukaszniepala6833
@lukaszniepala6833 6 жыл бұрын
Please share more videos. Awasome explaination. It also would be an great idea to create a community for example on Facebook, where we can help each other, solve the problems and also exchange the experience.Could you take care of it?
@Weblearning1
@Weblearning1 6 жыл бұрын
This is a great point that I thought about, but I dont have the time to moderate and follow up on it. When I will have the time, i will do it for sure.
@Grze9898
@Grze9898 3 жыл бұрын
Call back receive will not work after first frame is received. You have to re-call this _IT function again in.
@Weblearning1
@Weblearning1 3 жыл бұрын
Worked for me. Dont know why you are not receiving first frame.
@bitlabhanuteja5794
@bitlabhanuteja5794 3 жыл бұрын
@@Weblearning1 it is working for you because since you shorted RX and TX , you are receiving what you transmitted, more over to check DMA is working you have to use debugger to monitor the RX buffer instead you are seeing the serial monitor what do you expect?
@RohitVerma-jl1qj
@RohitVerma-jl1qj 4 жыл бұрын
why you connect PA9 and PA10??
@Weblearning1
@Weblearning1 4 жыл бұрын
These pines are connected to the ST-Link USB UART to the PC. No need to use an external one.
@kaiyangsun4089
@kaiyangsun4089 3 жыл бұрын
@@Weblearning1I think st-link usb uart uses uart2, but here you use uart1 for dma. Could you explain?
@aliaslmx
@aliaslmx 5 жыл бұрын
Your tutorial is great, but you move to fast. Thank you! I appreciate your job!
@Weblearning1
@Weblearning1 5 жыл бұрын
Thanks. Sometimes I know I'm moving fast as the video need to be short. You can slow it down in the KZfaq settings and the you can see it almost in regular speed. I always do not talk when I speed things up because of this. Enjoy
@aliaslmx
@aliaslmx 5 жыл бұрын
@@Weblearning1 you're right! Thank you for suggestion!
#34: STM32CubeMX Update
11:54
Web learning
Рет қаралды 7 М.
HAL: #4 How to - UART Interrupt
7:00
Web learning
Рет қаралды 85 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 20 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 47 МЛН
HAL #12: ADC with IT
11:31
Web learning
Рет қаралды 17 М.
Receive data using UART in STM32 || Poll || Interrupt || DMA
14:07
ControllersTech
Рет қаралды 122 М.
STM32 DMA PT 1
26:40
Eddie Amaya
Рет қаралды 38 М.
Set up multiple ADCs on STM32 microcontrollers using DMA
8:43
Random Rick
Рет қаралды 36 М.
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 178 М.
Tutorial CubeMX- 8- ADC_DMA+USART_DMA STM32F4 Discovery
10:00
Sever Spanulescu
Рет қаралды 34 М.
STM32CubeIDE basics - 11 USART HAL lab
10:55
STMicroelectronics
Рет қаралды 62 М.
Всегда проверяйте зеркала
0:21
Up Your Brains
Рет қаралды 9 МЛН
Дарю Самокат Скейтеру !
0:42
Vlad Samokatchik
Рет қаралды 6 МЛН
Артикул 214546849
0:30
WBUnbox
Рет қаралды 1,3 МЛН
Sweet watermelon 🍉😋
0:15
LizAlex Fam
Рет қаралды 7 МЛН
who is the champion of ludo luck balloon popping race ?
0:59
SS FOOD CHALLENGE
Рет қаралды 53 МЛН
Они придумали бесконечные деньги
0:53
Бесполезные Новости
Рет қаралды 1,6 МЛН