STM32 - UART Serial Communication | Transmit | Receive | DMA

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

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

  • @sungurtigin7258
    @sungurtigin7258 4 месяца назад +1

    just a remember you are a king brother i finally solve my problem!! Hope you get a great job!!

    • @electrofun5135
      @electrofun5135  4 месяца назад

      Thank you so much for your kind words. I am glad it worked out for you and I was able to help you.
      Thanks 😊

  • @yahyaekin8072
    @yahyaekin8072 2 месяца назад +1

    Helped a lot, thanks

    • @electrofun5135
      @electrofun5135  2 месяца назад

      That's great to hear. Glad it was helpful for you. Thanks

  • @abderraouflalla
    @abderraouflalla 11 дней назад +1

    Following your method, while transmitting the terminal shows the sent message twice (Hi Everyone). Why is that?

    • @electrofun5135
      @electrofun5135  4 дня назад

      I am not sure, you might want to check all your settings. Thanks

  • @wegi9621
    @wegi9621 7 месяцев назад +1

    1:43 How you can choose "Crystal ceramic resonator". Even in your picture from 0:17 it doesn't exist? You didn't should choose "Bypass clock source"?

    • @electrofun5135
      @electrofun5135  7 месяцев назад

      I am not sure if I understand your question correctly. I would suggest you to watch the video once again to see any step you might have missed. Thanks

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

    In this video explained very well but my dout is while receiving i dont know the data length i want to receive unknown data length howto achive ?

    • @electrofun5135
      @electrofun5135  Год назад

      I think the approach in there would be using interrupts. STM32 has some APIs that generate an interrupt once the last character is entered. You will have to look for APIs related to that and try them out.
      Thanks

  • @dienau6313
    @dienau6313 9 месяцев назад +1

    It helps me a lot, thank you, sir!
    And may I ask you some questions?
    1. Currently I am studying to program the STM32F405R6T6, so does it have the same code as stm32f446re?
    2. Beside the serial UART, I want to add 2 CAN protocols to the stm32, and I want to program to transmit the data from UART to stm32 to CAN1 to CAN2 and the opposite way, and I'm struggling for how to transmit the data from stm32 to CAN1, may you provide me some clues?
    Thank you!

    • @electrofun5135
      @electrofun5135  9 месяцев назад +1

      Hey I am glad it was helpful. I will try to answer your question the best I can.
      1) If the controller is the same then it will mostly be the same. Although the API remains the same the things that change are pinouts, frequency of operation, memory map and other peripherals.
      2) I have never worked with CAN so I am not sure how it works and what you need to make it work. Sorry I am not very helpful with this question due to lack of my experience.
      Hope this helps. Thank you 🙂

  • @axramar1992
    @axramar1992 Месяц назад

    Is that problem solved ? Some times it misses few char, I also tried , what's the solution for this?

  • @videogabibbocotoletta7467
    @videogabibbocotoletta7467 8 месяцев назад +1

    Hey, you mention that the callback is called only when the buffer (7 characters) is filled. But is there a way to call it when the newline is received, so that I can receive strings of different length? Thank youu :)

    • @electrofun5135
      @electrofun5135  8 месяцев назад

      Yea I think that is possible. There will be a check that says when a new line character is received. I am not sure what needs to be done. You will have to check the APIs and see what works the best for you and how you can use it for your special application. Thanks

  • @kavorka8855
    @kavorka8855 2 года назад +1

    This video says published 1 month ago, so use stm32cubemx separately, why not directly use stm32cubeide?

    • @electrofun5135
      @electrofun5135  2 года назад +1

      Appreciate your point here. I am just more comfortable with stm32cubexm and keil ide. I do plan to use stm32cubeide in future. Thanks

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

    Hi. I want to read 50bytes of data from one uart1 and send that same bytes to uart3. Can you please explain in 3types. Dma polling IT

    • @electrofun5135
      @electrofun5135  Год назад

      I will try to do so once I am done with all the queues I have planned.
      Thanks

  • @electronicsnoob
    @electronicsnoob 9 месяцев назад

    Bro i am using stm32nucleo-h563zi i choose 10bit resolution with 12.5 cycle sampling as ( 16 cycle not not showing) when i am running code my adc values stucking between two values ( 15-16) only ....

    • @electrofun5135
      @electrofun5135  9 месяцев назад

      This video is about UART. I am not sure I understand your question and it seems it is more focused on ADC. I would suggest you watch my other ADV video for more clarity. Thanks

  • @helmi2376
    @helmi2376 Год назад

    Will setting a GPIO on an Alternative Function Mode.
    Pins here can be used as in or out or for usart or for timers in same time??
    For exemple l make GPio_pin=pin0|pin1
    Can l take pin0 to send date via usart and pin1 as a digital output?
    Or all pins should have the same behaviour.

    • @Chia_seeds
      @Chia_seeds Год назад

      me too ! I am looking for using IO simulates UART serial communication!

    • @Chia_seeds
      @Chia_seeds Год назад

      Did you find it?

    • @helmi2376
      @helmi2376 Год назад

      @@Chia_seeds all pins should have the same behaviour.
      If u want switch between AF and An for exemple just make 2 différents functions for each config.
      Then call each one when u need it

    • @Chia_seeds
      @Chia_seeds Год назад

      @@helmi2376I know what you mean. I know the principle. But when I practiced, I always didn't know how to start. I'm getting started very shallowly. I don't have an oscilloscope at hand either. Do you need an oscilloscope for this?I

    • @helmi2376
      @helmi2376 Год назад

      @@Chia_seeds bro l'm a Software Devoloper, not skilled in embelded systhems

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

    Would this work to communicate between an STM32 and Raspberry Pi 4 via Uart?

    • @electrofun5135
      @electrofun5135  Год назад

      Yes it can work. Please check the voltage levels for both the boards. If one works on 3.3v, you will need a level shifter. Also the ground for both the boards have to be shorted.