STM32 UART #4 || Receive Data using the DMA

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

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

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

    Hello I wanted to say that i love your videos so much you are such an amazing content creator ! i was wondering if you are going to adopt the websocket method to visualize real time data variation in a http server ? That would be extremly good since there's no tutorial in youtube yet. If not, do you have any ressources that can help me know more about this method ? thank you again !

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

    thank you very much!

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

    Again great video!

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

    Hey, thanks a lot for your video. I just want to share a problem that I am facing. I am trying to send data from a Maixduino Board to my STM32F411. I dont know why but when I send a message like "1234", the STM only gets the first 2 bytes, and the program get stuck. Do you have any idea of what is happening here?

  • @nguyenthanh1485
    @nguyenthanh1485 5 месяцев назад

    at 12:25 , can I use another DMA Channel to set Mem 2 Mem instead of using memcpy function for copy data ? which is better ?

    • @ControllersTech
      @ControllersTech  5 месяцев назад

      yes you can. mem 2 mem is better for large data as it keeps the CPU free. Although if the data is small, it doesn't really matter.

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

    Hello, I used the DMA_CIRCULAR mode(UART Rx) and the size of the receive data is 5. When I received 7 data, 2 data were written in the next buffer.
    And even if I received normally 5 data afterwards, the data was already pushed back.
    Even though I used HAL_UART_DMAStop() and HAL_UART_Recive_DMA(&huart1, RxData, SIZE), the index of the data was still pushed back.
    I don't know what to do. Any opinions would be appreciated.

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

      Please mention this in steps.
      1. Dma is set to receive 5 bytes
      2. I received 7 bytes and the indx is 2.
      3.
      4. Etc...

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

      Did you fix it?, if so, can you tell me the reason? please

  • @aashutoshgupta8172
    @aashutoshgupta8172 5 месяцев назад

    HELLO brother,
    is it possible to use uart in dma or IT mode,
    but condition is this I want to rewrite the whole buffer from beginning when ever I receive data irrespective of buffer size
    is this possible plz help me

  • @MK-bi9fu
    @MK-bi9fu 9 месяцев назад

    Thanks!

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

    like big like

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

    This video is old now because you have to use gpdma1

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

    Don't you have a microphone?