No video

HAL: #3 How to - UART

  Рет қаралды 74,362

Web learning

Web learning

6 жыл бұрын

In this video, I will show how to use the HAL UART functions.
Before you watch this, please see the video on how to use the STM32CubeMX if you dont already know.
• #1 STM32CubeMX Tutoria...
UM1724 - STM32 Nucleo-64 board: www.st.com/cont...
** 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

Пікірлер: 55
@malgailany
@malgailany 6 жыл бұрын
One of the powerful features of the STM32F 3/4/7 MCUs, is the Serial Wire Viewer (SWV) debug. It is a minimally intrusive debugging through the Serial Wire Output pin (SWO). You may send a printf() style strings through ST-Link or other external debuggers and view the strings using ST-LINK utility (free PC software from ST), even after the debug session is ended. SWV is built into the ARM Coresight debug module which is part of every ARM Cortex M3, M4, and M7 cores. Thanks.
@Weblearning1
@Weblearning1 6 жыл бұрын
Thanks for sharing this info with everyone. I will try to make a video also on this one day.
@trt969
@trt969 6 жыл бұрын
Thanks again man... When I was trying to learn about STM ARM microcontroller (I was coming from PIC/AVR) your videos were really helpful, specifically these: #1 STM32CubeMX Tutorial #2 How the cube generates the code #3 STM32CubeExamples #4 Free Keil License (This one was amazing hehe) ST Link Update STMStudio Tutorial Only with these tutorials you pretty much gave me the ability to do anything =D Thanks!
@Weblearning1
@Weblearning1 6 жыл бұрын
Hi. You are one of the free boards winner. Please send me your full address in a privet message.
@trt969
@trt969 6 жыл бұрын
Thanks man, I have sent my address to you!
@nikolaykostishen6402
@nikolaykostishen6402 6 жыл бұрын
Short and extremely useful! Thank you! Hope you will not leave this.
@robertolin4568
@robertolin4568 2 жыл бұрын
Note that the said figures in 1:18 and 1:27 are no longer available in latest version of UM1724
@kamilbarczynski6699
@kamilbarczynski6699 6 жыл бұрын
Really handy videos. Short, but step-by-step. Keep it up! :) I would be delighted to win one of those boards.
@KosonTrachu
@KosonTrachu 4 жыл бұрын
Thank you for sharing your knowledge.
@Weblearning1
@Weblearning1 4 жыл бұрын
My pleasure!
@jayasharma4208
@jayasharma4208 4 жыл бұрын
very informative video and such good explanation but just clear one thing from where data is being transmitted?
@Weblearning1
@Weblearning1 4 жыл бұрын
Sorry, I didn't understand your question. From the hardware or software?
@jayasharma4208
@jayasharma4208 4 жыл бұрын
@@Weblearning1 I mean which command is used to transmit data?
@jayasharma4208
@jayasharma4208 4 жыл бұрын
Thank you for replying, I am stuck using st32f0 board with stm32 cube ide, and its showing no change in variable values.
@Cyclonus101
@Cyclonus101 6 жыл бұрын
keep'em coming!
@matheussousa7952
@matheussousa7952 4 жыл бұрын
Good Work!
@Weblearning1
@Weblearning1 4 жыл бұрын
Thanks.
@casholsen5848
@casholsen5848 6 жыл бұрын
I've been using the blue pill with the Arduino IDE but I'd like to have the full debug environment found on the Nucleo board.
@Weblearning1
@Weblearning1 6 жыл бұрын
Have a look at this video that I made: kzfaq.info/get/bejne/b7eqmbqn2LWYd6M.html
@shilpagopakumar4984
@shilpagopakumar4984 3 жыл бұрын
how to transmit and receive structure containing char int float members through uart ?
@fuzzs8970
@fuzzs8970 2 жыл бұрын
Hi Very nice video simple explanation. How do you send data to an MCU using UART and the nucleo board? Would you mind if ever you have an example and some free time to share your work. Thank you
@Weblearning1
@Weblearning1 2 жыл бұрын
This video shows on how to send it to the PC on the Nucleo board.
@ahzfarn
@ahzfarn 5 жыл бұрын
many thanks
@armincal9834
@armincal9834 3 жыл бұрын
Hi. Thanks for sharing this with us for free. I have a question though is there a HAL function which echos back what we type on the keyboard to indicate that the transmission of each letter was successful? Also do you have a similar tutorial but with interrupts? Thanks
@Weblearning1
@Weblearning1 3 жыл бұрын
Yes, there is a video with UART and interrupt on my channel. It will be great also if you subscribe to my channel.
@kiptonm
@kiptonm 3 жыл бұрын
I missed a step. at 5:02 You said "Put a breakpoint here everytime you see data." How do you do that? If I put a breakpoint there it stops on the HAL_UART_Receive(&huart2, data, 10, 1000); , and it does not appear to get the data sent.
@Weblearning1
@Weblearning1 3 жыл бұрын
Put a breakpoint at line 106 so it will stop every time you get the data. It will be great also if you subscribe to my channel.
@JeN-iy8rq
@JeN-iy8rq 6 жыл бұрын
Nice bro 😍
@badingamusshca8256
@badingamusshca8256 2 жыл бұрын
Nice
@Weblearning1
@Weblearning1 2 жыл бұрын
Thanks
@abhishekmp1036
@abhishekmp1036 4 жыл бұрын
HELPPPPPPPPP TTL to USB converter is must for UART communication in STM32F407vg discovery board ??
@Weblearning1
@Weblearning1 4 жыл бұрын
This is one of the older boards before DT came out with the nucleo. I think that you can upgrade it to have TTL to USB using the st-link update that's in the cube programmer, but I never tried it and don't know what pins it's using in that board after the update.
@franciscomarcelo632
@franciscomarcelo632 6 жыл бұрын
Thx!
@akshaysalunkhe1043
@akshaysalunkhe1043 4 жыл бұрын
It says undefined symbol HAL_UART_receive. I have followed all the steps 4 times. What can be the reason? And in my keil v5, the code completion doesn't work. So to write with correct code is a bit difficult. Do you know how to enable it?
@Weblearning1
@Weblearning1 4 жыл бұрын
What STM32 are you using? Are you using latest CubeMX? What error code are you getting on the Keil? Can you load the IOC and main file and share them?
@kiptonm
@kiptonm 3 жыл бұрын
HAL_UART_Receive not HAL_UART_receive. -- upper lower case matters.
@a.h.z2830
@a.h.z2830 3 жыл бұрын
how can i find which device path is my device connected to in linux ? (that would be the equivalent of com , ex: /dev/ttyS0)
@Weblearning1
@Weblearning1 3 жыл бұрын
try something like: ls /dev/tty* That will should list all the available ports.
@ahmetturker2840
@ahmetturker2840 4 жыл бұрын
why am I getting different things on com port while transmitting?
@Weblearning1
@Weblearning1 4 жыл бұрын
Usualy its settings on the speed of the OSC, UART, Terminal etc. Check everything and follow the video again.
@stwindforce
@stwindforce 4 жыл бұрын
speaking of serial console, I was wasted a lot of time on finding a linux alternative for docklight. I am wondering if I can get a hint from you? thank you!
@agir4707
@agir4707 4 жыл бұрын
minicom
@Weblearning1
@Weblearning1 4 жыл бұрын
It's hard to find a good alternative to Docklight even in windows ( if you use all the features). The only one that is free and close to Docklight ( on windows ) is Hercules. For Linux, I don't know of such full featured serial interfere.
@DocMicha
@DocMicha 6 жыл бұрын
There are a lot of commands, handlers etc. Is there an overview over the HAL-Commands, or as newbee where do you find all the commands?
@Weblearning1
@Weblearning1 6 жыл бұрын
In the repository, see my video on it. c:\Users\\STM32Cube\Repository\STM32Cube_FW_\Drivers\STM32_HAL_Driver\
@aaakkk180
@aaakkk180 5 жыл бұрын
CAN YOU SEND ME THE FREE DEMO BOARD
@ahbushnell1
@ahbushnell1 2 жыл бұрын
No one uses 7 bits anymore. 8 bits on UART.
@ahmetemin08
@ahmetemin08 5 жыл бұрын
DO NOT CUT VIDEO
@Weblearning1
@Weblearning1 5 жыл бұрын
I try not to cut them, only speed them up so you can slow them down and see the complete process. What part do you think was cut?
@ahmetemin08
@ahmetemin08 5 жыл бұрын
@@Weblearning1 We try to catch up with you, don't make it quick but make it clear. Especially on the coding sequence.
HAL: #4 How to - UART Interrupt
7:00
Web learning
Рет қаралды 85 М.
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 13 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 28 МЛН
HAL #13: ADC with DMA
10:15
Web learning
Рет қаралды 41 М.
These Illusions Fool Almost Everyone
24:55
Veritasium
Рет қаралды 2,2 МЛН
Receive data using UART in STM32 || Poll || Interrupt || DMA
14:07
ControllersTech
Рет қаралды 124 М.
HAL: #6 How to - USART with DMA
6:00
Web learning
Рет қаралды 42 М.
Transmit data using UART in STM32 || Poll || Interrupt || DMA
20:34
ControllersTech
Рет қаралды 73 М.