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.
@joaopedrovbs3 жыл бұрын
Thanks! I've been strugling with this for some time, and this solved it for me!!
@zrnradmilovic3 жыл бұрын
This is very true. Where exactly is this pointed out? I haven't seen it.
@Adam_Lyskawa2 жыл бұрын
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.
@rand66262 жыл бұрын
Thanks a lot for the tip!
@samueljames24912 жыл бұрын
OMG! THANKS A LOT!!!!! I WAS STRUGGLING WITH THIS FOR OVER A WEEK!
@MrEptor6 жыл бұрын
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
@vincentl70226 жыл бұрын
JUST SO YOU know that your tutoriels are gold !
@ZiclopDevices4 жыл бұрын
22.440 visualizations... only 218 likes... I dont understand people ... Excellent work! I like your videos very much.
@Weblearning14 жыл бұрын
Thank you so much 😀 Dont forget to subscribe and click the notification bell. That also helps...
@naasikhendricks15016 жыл бұрын
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.
@mohamedfall16003 жыл бұрын
Thanks, i helped !!
@Weblearning13 жыл бұрын
Glad it helped!
@Steve_be6 жыл бұрын
Excellent video, thanks for making,
@maharshisorathiya32054 жыл бұрын
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.
@leecoca4825 жыл бұрын
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?
@Weblearning15 жыл бұрын
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
@MrRonychakraborty5 жыл бұрын
Nice Brother, It helped
@Weblearning15 жыл бұрын
Thanks
@vankatar6 жыл бұрын
Hi, it will be very nice to have a board, thanks in advance. I really like the tutorials, they are verry helpfull. Great job!
@TechnoAutomation6 жыл бұрын
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.
@Weblearning16 жыл бұрын
Hi. You are one of the free demo board winners. Please send me your information in a privet message. Thanks.
@AbrahamGutierrez76i5 жыл бұрын
Did you manage to control the Nextion screen with the STM32?
@Weblearning15 жыл бұрын
Sorry, never got around to do that. I do know of someone else that did it for their final year project.
@naasikhendricks15016 жыл бұрын
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.
@Weblearning16 жыл бұрын
Hi, yes it's in the pipeline, but I never got around to record it.
@naasikhendricks15016 жыл бұрын
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.
@Weblearning16 жыл бұрын
There is a great book that will answer most of your questions and it's not expensive: leanpub.com/mastering-stm32
@Grze98984 жыл бұрын
Call back receive will not work after first frame is received. You have to re-call this _IT function again in.
@Weblearning14 жыл бұрын
Worked for me. Dont know why you are not receiving first frame.
@bitlabhanuteja57943 жыл бұрын
@@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_Murrays6 жыл бұрын
Great video!
@muhammadhassanulhaq6 жыл бұрын
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.
@najimmouadili94556 жыл бұрын
Excellent video, thanks . can you make some thing for ethernet port programming.
@RohitVerma-jl1qj4 жыл бұрын
why you connect PA9 and PA10??
@Weblearning14 жыл бұрын
These pines are connected to the ST-Link USB UART to the PC. No need to use an external one.
@kaiyangsun40894 жыл бұрын
@@Weblearning1I think st-link usb uart uses uart2, but here you use uart1 for dma. Could you explain?
@amitchautmal4 жыл бұрын
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.
@Weblearning14 жыл бұрын
Thanks for sharing
@khalilaliouich82466 жыл бұрын
Excellent, I uset it with interupt, so can you send me an nucleo stm32 to France, thanks bro
@lukaszniepala68336 жыл бұрын
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?
@Weblearning16 жыл бұрын
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.
@TheCarlosmach6 жыл бұрын
im looking forward to the giveaway i really want a free board :)
@Weblearning16 жыл бұрын
Hi. You are one of the free demo board winners. Please send me your information in a privet message. Thanks.
@TheCarlosmach6 жыл бұрын
message sent :)
@aliaslmx5 жыл бұрын
Your tutorial is great, but you move to fast. Thank you! I appreciate your job!
@Weblearning15 жыл бұрын
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
@aliaslmx5 жыл бұрын
@@Weblearning1 you're right! Thank you for suggestion!