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);
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).
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.
@@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
@@arrshithrg5359 It is easy, just a checkbox, read this: community.st.com/s/question/0D50X0000B0AEJb/uprintffloat-where-to-set-for-clinker-in-stm32cubeide
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
Thank you very much!
It's complex in MCU world but you give me a easy way to fix my problem.
You're welcome Oscar
this is some big send energy with all of these videos. God bless
Thanks @MYaqoobEmbedded , printf eased my life!
thank you very much!!!! it was driving me crazy not being able to use printf
Cool
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);
Thank you! It was more useful than other ones!
Your videos are very helpful
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).
Thank you Sir! This tutorial was very useful.
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.
can either of the methods be used in stm32cube ide for printf ? or which method is suitable for stm32cubeide?
Pretty much same
@@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
@@arrshithrg5359 It is easy, just a checkbox, read this:
community.st.com/s/question/0D50X0000B0AEJb/uprintffloat-where-to-set-for-clinker-in-stm32cubeide
Hi! do you know to identify the pulses of IR control using STM32F4?
Another informative video :) thanks so much
@MYaqoobEmbedded, I can't get it to work on the Atollic TrueStudio. Any tricks there?
Try to do it manually..
Open syscalls.c
Find _write function
Put your HAL_transmit() there.
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!
); .
Is it necessary to use USB to serial converter , because I'm not getting data on my Serial terminal.
جزاك الله خيرا..
Its nice tutorial Bro, Please give a tutorial for scanf for usart with dma.
Can u add How to use printf with DMA_Tx ? It will be great ! Thanks a lot by the way.
thanks a lot it helps me a lot and u got a new subscriber
Enjoy :)
Thank you so much for sharing.
Loved your tutorials.
BTW Started Working on OTA in stm32 over LoRaWAN (multicast).
Another great video
Hello, please, I need the system workbench tools 46 bits for stm32. Please, send me the tools.
Great video!!!
i tried with stm32cubemax but it did not work my board is stm32f407vg, i did every thing same
me too
thanks, this is useful hack...!!
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
thank you so much
great tutorial thank you a lot
Thanks a lot. It helps :)
Ramadan Kareem.
Thanks :)
Ramadan Kareem
Afwaan. I will try to be in contact shortly Insha'Allah. Great tutorial
nice
Thanks
Good tutorial. Sir, can u make tutorial on stm32 modus protocol as a slave and master. Thanks.
i now know how i can do it, but i still dont know how it works
Thanks