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

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

Комментарии •

  • @oscarhu2010
    @oscarhu2010 Год назад +1

    Thank you very much!
    It's complex in MCU world but you give me a easy way to fix my problem.

  • @25RossT
    @25RossT 3 года назад +2

    this is some big send energy with all of these videos. God bless

  • @harshit1206
    @harshit1206 4 года назад +2

    Thanks @MYaqoobEmbedded , printf eased my life!

  • @chim20air
    @chim20air 5 лет назад +1

    thank you very much!!!! it was driving me crazy not being able to use printf

  • @astroman5510
    @astroman5510 5 лет назад +1

    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);

  • @christianchristian9596
    @christianchristian9596 3 года назад +1

    Thank you! It was more useful than other ones!

  • @phoraramotale3414
    @phoraramotale3414 5 лет назад +3

    Your videos are very helpful

  • @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).

  • @ritulshah92
    @ritulshah92 3 года назад +1

    Thank you Sir! This tutorial was very useful.

  • @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.

  • @arrshithrg5359
    @arrshithrg5359 3 года назад +1

    can either of the methods be used in stm32cube ide for printf ? or which method is suitable for stm32cubeide?

    • @mutexembedded2206
      @mutexembedded2206  3 года назад +1

      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

  • @jesusAsari
    @jesusAsari 3 года назад

    Hi! do you know to identify the pulses of IR control using STM32F4?

  • @emre_iris
    @emre_iris 5 лет назад +1

    Another informative video :) thanks so much

  • @ChristianDAquino
    @ChristianDAquino 4 года назад +1

    @MYaqoobEmbedded, I can't get it to work on the Atollic TrueStudio. Any tricks there?

    • @mutexembedded2206
      @mutexembedded2206  4 года назад +1

      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!

      ); .

  • @saurabhjha5401
    @saurabhjha5401 3 года назад

    Is it necessary to use USB to serial converter , because I'm not getting data on my Serial terminal.

  • @Engineer_Valat
    @Engineer_Valat 5 лет назад +3

    جزاك الله خيرا..

  • @sakthiprakash3337
    @sakthiprakash3337 4 года назад

    Its nice tutorial Bro, Please give a tutorial for scanf for usart with dma.

  • @isokemisoke
    @isokemisoke 4 года назад +2

    Can u add How to use printf with DMA_Tx ? It will be great ! Thanks a lot by the way.

  • @antojslinjijo4596
    @antojslinjijo4596 5 лет назад +1

    thanks a lot it helps me a lot and u got a new subscriber

  • @parivicky641
    @parivicky641 3 года назад

    Thank you so much for sharing.

  • @punit_patel
    @punit_patel 5 лет назад

    Loved your tutorials.
    BTW Started Working on OTA in stm32 over LoRaWAN (multicast).

  • @Graham1904
    @Graham1904 5 лет назад

    Another great video

  • @ramzibouzaienne4234
    @ramzibouzaienne4234 2 года назад

    Hello, please, I need the system workbench tools 46 bits for stm32. Please, send me the tools.

  • @anonymoususer313
    @anonymoususer313 2 года назад

    Great video!!!

  • @hero21number18
    @hero21number18 3 года назад

    i tried with stm32cubemax but it did not work my board is stm32f407vg, i did every thing same

  • @brijeshkhokhar
    @brijeshkhokhar 3 года назад +1

    thanks, this is useful hack...!!

  • @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

  • @pusatberk4193
    @pusatberk4193 5 лет назад +1

    thank you so much

  • @romiolover6852
    @romiolover6852 5 лет назад

    great tutorial thank you a lot

  • @amirparto
    @amirparto 5 лет назад +1

    Thanks a lot. It helps :)

  • @naasikhendricks1501
    @naasikhendricks1501 5 лет назад +1

    Ramadan Kareem.

  • @ralekri
    @ralekri 5 лет назад +1

    nice

  • @vivekanand_dhakane
    @vivekanand_dhakane 3 года назад

    Thanks

  • @amitchautmal
    @amitchautmal 4 года назад

    Good tutorial. Sir, can u make tutorial on stm32 modus protocol as a slave and master. Thanks.

  • @abutaymiyyahlectures
    @abutaymiyyahlectures 3 года назад

    i now know how i can do it, but i still dont know how it works

  • @JAGANNATHSAHOOtheraw
    @JAGANNATHSAHOOtheraw 5 лет назад +1

    Thanks