Probably you have already noticed that part of screen has been cut during video recording especially on STM32Cube window, and taken into consideration for the future works even though it doesn't influence that much your high quality tutorials.
In HAL_UART_RECEIVE_Dma ( 11) Suppose I am expecting multiple strings of size 5 byte 6 byte 11 byte What size should I mention then , In this receive dma function ?
Same problem I am also facing please help somebody....It's very urgent for me ..Last from 1 week I am trying but send and receive is not happening in single code
how many bytes u want to send send that size of bytes it will receive ..otherwise u won't get ..and add carriage return and line feed if u want to send some bytes in provided bytes..i also faced same prob now it is working
The HAL designers seem to have a fetish for writing receive functions that require an exact number of bytes, for interfaces that are inherently for variable-length data. They do the same thing for SPI slave.
Excellent series of videos. I am trying the technique shown in this video but HAL_UART_RxCpltCallback() is getting called only once. Even with DMA mode set to circular. I am using one of those STM32F103 blue pill.
yes. still having the issue. no I dont have HAL_Delay in my callback. I tried making the callback as small as possible. I just have one statement in it (z++;) to increment a global variable.
Sure. Right now my project has lot of mixed c++ code and changes to some HAL files. Let me try to replicate your work here and report back if I still have issues.
I found this video very helpful, far more than the endless world of info that ST supplies. Can anyone inform me how to reach the functions list? it does not show by default and I cannot find it. I was able to get the function referred to somehow but not in the simple way shown here
Wait a second... I have an stm32f446re board does that mean that if I wanted to connect a sim800 module to my board, I have to solder/deaolder some bridges? That sounds dangerous :(
I am not able to receive and transmit the data in single code...When I am transmiting and receiving in separate program it is happenning but both simultaneously not working.....Please somebody help me urgent...I am using stm32 discovery board
Hi, you sent "Hello World ", that it's exactly 11 characters, i know if you send less DMA interrupt won´t be called, but what happen if you send more, or even if you dont know how many bytes you would receive per stream???
Hi, I usually write a basic handshaking packet, something like this: 1. DMA expects 4 bytes = '*', 0x00, 0x08, '#', where 0x0008 is the size of data will be sent. 2. When this start packet is received, UART DMA is started again to wait for 8 bytes. Then, the cycle is repeated. [You can do your own handshaking protocol] Hope this helps
I want CAN source/demo code with Loopback and Normal mode of STM32 with practical .can anyone try to do this ? for understanding CAN protocol practically only.
Hi thank you for this tutorial, can you please explain how to use HAL_UART_Transmit_IT function , i didn't understand its behaviour and it doesn't seem to be working like the HAL_UART_Transmit function
This was 7 months ago so my memory on the exact terminology is a bit hazy, but I can give you a general description of the solution I found. You can access the UART by going to the /dev folder. Use ls, there are a lot of entities in here so you have to go slow and find the correct one. I think it is called ST-LINK. You can open that using netcat tool via the netcat command. Failing that I think I also just used cat on the port / file. I believe they are ports but are treated as files, they being tty1, stderr, stdin.
@@mutexembedded2206 sir please help me I followed same step but not able to transmit and receive in same code.but when I am using transmitting and receiving seprete it is happening ...Please help...I am using stm discovery
Hello friend, I made all the configurations so I can not receive it but I can send it !!! I did not succeed with the stm32f767zi card has how to help !!!
I had the same problem and now it is solved ... just for other people ... for me the problem was the cable ... I was using the same usb cable that I programmed the stm32. But after when I used serial cable ... it also start to receive ...(happy moments :D)
After once loading the Tx code of this tutorial, my PC stop detecting stm32f103c8t6 Error is target DLL has been cancelled. Can you/anyone help me with this?
I have same problem. Connect boot0 pin to 3v then power up controller then connect it with keil or stm utility abd erase the program. But the problem remain same after reprogramming with same project.