HAL: #6 How to - USART with DMA

  Рет қаралды 43,162

Web learning

Web learning

Күн бұрын

Пікірлер: 50
@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 3 жыл бұрын
Thanks! I've been strugling with this for some time, and this solved it for me!!
@zrnradmilovic
@zrnradmilovic 3 жыл бұрын
This is very true. Where exactly is this pointed out? I haven't seen it.
@Adam_Lyskawa
@Adam_Lyskawa 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!
@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
@vincentl7022
@vincentl7022 6 жыл бұрын
JUST SO YOU know that your tutoriels are gold !
@ZiclopDevices
@ZiclopDevices 4 жыл бұрын
22.440 visualizations... only 218 likes... I dont understand people ... Excellent work! I like your videos very much.
@Weblearning1
@Weblearning1 4 жыл бұрын
Thank you so much 😀 Dont forget to subscribe and click the notification bell. That also helps...
@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.
@mohamedfall1600
@mohamedfall1600 3 жыл бұрын
Thanks, i helped !!
@Weblearning1
@Weblearning1 3 жыл бұрын
Glad it helped!
@Steve_be
@Steve_be 6 жыл бұрын
Excellent video, thanks for making,
@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.
@leecoca482
@leecoca482 5 жыл бұрын
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 5 жыл бұрын
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
@MrRonychakraborty
@MrRonychakraborty 5 жыл бұрын
Nice Brother, It helped
@Weblearning1
@Weblearning1 5 жыл бұрын
Thanks
@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!
@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 5 жыл бұрын
Did you manage to control the Nextion screen with the STM32?
@Weblearning1
@Weblearning1 5 жыл бұрын
Sorry, never got around to do that. I do know of someone else that did it for their final year project.
@naasikhendricks1501
@naasikhendricks1501 6 жыл бұрын
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 6 жыл бұрын
Hi, yes it's in the pipeline, but I never got around to record it.
@naasikhendricks1501
@naasikhendricks1501 6 жыл бұрын
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 6 жыл бұрын
There is a great book that will answer most of your questions and it's not expensive: leanpub.com/mastering-stm32
@Grze9898
@Grze9898 4 жыл бұрын
Call back receive will not work after first frame is received. You have to re-call this _IT function again in.
@Weblearning1
@Weblearning1 4 жыл бұрын
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?
@The_Murrays
@The_Murrays 6 жыл бұрын
Great video!
@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.
@najimmouadili9455
@najimmouadili9455 6 жыл бұрын
Excellent video, thanks . can you make some thing for ethernet port programming.
@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 4 жыл бұрын
@@Weblearning1I think st-link usb uart uses uart2, but here you use uart1 for dma. Could you explain?
@amitchautmal
@amitchautmal 4 жыл бұрын
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 4 жыл бұрын
Thanks for sharing
@khalilaliouich8246
@khalilaliouich8246 6 жыл бұрын
Excellent, I uset it with interupt, so can you send me an nucleo stm32 to France, thanks bro
@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.
@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 :)
@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 KZbin 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 #13: ADC with DMA
10:15
Web learning
Рет қаралды 42 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
STM32CubeIDE basics - 04 EXTI HAL lab
15:34
STMicroelectronics
Рет қаралды 48 М.
How to use ADC in STM32 Microcontroller- Read Analog Sensor Value
17:32
#3. How to Configure UART using REGISTERS || STM32F4
25:31
ControllersTech
Рет қаралды 39 М.
Receive data using UART in STM32 || Poll || Interrupt || DMA
14:07
ControllersTech
Рет қаралды 127 М.
STM32 ADC multiple channels || DMA || True studio || CubeMx
15:47
ControllersTech
Рет қаралды 71 М.
STM32 DMA PT 1
26:40
Eddie Amaya
Рет қаралды 40 М.
USART -  TechTalk 058
10:23
GHI Electronics
Рет қаралды 10 М.
HAL: #4 How to - UART Interrupt
7:00
Web learning
Рет қаралды 86 М.
STM32CubeIDE basics - 11 USART HAL lab
10:55
STMicroelectronics
Рет қаралды 63 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН