STM32 Board Bring-Up (Firmware and Test) - Phil's Lab #54

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

КОМЕНТАРІ •

  • @Eldon_Dice
    @Eldon_Dice 2 роки тому +17

    Yes, yes, more little brain! I love how you get into the hardware and firmware without any fluff. Very direct and practical.

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

      Thank you very much, Edgar!

  • @sumantkhalate
    @sumantkhalate 2 роки тому +4

    As usual amazing content Phil!
    Just an additional thing I would like to add if I was designing the board is the provision to toggle the BOOT0 pin so that I can use the internal USB DFU to update the firmware through the USB without opening the device enclosure.

    • @PhilsLab
      @PhilsLab  2 роки тому +3

      Thank you, Sumant. I typically omit the BOOT0 toggle-option on my personal boards as I find the standard STM32 DFU via USB to pe a pain in the neck and only use SWD to reprogram. For production devices, sure I'll add an option like that in - but for personal projects never.

  • @havetechshreekrishna6736
    @havetechshreekrishna6736 2 роки тому +2

    Thank you so much. In 23 minutes you get idea about pcb and firmware.
    Thank you for sharing.

    • @PhilsLab
      @PhilsLab  2 роки тому +1

      Thank you very much for watching!

  • @rraheem_p
    @rraheem_p 2 роки тому +1

    Good work as usual, I follow your pcb and firmware guides and so far made a couple customs boards that work. Keep up the good work

    • @PhilsLab
      @PhilsLab  2 роки тому +1

      Thank you very much, Rraheem!

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

    Just came across your video, and I thank you for this eloquent explanation of Board Bring-Up. Many thanks!! 👍👍👍

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

    I like that tag connector, that 's cool as!

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

    Very good video. Please upload more such videos ☺️

  • @EmbeddedEnigma
    @EmbeddedEnigma 2 роки тому +1

    any plans on making a video regarding creating drivers for gyroscope which u are using in PCB ?

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

    Nice video with good PCBs

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

    VERY educational! Thanks.

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

    Thank you mate

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

      Thanks for watching!

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

    Awesome, Clean and perfect.👌

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

    The first thing I do with a new board design straight from fab?
    Power it up with a current limiting power supply and make sure all the LEDs light up.
    Flash it with the head of master and run the entire feature set.
    Done

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

    Awesome. Thanks for info.

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

      Thanks for watching!

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

    Brings back memories... I was using CooCox IDE back in 2017 which was a pain in the ass. I discovered CubeIDE and it was much better workflow.

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

      Haha I actually remember using CooCox 'back in the day' - I agree with it being a pain in the rear end..

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

    Cool vid. Still waiting for my STM chip to be available but lead times are a year plus because the events of the world, and just feeling too lazy to redesign around a new chip.

    • @PhilsLab
      @PhilsLab  2 роки тому +1

      Yeah, it's a real pain in the rear end at the moment..

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

    Love this!!! Great video!

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

      Thank you very much!

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

    Awesome job. 👌

  • @dmitry.shpakov
    @dmitry.shpakov 2 роки тому

    Nice video!

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

      Thank you, Dmitry!

  • @CarlosVillegas-t7q
    @CarlosVillegas-t7q Рік тому

    Just came across this video. Great work, clear and practical as always. How did you find out how to get the USB Virtual COM Port working? I watched an older video I think for a previous version of the Little Brain and configured the USB Virtual COM Port for a board I just got from JLCPCB using the STM32F411re. It wasn't working and I thought I made a mistake in my board. But it was the software, with your tips, it's working just fine. Thanks.

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

    hi @PhilsLab thank you very much for your clear and effective tutorials. So clear to convinced me to explore the feasibility of designing a basic STM32-based custom board. Unfortunately, before going to manufacturing, I'm still unsure about a few things, so I would like to submit you some questions about. How can I get in touch with you? Thanks!

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

    Thanks for these great tutorials phil !
    How can I program the stm32f4 of my custom board which has only one usb type c connector ? I do have an st-link v2 programmer but is there a way to connect the jtag on the st-link/v2 to usb c ?

  • @Maadan-m6v
    @Maadan-m6v Рік тому

    do more videos like this

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

    how much was your current consumption when powered up initially?

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

    Nice video, thanks! How about putting the preliminary code, which you just wrote to bring up the board, into a self-test function?

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

    Nice and clean

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

    What is deep sleep current draw of the board?

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

    bloody awesome

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

    Truely Amazing Classes ! Is there any chance to export your design (schematic and PCB) to KICAD format ?

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

    I have designed a custom board using stm32f730 and I've enabled USB virtual COM port ,and my computer recognizes the IC when I plug in the USB cable but says driver error...I tried every thing...doesn't work.

  • @mosesmodise4998
    @mosesmodise4998 6 місяців тому

    where are this codes stored?

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

    Where did you get the retaining mechanism for the tag-connect header?

    • @PhilsLab
      @PhilsLab  2 роки тому +1

      That was shipped together with the Tag-Connect cable in my case but I'm fairly certain you can get them individually through Tag-Connect.

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

    I have a question regarding inverted UART. I have designed an H7 that I need to connect an radio receiver to that uses inverted serial communication. (Frsky manufacturer). However, I cannot find anywere how to do it in stm32cubeide. Do you know? Thanka in advance, BR Martin

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

      Hi Martin, if I'm not mistake inverting UART levels should be possible when enabling the UART, editing properties, and then changing RX/TX inversion in one of the dropdowns.

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

      @@PhilsLab thanks I will try this out :)
      Thank you for the reply

  • @Kyle-vq7qt
    @Kyle-vq7qt 2 роки тому

    Thanks for another great video. Where are you finding stm32f4 chips in stock?

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

      Thank you, Kyle. JLCPCB (at the time of writing) still seems to have some STM32F*s in stock, so that's where I'm getting them from for these videos.

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

    I already changed motor driver on my board. Now, I am thinking to change microcontroller as well since it is impossible to wait when it will be in stock. Any suggestions how to manage different board configurations in kicad, especially if you have more than one component to switch?

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

      Hi Sergey, I'm afraid - other than the usual of copying design files to new directories, using Git for version control - I have no other suggestions for KiCad :/

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

    Hi, Phil, how long took you to master PCB Embedded Programming because your the one(Videos) who inspire me in these fields.

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

      He has a masters and quite a bit of industry experience, so a long time

    • @PhilsLab
      @PhilsLab  2 роки тому +3

      Hey man, when it comes to software I'm pretty 'crude' to be honest. However, if I have a problem I'm fairly certain that I could find a solution to solve it (but maybe not in the cleanest/most optimal way). But yeah, I've been programming for a while.

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

      @@PhilsLab Thanks

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

    Hi, is it possible to do something like update firmware with usb which let potential end user to update firmware? It will be a great topic to cover.

    • @theondono
      @theondono 2 роки тому +1

      The keyword you are looking for is dfu (device firmware update). If you are using stm32, you just need to tie boot0 VCC (might be ground, check datasheet), and the USB bootloader will run.
      You can use either dfu-util or other tools like the Cube programmer set to USB to load your binary.

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

    interesting , if i dodnt have a ST link can i also use a USB-uart bridge ?

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

      You can program compatible MCUs directly via USB DFU. However, you'd have to pull BOOT0 high before doing so.

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

      @@PhilsLab THX , i saw you used a switch in one of the older videos so ill probably do the same
      Also as a side note how do you chose how many IO RAM and FLASH you will need for a board? (might be a good vid topic) since i realized a bit late that i lacked enough RAM , it was while designing

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

    Love you

    • @PhilsLab
      @PhilsLab  2 роки тому +1

      Hah thank you, Edward :)

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

    Hi Phil, do you think i can use stm32l011k4 with Arduino IDE? İ was looking for that low power MCU surprise surprise i accidentally bought 1000pcs. Well as you may guess i m looking for 1000 ideas to work with it. Any help would be Appreciated

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

      Hi there, Yes, you can write your own custom board files for STM32duino. I think there are some guides online - I did it myself a year or two ago. Might make a video on it in the near future!

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

      @@PhilsLab is it possible to use it with Arduino İDE? İ have search tons of internet search only found some nucleo boards using this uC and they can be programmed via IDE. But these are bare uC. Thats the problem.
      Looking forward to your videos! Thanks for the reply

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

    Just disappointed you didn’t use a esp32

    • @PhilsLab
      @PhilsLab  2 роки тому +1

      Actually working on some ESP32 designs for future videos!

  • @dmitry.shpakov
    @dmitry.shpakov 2 роки тому +1

    10:15 There is nothing useful coded, but already took 8.98KB of flash and 2.72KB of RAM. What a BLOATED code generator. I believe first moon space crafts system overall had much less memory on board, but did a lot more tasks than this blinky test firmware. )))