STM32 UART Part 1: Datasheet overview

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 63

  • @lucaspham5238
    @lucaspham5238 5 років тому +12

    Hi Eddie, thank you for your time and efforts, It's very hard to find a good training materials like yours on the internet, very detail and easy to understand, exactly what I'm looking for. Hope you can cover CAN in the future. Subscribed, loved your channel and your website

  • @abting4546
    @abting4546 5 років тому +3

    thanks for the thorough explanation

  • @yasminebenghozzi6538
    @yasminebenghozzi6538 4 роки тому +3

    I'm so happy I found your channel, Thanx a looooooot :D

  • @elenobia9684
    @elenobia9684 Рік тому

    I am happy that i found your channel, excellent presentation and a clear explanation thank you so much

  • @andygyakobo7122
    @andygyakobo7122 4 роки тому

    This video and channel alike is highly underrated

  • @MrFaustotromba
    @MrFaustotromba 3 роки тому

    Thanks a lot. You are clarifying to me a lot of things. I 'm waiting for UART to DMA

  • @kunalsalvi8382
    @kunalsalvi8382 5 років тому +5

    That was great. Can you cover I2C next?

    • @EdwinFairchild
      @EdwinFairchild  5 років тому

      i might do i2c or spi. but still have to release the two videos of the code part for this. they will be a lot shorter lol

  • @betterbutter5935
    @betterbutter5935 2 роки тому

    Hello eddie,thank you so much!!hope to see your new video soon

    • @EdwinFairchild
      @EdwinFairchild  2 роки тому

      Yeah hopefully soon enough, I've been going through a lot of changes and a constant state of adaptation in my life so soon enough I'll have new content

  • @andygyakobo7122
    @andygyakobo7122 5 років тому +3

    That's great man

  • @MinhTran-wn1ri
    @MinhTran-wn1ri 5 років тому

    You rock man. Wish I had this stuff when I was in college but that was 3-4 years before you started making videos XD

    • @EdwinFairchild
      @EdwinFairchild  5 років тому

      I'm in college right now lol but they don't teach a lot of this at my school

    • @MinhTran-wn1ri
      @MinhTran-wn1ri 5 років тому

      ​@@EdwinFairchild If you're taking DSP - shift first then scale: homepages.cae.wisc.edu/~ece330/discuss/rules_TS.htm
      Gets me every time.

    • @MinhTran-wn1ri
      @MinhTran-wn1ri 5 років тому

      ​@@EdwinFairchild Thanks for making these videos! Seeing you gallantly scrolling through the 1300-page manual and piece-mealing the peripherals has been a morale boost.

  • @sashabalmagia6969
    @sashabalmagia6969 3 роки тому

    Ho man your video is great ! , i enjoy to watch you on the small tv in the corner LOL

  • @brianblasius
    @brianblasius 5 років тому

    Hello Eddie Amaya. Kindly start a FreeRTOS tutorial on STM32. It'll be so helpful to beginners.

  • @wegi9621
    @wegi9621 5 років тому

    Very good performance by Eddie.
    My wish list:
    IDE with GCC with no restrictions codesize etc.
    Creating an ASM PROJECT.
    Editing with syntax highlighting, hints, code completion.
    Debugging in the GUI.
    Because people think that, unlike C, you can not communicate with the processor.
    This results from a cursory knowledge and high-level imagination.
    They say about C that it's a CODE !!!
    When it is actually PSEUDOCODE.
    In which instead of coding, you focus on describing information for the compiler as the compiler has this code or data to treat.
    Show Startup.S file - how it really looks !!!
    Do it because it is nowhere.

    • @EdwinFairchild
      @EdwinFairchild  5 років тому +2

      I agree but the problem with asse.bly coding is that you will hardly being used anymore because it time constraints it is not practical unless you become and assembly master. And then what if you have some assembly code for an Arm chip and want to use it on a different Arm chip that uses a differe set of Thumb instructions, you have to rewrite it. While the C code just needs to be recompiled. I did AVR assembly and it was so tedious I cannot imagine doing any real project with it. If you want fast executing electronics go to FPGA, but microcontroller Assembly is very very small field nowadays. Can you imagine building a real time operating system in assembly ? If you want no code size limit and code hinting try Truestudio it is free for stm32. That's what I have been using but it's eclipse based.

    • @EdwinFairchild
      @EdwinFairchild  5 років тому +3

      I really like gcc also. I have read about some issue with certain Arm chips but I think they can be resolved. I hate eclipse debugger but the keil debugger is very good. I am learning how to use GDB for debugging on the command line it's is pretty handy too. Some people use visual studio code for programming but I don't like it too much. My wife Is a really interested in Arm assembly I ignore her on that subject because my experience with it was terrible in AVR. For example my mind has been conditioned to not use goto statements, and in assembly everything is branching jmp instructions branch instructions, feels to me like a recipie for disaster. Unless you are a really hard core master. I also try to focus my knowledge on what companies are looking for so when I graduate I k is these things because school sucks and they don't teach anything lol. When I was at Tesla they used matlab to generate the hdl code for their FPGA , they were not going to let the code be subject to human error. So matlab similunk and FPGA are things I really need to learn. At the end of the day I am trying to be an electronic engineer not a firmware engineer so this channel is mostly to keep my programming skill before I forget them since I only saw one programming class and the rest of my classes is all electronic theory and zero programming.

    • @wegi9621
      @wegi9621 5 років тому +1

      @@EdwinFairchild With C it is like giving children toys. Then these kids on the forums ask and cry "please HELP ME why it does not work !!! :(((" because this supposed "programmer" has no idea how the processor works. And their problems "why it does not work" are usually solved by low-levelers. All this comes down to oversizing the size of the code and resources of course. And the solution to the problem is to replace the processor with a larger and faster one.
      In one episode, you were delighted with your own code, which changed several bits in the registers. And it took 3 lines ... Allegedly ... 3 lines.
      Changing bits in 3 registers takes 9 assembler commands.
      LD, OR / AND / XOR, ST x 3.
      While you have built a special 26 byte structure for this, which must be supported and several functions calling it.
      Three lines took up the action of the program. BUT ... "Housing" of these 3 lines took a lot more, including handling this. It took - time and size.
      It's a not personal attack I really like your channel Eddie.
      I'm not a champion, it only annoys me that, as usually happens, not the best, but half-measures. And the repair of oversized software is another oversized processor.
      And it irritates me that there are no options for assembler projects in environments, and if they are these environments, they cost thousands of dollars.

      That's why I say - do this episode and show me how Eddie really is.
      Like here:
      ua-cam.com/video/o9WpXYBqdPU/v-deo.html

    • @EdwinFairchild
      @EdwinFairchild  5 років тому +1

      @@wegi9621 I completely understand but you also have to understand who your are asking and what you are asking from them. I have been in college for 2 years, I don't have any degree yet. Dr. Miro Samek from state machine has a PhD. I have studied his stuff before. And like I said you are asking an electrical engineering student who has only taken one class in programming C to explain super low level assembly. That's like asking a software student about resonant converters or impedance matching for an antenna. As a hardware major I am not interested in low level programming, I am interested in designing with inductors capacitors etc... So for me this programming channel is to learn a little bit more about programming side since it is not my major. How much amount of work i want to put into learning programming is not a lot because in any job the person designing the hardware is not the one programming it.

    • @glewiss6696
      @glewiss6696 5 років тому +1

      @@EdwinFairchild I think that if you want to know more about what's going on this microcontroller there is some STM32 libraries called "Low layer libraries" that allow you to enter more deeply into registers functionality and bit banging if I'm right...

  • @ajitnayak1541
    @ajitnayak1541 2 роки тому

    Good work.. But is there any example with synch uart code.

  • @LoL4476
    @LoL4476 4 роки тому +1

    Thank you very much for your video!

  • @jesset-p9225
    @jesset-p9225 4 роки тому

    Just to let everyone know the USB to serial converter is not needed, on some of the STM32 Nucleo ucontrollers, when communicating with a PC:
    For example on my board (STM32f756ZG) UART communication can be established with USART3 through the ST-link.

    • @EdwinFairchild
      @EdwinFairchild  4 роки тому +1

      Oh yeah official STM boards branded as Nucleo and the Discovery series have on board St Link. And now the STLink V3 mods will make it even easier to have St Link on everything with USB and mass storage. I'll make a video on that soon.

    • @EdwinFairchild
      @EdwinFairchild  4 роки тому +1

      And technically a USB to serial is always needed, the difference is Nucleo and Discovery boards have an entire separate f1 chip that serves the purpose . The Eval series however not all of those have an ST Link. The blue pill is a bare minimum board with no ST Link, the USB on it is for user applications and not debugging

  • @vultureig9277
    @vultureig9277 2 роки тому

    What is the other register to which the data is transferred from data register?

  • @kevinkipkorir3132
    @kevinkipkorir3132 2 роки тому

    Thaks men you are giving us so much power. Thank you very much

  • @nolimangulabnan6101
    @nolimangulabnan6101 5 років тому

    great Eddie! don't you have plan to post IRDA and SMARTCARD ? Thanks

  • @Eslamz1000
    @Eslamz1000 4 роки тому

    Great content ,Eddie!
    keep it up :)

  • @last-zura8899
    @last-zura8899 Рік тому

    thank you

  • @damnedattendant2536
    @damnedattendant2536 5 років тому

    that one wire half duplex is used for s-bus and i-bus reading stuff ... just got my transmitter delivered .. and I am reading the ibus data with a ftdi ... it is straight up incredible ...

    • @EdwinFairchild
      @EdwinFairchild  5 років тому

      Nice! Thanks for the info

    • @damnedattendant2536
      @damnedattendant2536 5 років тому

      @@EdwinFairchild nope thank you ... For making these incredible videos ... You are awesome ...😄

    • @damnedattendant2536
      @damnedattendant2536 5 років тому

      can you please make a video on getting started with TrueStudio mister .. That will be a huge help ... microVision is fine but that dark theme is very much soothing ...

    • @EdwinFairchild
      @EdwinFairchild  5 років тому

      @@damnedattendant2536 I use true studio sometimes, but when you need something to just work 100% uVision is untouchable. True studio has it's bugs

    • @damnedattendant2536
      @damnedattendant2536 5 років тому

      @@EdwinFairchild Thank you for the reply ... I will ignore my thirst for the dark theme and continue to use uVision .....

  • @MrThamidu
    @MrThamidu 2 роки тому

    Great !!!

  • @yasminebenghozzi6538
    @yasminebenghozzi6538 4 роки тому

    when using the CUBEMX and Keil , I don't have to enable the clock or the pins right? they're gonna be already enabled in the code after enabling them in the CUBEMX

    • @EdwinFairchild
      @EdwinFairchild  4 роки тому

      I Don't use cubeMX so take this advice with a grain of salt, but the pins you don't have to worry about , the clock idk maybe haha sorry

  • @MilanKarakas
    @MilanKarakas 5 років тому

    Which software you are using for video capture? I am using OBS studio, it is free, and you can start/stop when you want. It will record (or broadcast live video) videos in folder you set. Later, you can assemble everything in some video editing program (Adobe Premiere...).

    • @MilanKarakas
      @MilanKarakas 5 років тому

      Oh, btw... it will produce videos with .flv extension. Use OBS studio (file, remux) to re-multiplex video in .mp4 file and only then you can import into Adobe Premiere.

    • @pseudounknow5559
      @pseudounknow5559 3 роки тому +1

      He is using "Icecream screen recording" a free software. By the way in OBS you can directly record in different formats like .mp4 and .flv at the same time you just need to change the default settings in order to do that.

    • @MilanKarakas
      @MilanKarakas 3 роки тому +1

      @@pseudounknow5559 Yes, but avoid to record in .mp4 using OBS studio. There is some bug. You always can easily transcode to .mp4 from .flv .

    • @pseudounknow5559
      @pseudounknow5559 3 роки тому +1

      @@MilanKarakas Oh i didnt know that. Btw i just discovered that you have few videos about STM32 and also a blog with some code. I will definetely check that because i have trouble to rewrite the code sometimes in this channel.

    • @MilanKarakas
      @MilanKarakas 3 роки тому +1

      @@pseudounknow5559 Oh, thanks. I may continue to make videos for STM32 and other (ESP32-cam), but right now my main PC doing good job mining ETH coins. So, basically - I have earning in 5 days as much as earning in whole month on UA-cam. This is not only downside of the YT algorithm. After publishing video tutorials about STM32, maximum 50 people get notified of all of my 4000 or more subscribers. So, it become lost video. Eventually, after year or two, some video goes okay, but that is all. Just few videos. I will try to do STM32 on my poor slow laptop, but it will take a lot of effort.

  • @ajitem100
    @ajitem100 5 років тому

    hey sir, after completing this series can you upload short video of all thing you cover uptil now in a single video

  • @danielwarzecha2007
    @danielwarzecha2007 3 роки тому

    How do you tell what frequency the APB1 or APB2 bus is when looking only at the data sheet? Just for your example with the STM micro data sheet. Thanks in advance! Great Videos by the way!

    • @EdwinFairchild
      @EdwinFairchild  3 роки тому +1

      Well you would look at the clock tree diagram, and how you set up the dividers and you can figure out the bus freq. I have a video on setting up the clock. Or you can look in cubeMX or CubeIDE clock configurator

    • @danielwarzecha2007
      @danielwarzecha2007 3 роки тому

      @@EdwinFairchild Thank You!

  • @davdavsin
    @davdavsin 4 роки тому

    Thanks allot man!

  • @askinc102
    @askinc102 2 роки тому

    If we are only using 1 data register then how is full duplex possible ?

    • @EdwinFairchild
      @EdwinFairchild  2 роки тому

      it only appears to look like 1 data register is being used, but when you read the the data register its coming from an rx DATA register and when you write to the data registers its going into a TX data register

  • @damnedattendant2536
    @damnedattendant2536 5 років тому

    someone give me the link to the whole datasheet

    • @EdwinFairchild
      @EdwinFairchild  5 років тому

      www.st.com/content/ccc/resource/technical/document/reference_manual/59/b9/ba/7f/11/af/43/d5/CD00171190.pdf/files/CD00171190.pdf/jcr:content/translations/en.CD00171190.pdf