Тёмный

STM32F4 Nucleo - Keil 5 IDE with CubeMX: Tutorial 38 - Printf UART debugging 

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

This tutorial shows how to use printf to print to a UART terminal, in both Keil IDE and SW4STM32.
Tutorial Guide:
github.com/MYaqoobEmbedded/ST...

Наука

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

 

6 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@harshit1206
@harshit1206 4 года назад
Thanks @MYaqoobEmbedded , printf eased my life!
@oscarhu2010
@oscarhu2010 Год назад
Thank you very much! It's complex in MCU world but you give me a easy way to fix my problem.
@mutexembedded2206
@mutexembedded2206 Год назад
You're welcome Oscar
@25RossT
@25RossT 3 года назад
this is some big send energy with all of these videos. God bless
@christianchristian9596
@christianchristian9596 3 года назад
Thank you! It was more useful than other ones!
@phoraramotale3414
@phoraramotale3414 5 лет назад
Your videos are very helpful
@ritulshah92
@ritulshah92 3 года назад
Thank you Sir! This tutorial was very useful.
@emreiris114
@emreiris114 5 лет назад
Another informative video :) thanks so much
@adrianevaraldo955
@adrianevaraldo955 4 года назад
thank you very much!!!! it was driving me crazy not being able to use printf
@mutexembedded2206
@mutexembedded2206 4 года назад
Cool
@Engineer_Valat
@Engineer_Valat 5 лет назад
جزاك الله خيرا..
@astroman5510
@astroman5510 4 года назад
Great Explanation! Can we use fgets() and atoi() or atof() to enter an integer or floating point number from the keyboard to the MCU? For example, something like this: char mynum_printf[20]; int mynum = 0; printf("Please enter an integer: "); fgets(mynum_printf, sizeof(mynum_printf), stdin); mynum = atoi(mynum_printf); printf("Your number is: %d ", mynum);
@Graham1904
@Graham1904 4 года назад
Another great video
@parivicky641
@parivicky641 3 года назад
Thank you so much for sharing.
@antojslinjijo4596
@antojslinjijo4596 4 года назад
thanks a lot it helps me a lot and u got a new subscriber
@mutexembedded2206
@mutexembedded2206 4 года назад
Enjoy :)
@jesusAsari
@jesusAsari 3 года назад
Hi! do you know to identify the pulses of IR control using STM32F4?
@amirparto
@amirparto 4 года назад
Thanks a lot. It helps :)
@yerihiturriago9271
@yerihiturriago9271 2 года назад
Hey! Nice tutorial. But in my case, I can't print float numbers. I've my printf as "This is a float = %f", but the out is "This is a float = ", why happen this? I've linker flags configured as you teach in your video and I have the functions. I'm using USB like COM port (CDC_Transmit_FS function).
@pusatberk4193
@pusatberk4193 5 лет назад
thank you so much
@romiolover6852
@romiolover6852 5 лет назад
great tutorial thank you a lot
@MclarenF1rocket
@MclarenF1rocket 4 года назад
Awesome - i got things printing on serial but after 35 cycles (no matter what HAL_Delay i put) , my code gets stuck in UART_WaitOnFlagUntilTimeout forever - any ideas on what could be causing t his? I'm using the STM32L476RG Nucleo board.
@anonymoususer313
@anonymoususer313 2 года назад
Great video!!!
@saurabhjha5401
@saurabhjha5401 3 года назад
Is it necessary to use USB to serial converter , because I'm not getting data on my Serial terminal.
@sakthiprakash3337
@sakthiprakash3337 4 года назад
Its nice tutorial Bro, Please give a tutorial for scanf for usart with dma.
@aboody7k
@aboody7k 5 лет назад
Hey Yaqoob ! Thank you so much :) it was very helpful. could you pleas make vidoe about ( 4x4 Keypad I2C 8bit IO Expander with stm32f4 discoveryboard )?. I need that actually for my final project
@brijeshkhokhar
@brijeshkhokhar 3 года назад
thanks, this is useful hack...!!
@punit_patel
@punit_patel 5 лет назад
Loved your tutorials. BTW Started Working on OTA in stm32 over LoRaWAN (multicast).
@arrshithrg5359
@arrshithrg5359 3 года назад
can either of the methods be used in stm32cube ide for printf ? or which method is suitable for stm32cubeide?
@mutexembedded2206
@mutexembedded2206 3 года назад
Pretty much same
@arrshithrg5359
@arrshithrg5359 3 года назад
@@mutexembedded2206 I tried it , works fine for int but not for float. I tried to search for linker flag in mcu gcc linker but not able to find linker flag in stm32cube iDE
@mutexembedded2206
@mutexembedded2206 3 года назад
@@arrshithrg5359 It is easy, just a checkbox, read this: community.st.com/s/question/0D50X0000B0AEJb/uprintffloat-where-to-set-for-clinker-in-stm32cubeide
@ChristianDAquino
@ChristianDAquino 4 года назад
@MYaqoobEmbedded, I can't get it to work on the Atollic TrueStudio. Any tricks there?
@mutexembedded2206
@mutexembedded2206 4 года назад
Try to do it manually.. Open syscalls.c Find _write function Put your HAL_transmit() there.
@harshit1206
@harshit1206 4 года назад
Hi Christian, I have observed (by chance), this entire thing only works if the string is terminated by or . Please try printing something like printf("Hello World! ); .
@ralekri
@ralekri 5 лет назад
nice
@isokemisoke
@isokemisoke 4 года назад
Can u add How to use printf with DMA_Tx ? It will be great ! Thanks a lot by the way.
@vivekanand_dhakane
@vivekanand_dhakane 3 года назад
Thanks
@hero21number18
@hero21number18 2 года назад
i tried with stm32cubemax but it did not work my board is stm32f407vg, i did every thing same
@yerihiturriago9271
@yerihiturriago9271 2 года назад
me too
@ramzibouzaienne4234
@ramzibouzaienne4234 Год назад
Hello, please, I need the system workbench tools 46 bits for stm32. Please, send me the tools.
@naasikhendricks1501
@naasikhendricks1501 5 лет назад
Ramadan Kareem.
@mutexembedded2206
@mutexembedded2206 5 лет назад
Thanks :) Ramadan Kareem
@naasikhendricks1501
@naasikhendricks1501 5 лет назад
Afwaan. I will try to be in contact shortly Insha'Allah. Great tutorial
@amitchautmal
@amitchautmal 4 года назад
Good tutorial. Sir, can u make tutorial on stm32 modus protocol as a slave and master. Thanks.
@abutaymiyyahlectures
@abutaymiyyahlectures 2 года назад
i now know how i can do it, but i still dont know how it works
@JAGANNATHSAHOOtheraw
@JAGANNATHSAHOOtheraw 5 лет назад
Thanks
Далее
WE COOKED A SHRIMP KEBAB  #recipe #barbecue #food
00:21
Просмотров 336 тыс.
Looks realistic #tiktok
00:22
Просмотров 19 млн
Hacker's Guide to UART Root Shells
17:40
Просмотров 466 тыс.
STM32 Guide #2: Registers + HAL (Blink example)
30:02
Просмотров 186 тыс.
STM32C0 Tutorial, How to use printf
12:37
Просмотров 1,3 тыс.
Why are Bluescreens Blue?
16:27
Просмотров 945 тыс.