Тёмный
No video :(

STM32 Nucleo - Keil 5 IDE with CubeMX: Tutorial 5 - UART Serial Communication 

Mutex Embedded
Подписаться 22 тыс.
Просмотров 113 тыс.
50% 1

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@gerhardmalberg4966
@gerhardmalberg4966 5 лет назад
You have Best tutorials of STM32 programming. Keep up good work!
@1985rbaek
@1985rbaek 3 года назад
Simple and to the point. Much appreciated, good job :-D
@elaguilaylaserpiente7844
@elaguilaylaserpiente7844 2 года назад
Excellent job, I'm using my own board which is using STM32F401,and I used UART1.It worked just fine Thanks!
@sonukushwah221
@sonukushwah221 6 лет назад
Excellent you are doing great job, I am very impress thanks for this video
@sakugava
@sakugava 3 года назад
Simple and objective. Good job.
@kar_prz
@kar_prz 5 лет назад
Nice tutorial, keep up the good work
@CmZam17
@CmZam17 5 лет назад
Thank you! That was nice and clear , I hope you make more videos about the micro controllers.
@kristianharge7382
@kristianharge7382 3 года назад
Good video, it would be better to have the whole screen tho
@mutexembedded2206
@mutexembedded2206 3 года назад
You're right. I am preparing a series of "lots" of videos, this time I have a media person to sort these things out.
@hamidrezamirtaheri5414
@hamidrezamirtaheri5414 6 лет назад
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.
@mutexembedded2206
@mutexembedded2206 6 лет назад
Hamidreza Mirtaheri Thanks for highlighting that Hamid.
@anuarmohamed7590
@anuarmohamed7590 2 года назад
using L073 board and it works. thank you sir
@zuhaibchoudhary4635
@zuhaibchoudhary4635 4 года назад
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 ?
@bhupendersingh2604
@bhupendersingh2604 8 месяцев назад
Great tutorial. How can i implement CRC to this
@ammarsyahmi3144
@ammarsyahmi3144 2 года назад
Hi when i try to load the keil coding, it says that "No ST-LINK detected" and i cannot enter debug mode. I'm pretty sure it's connected using LAN.
@mutexembedded2206
@mutexembedded2206 2 года назад
Not sure, you probably need to check Debugger Settings, I normally use USB ST-Link.
@ritulshah92
@ritulshah92 3 года назад
Thank you for this video. But how can we transmit Integers or Array with USART in STM32?
@mutexembedded2206
@mutexembedded2206 3 года назад
Hi, safest way is to use ASCII
@dibyasundar2414
@dibyasundar2414 5 лет назад
Receive and Transmit function don't work in a single code but they work fine individually. What may be the problem?
@ashutoshmishra1603
@ashutoshmishra1603 4 года назад
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
@murilofabricio4836
@murilofabricio4836 5 лет назад
Thank you for the video. It was very helpful.
@jackenglish4885
@jackenglish4885 4 года назад
Brilliant stuff
@sylviabanerjee5920
@sylviabanerjee5920 5 лет назад
I followed the same procedure but unable to receive back the transmitted data
@sasikanth4273
@sasikanth4273 4 года назад
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
@epiendless1128
@epiendless1128 4 года назад
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.
@uncommonsensor
@uncommonsensor Год назад
that's awful
@aashutosh3721
@aashutosh3721 2 года назад
Nice
@TheSolderingGuy007
@TheSolderingGuy007 6 лет назад
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.
@mutexembedded2206
@mutexembedded2206 6 лет назад
TheSolderingGuy007 Hi, Are you still having this issue? Did you use HAL_Delay in the Uart rx callback?
@TheSolderingGuy007
@TheSolderingGuy007 6 лет назад
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.
@mutexembedded2206
@mutexembedded2206 6 лет назад
TheSolderingGuy007 Send me a screenshot of your UART and DMA configuration pls.
@TheSolderingGuy007
@TheSolderingGuy007 6 лет назад
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.
@TeamEnFil
@TeamEnFil Год назад
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
@mutexembedded2206
@mutexembedded2206 Год назад
Hi, Glad you find it useful. Use Project Window on left side to access files.
@TeamEnFil
@TeamEnFil Год назад
The functions tab you showed is not there and I don't know how to enable it to find other functions@@mutexembedded2206
@mutexembedded2206
@mutexembedded2206 Год назад
@@TeamEnFil I don't use Keil anymore, try the view tab, and look for Project Window.
@armincal9834
@armincal9834 3 года назад
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 :(
@ashutoshmishra1603
@ashutoshmishra1603 4 года назад
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
@mutexembedded2206
@mutexembedded2206 4 года назад
Hi, You should be able to do that with DMA.
@ashutoshmishra1603
@ashutoshmishra1603 4 года назад
@@mutexembedded2206 Yes with DMA I am able to do ..But individual when I am using transmit and receive function in same code then not working
@ashutoshmishra1603
@ashutoshmishra1603 4 года назад
@@mutexembedded2206 please help me
@mutexembedded2206
@mutexembedded2206 4 года назад
@@ashutoshmishra1603 what sort of application you're using it for? I might be able to give you few tips
@ashutoshmishra1603
@ashutoshmishra1603 4 года назад
@@mutexembedded2206 just I am doing uart communication.on tera term
@shubhampatil3254
@shubhampatil3254 3 года назад
How can I add Keil toolchain in STM32 CubeMX
@LunaMarlowe327
@LunaMarlowe327 6 лет назад
Very good video for me
@nicolasmosqueraseligmann4904
@nicolasmosqueraseligmann4904 6 лет назад
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???
@mutexembedded2206
@mutexembedded2206 6 лет назад
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
@nicolasmosqueraseligmann4904
@nicolasmosqueraseligmann4904 6 лет назад
thanks, that's a good idea, by chance do you know any way to re-target TX UART to printf through DMA and using a circular buffer
@rex0205
@rex0205 3 года назад
can we use the other uart periferals like uart 1 ? if yes, how can we ?
@user-rg6cj3en9y
@user-rg6cj3en9y 5 лет назад
Thanks but how it is receive with data variable valeur
@akshaypatil1615
@akshaypatil1615 5 лет назад
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.
@do7de764
@do7de764 4 года назад
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
@armincal9834
@armincal9834 3 года назад
It uses interrupt instead of polling method so you have to allow global Interrupts for your desired UART/USART pin for it to work
@pushparajadka1079
@pushparajadka1079 4 года назад
hey!! good tutorial.. Thanks. can you tell me how can i work on multi serial with nucleo? As well as i want to learn hal programming. help please
@robertmcvickers5975
@robertmcvickers5975 4 года назад
Does anyone know how to open the virtual com port in linux?
@robertmcvickers5975
@robertmcvickers5975 4 года назад
& Thanks for a great tutorial
@mutexembedded2206
@mutexembedded2206 4 года назад
@@robertmcvickers5975 Cheers, I don't use linux unfortunately. Mr Google should be able to help :)
@agir4707
@agir4707 4 года назад
Did you find any programs?
@robertmcvickers5975
@robertmcvickers5975 4 года назад
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.
@dskygn
@dskygn 4 года назад
Followed every instruction, cannot transmit hello world.
@mutexembedded2206
@mutexembedded2206 4 года назад
What board you're on?
@dskygn
@dskygn 4 года назад
@@mutexembedded2206 nucleo - f411re
@mutexembedded2206
@mutexembedded2206 4 года назад
@@dskygn check its user manual for ST-Link UART VCP. Most probably you need to solder couple of solder bridges
@ashutoshmishra1603
@ashutoshmishra1603 4 года назад
@@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
@srinivas-8339
@srinivas-8339 5 лет назад
Could you please provide STM32 HAL with "SN65HVD12D RS-485 Interface" ..
@artedesing
@artedesing 5 лет назад
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 !!!
@gauravgarg8465
@gauravgarg8465 5 лет назад
same here, Can you help on this if you found solution of this?
@browny867
@browny867 5 лет назад
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)
@subalakshmi2861
@subalakshmi2861 4 года назад
some body will help me to learn about serial data transfer in stm32 . i m just a beginner
@UsmanMalik-dw8zd
@UsmanMalik-dw8zd 5 лет назад
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?
@bharathydraulics
@bharathydraulics 5 лет назад
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.
@f5csitclasses153
@f5csitclasses153 3 года назад
what does HAL stand for?
@osuagwumiracle1499
@osuagwumiracle1499 3 года назад
Hardware Abstraction Layer
@sankaraki
@sankaraki 4 года назад
need improve voice quality
@mertcandemirci4863
@mertcandemirci4863 5 лет назад
I lost data when ı send lenght +9
@mutexembedded2206
@mutexembedded2206 5 лет назад
Hi, Could be the array size
@mheuuj
@mheuuj 3 года назад
Roses are red, Violets are blue, The standard screen size is 16:9, So yours should be too
Далее
OBLADAET - BARMAN
03:06
Просмотров 59 тыс.
STM32. USART
24:45
Просмотров 6 тыс.
Using I2C for any device on STM32 with HAL | VIDEO 26
37:51
The RS-232 protocol
26:10
Просмотров 832 тыс.
STM32 UART Programming | CubeMX | Keil
16:38
printf() over the UART using STM32
12:55
Просмотров 31 тыс.
OBLADAET - BARMAN
03:06
Просмотров 59 тыс.