STM32 Programming Tutorial for Custom Hardware | SWD, PWM, USB, SPI - Phil's Lab #13

  Переглядів 308,023

Phil’s Lab

Phil’s Lab

День тому

⏵Hardware and PCB design course: www.phils-lab.net/courses
Overview of how to write test firmware for a custom STM32-based PCB, in particular for a variant of one made using the hardware design tutorial videos (including various sensors, flash memory, USB, etc.).
Visit jlcpcb.com/RHS for $2 for five 2-layer PCBs and $5 for five 4-layer PCBs.
Includes topics such as: STM32CubeIDE, SWD and ST-Link, Timers and PWM (RGB LED), USB (Virtual COM Port), SPI (driver for inertial measurement unit).
By no means a complete tutorial but rather a guide on how to approach writing firmware when you first get your custom boards!
If you're enjoying my content, please consider becoming a patron:
/ phils94
github.com/pms67/LittleBrain-...
[TIMESTAMPS]
00:00 Assembled Boards
02:53 Hand-Soldered Components
03:26 Initial Testing Suggestions and ST-Link/USB Connections
04:45 How to Order (JLCPCB)
06:36 STM32CubeIDE Overview
07:43 CubeIDE Project Creation
08:44 Pin and Peripheral Assignment
12:40 Clock Configuration
13:43 USB CDC Config
14:28 SPI Baud Rate Config
15:10 Timer PWM Config
18:23 RGB LED Firmware (Timers and PWM)
21:38 Debugging via ST-Link and SWD
24:11 USB Virtual COM Port Firmware (USB CDC)
29:05 Inertial Measurement Unit (IMU) (SPI in Polling Mode)
37:28 Final Testing
ID: QIBvbJtYjWuHiTG0uCoK

КОМЕНТАРІ: 449
@PhilsLab
@PhilsLab 3 роки тому
New hardware and PCB design course on mixed-signal embedded systems just released! ⏵Course content: www.phils-lab.net/courses ⏵Course sign-up: phils-lab-shop.fedevel.education
@AmaDoXX
@AmaDoXX 3 роки тому
Thank you very much for you videos! Helps me a lot!
@spyral98
@spyral98 3 роки тому
Definatelly would really like to see some of the more fancy stuff. Thanks for the videos!!
@bahtiyar.bayram
@bahtiyar.bayram 3 роки тому
Can you write firmware without hal library?
@bobdole27
@bobdole27 3 роки тому
What would i need if i wanted to program a chip itself ,with no board?
@cheesecake667
@cheesecake667 3 роки тому
Rtos would be awesome! Also check out micro-ROS.
@RohitSardessai
@RohitSardessai 3 роки тому
This channel is just fantastic. I've always wanted to learn this stuff and this is one of the finest resources I've stumbled upon. It's easy to find beginner tutorials like Arduino programming but when you get beyond that it becomes harder and harder to find good content and resources.
@PhilsLab
@PhilsLab 3 роки тому
Thank you so much, Rohit! Yeah, it's hard to find resources that cover 'the middle ground' for STM32s, so I hope I can make some more videos on that.
@suvapillay9358
@suvapillay9358 3 роки тому
Mate, you're gonna groom alot of engineers with all this content. Essentially, helping people earn their way in the world. God bless you. Take care, and Thank you.
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Suva!
@chihebsabri691
@chihebsabri691 3 роки тому
Keep up the good work. The best detailed tutorials ever. Never get bored I can watch your videos for hours 😍
@PhilsLab
@PhilsLab 3 роки тому
Awesome, thank you very much Chiheb!
@frankbose544
@frankbose544 2 роки тому
your stm32 videos are hands down the best on UKposts keep up the great work sir
@artrock8175
@artrock8175 2 роки тому
Agreed! On a scale of 1 - 10, Phil takes his tutorials to an 11! (Spinal Tap Reference).
@danielcox7872
@danielcox7872 Рік тому
Amazing tutorial Phil! No wasted time, just clear and complete explanations. On the downside, now engineering managers are going to expect that we can crank out a complete project in 38 minuets.
@stm3252
@stm3252 2 роки тому
The best stm32 tutorial on UKposts! Hands down!!
@billyjoe3309
@billyjoe3309 3 роки тому
I completely love your videos. Please continue these STM32 videos!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much! More STM32 videos to come :)
@billyjoe3309
@billyjoe3309 3 роки тому
@@PhilsLab Actually working on my first STM board, it's very complex with lots of functions. Using a STM32F7 driven by a LiPo with a high end display. Goal is smooth UI and handheld. I have never used STM32 stuff before so I'm new to the Cude software and your videos are really helping allot!
@tonyfremont
@tonyfremont 3 роки тому
This is awesome, especially with the long tutorial on making a PCB. I struggled so much trying to figure out how to program and debug a cheap blue pill board. I couldn't find a straightforward tutorial on getting started. I spent countless hours trying to figure out what I needed to program and debug with stlink. Thanks again.
@PhilsLab
@PhilsLab 3 роки тому
Thank you, glad it helped out! Yeah, it takes a while to figure this stuff out - but definitely worth it in the end.
@davidbrooks8621
@davidbrooks8621 2 роки тому
Phil, you have excellent presentation ability on topics that are on a different level and it is rare to see such a thing. The video is excellent and professional and shows all the basic steps to get started. I'm sure everyone will also be happy to see how DMA is enabled and how RTOS is used. Your contribution to amateurs, students and beginning engineers around the globe is unquestionable.
@PhilsLab
@PhilsLab 2 роки тому
Hi David, Thank you so much for your very kind words. I'm glad to hear that this video has been helpful - thanks again!
@ScuffedCircuits
@ScuffedCircuits 3 роки тому
Great tutorial. It was tutorials just like this that helped get me into electronics a few years back.
@pjotrmuis7284
@pjotrmuis7284 3 роки тому
Absolutely an amazing video! This really gives a boost in the right direction when you want to know more about designing a standalone sensor or control unit. I really hope you also want to make a video about how to deal with ADC and write the data to the flash memory. Again really helpful Phil!!
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Pjotr! Yes, I'll be making quite a number of videos relating to the firmware of this board. Next one is on DMA and FreeRTOS! :)
@pjotrmuis7284
@pjotrmuis7284 3 роки тому
@@PhilsLab awesome!!!
@10e999
@10e999 3 роки тому
While more advance subject is more my cup of tea, I really appreciate what your doing. This would have help me a lot when I was beginning.
@PhilsLab
@PhilsLab 3 роки тому
Thank you! Yeah, just trying to cover the basics before moving on to actually implementing something useful (and more advanced) :)
@10e999
@10e999 3 роки тому
@@PhilsLab Yes. I saw your last video using FreeRTOS and DMA. Those are definitely more advance ^^ Looking forward seeing more RTOS-driven software design.
@rikilshah
@rikilshah 3 роки тому
Great video. Very few people go this way to explain things in a simple and detailed way. Expect more content from you!
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Rikil! More content to come very soon :)
@ryno9732
@ryno9732 Рік тому
I really want to get into the electronics and this software design. This is such a good video and so well explained. But hell i am confused, lost and amazed all at the same time lol
@clamper5363
@clamper5363 3 роки тому
As someone getting into this your videos have been one of my greatest resources, thank you so much for creating this awesome content!
@PhilsLab
@PhilsLab 3 роки тому
My pleasure, thank you very much for watching! Really glad to hear that. Let me know if there's anything in particular you'd like to see in future videos :)
@skrya1248
@skrya1248 3 роки тому
Awesome video! I hope this will be a whole video series. The topic is not covered well on the internet yet, so I think the community welcomes it nicely!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much! Yeah, hoping to show the basics of writing firmware and then to build up to actually implement something 'useful'!
@markday3145
@markday3145 3 роки тому
A really nice overview! I'm going to go back and watch your earlier videos.
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Mark!
@ansible9340
@ansible9340 3 роки тому
Started playing around with stm32f3discovery with rust, I am really into embedded right now and this is quality content
@PhilsLab
@PhilsLab 3 роки тому
Awesome, thank you!
@JessieKropp
@JessieKropp 3 роки тому
Great timing. I just recently got a few of the WEACT modules. Great video and really helped me understand CubeIDE. Thank you.
@PhilsLab
@PhilsLab 3 роки тому
Very glad to hear that, thanks for watching, Jessie!
@MegaAks60
@MegaAks60 3 роки тому
Please keep this videos coming. I'm learning such great things, that I couldn't find online before you! It's really rare to find someone who explains everything slowly, bit by bit(pun intended😅). Thank you!
@PhilsLab
@PhilsLab 3 роки тому
Thank you! Very glad to hear that. Will definitely be keeping the videos coming! :)
@sidharthap
@sidharthap 2 роки тому
Yes please, more STM32CubeIDE C-programming tutorials !
@PhilsLab
@PhilsLab 2 роки тому
More to come! :)
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 3 роки тому
Great video, nice to see some one reading the data sheets this seems to be a lost art. Proper embedded firmware design being talked through. well worth the time to watch.
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much! Yeah, I try to write the drivers from the firmware as opposed to just copying from another source. Not sure how other people do it though!
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 3 роки тому
@@PhilsLab You hear a lot of "I’ll wait until a library is available"
@vovanikotin
@vovanikotin 3 роки тому
This is the most clear and simple explanation on stm32 MCU! Waiting for quaternion math on IMU calculation routine. Thanks!
@PhilsLab
@PhilsLab 3 роки тому
Thank you! Sensor fusion video coming soon! :)
@diggleboy
@diggleboy 3 роки тому
Phil, your videos are absolutely amazing and very educational. I'm looking to exclusively use the STM32 for my client's projects because of the low cost, high performance and lots of support online. Your video show that I'd be making the right decision to use the STM32 microcontroller series with the ST-LINK/V2 programmer for in-circuit debugging, break points and single stepping through my embedded software code. Thanks for your videos and tutorials.
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much! I'm very glad to hear that. Yeah, before settling with the STM32 line of MCUs, I had a pretty long look around for the best MCU manufacturer (in my eyes). Just the fact that things like CubeIDE, HAL, etc. exist made the choice pretty clear to me. Also, the fact that the debugger is so much cheaper than most debuggers available.. Hope all goes well with your STM32 designs! :)
@clarkster1588
@clarkster1588 3 роки тому
@@PhilsLab If I remember they make an isolated and a non-isolated programmer. Do you have a recommendation?
@ambient3708
@ambient3708 3 роки тому
Its here and at Ben Eater's channel that I get content that very few give/or dish out properly, great staff!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much!
@viswadeepkopalli6160
@viswadeepkopalli6160 3 роки тому
Have been searching for content like this for a while now thank you for taking the time to provide such an amazing content .
@PhilsLab
@PhilsLab 3 роки тому
Awesome, well thank you for watching! :)
@vinamarora7049
@vinamarora7049 3 роки тому
This is some really high quality content/tutorial!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much, Vinam!
@aswinvt
@aswinvt 3 роки тому
Great video... I would really like to see the entire board populated and in full functionality. Hope to see that soon. Keep up this awesome work..
@PhilsLab
@PhilsLab 3 роки тому
Thank you! Yes, I'm planning on using this board for the next few videos with the functions combined.
@BM-jy6cb
@BM-jy6cb 3 роки тому
Another top video -thanks for posting. Having recently decided to get back into microcontrollers (I'm 8051/8bit PIC vintage!) I'm a bit overawed with how far things have come. It's more akin to programming a full blown computer but with access to the peripherals than a "traditional" microcontroller. Now I'm feeling very old!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much! Indeed, it's crazy how much you can get for so little money these days. ST has now even introduced the STM32MP1, which combines a MPU running embedded Linux with an MCU in one package for under 10 EUR for the cheapest one. Pretty crazy!
@koro-koro4977
@koro-koro4977 3 роки тому
Salute for your work and dedication. Thank you so much Phil's Lab..
@PhilsLab
@PhilsLab 3 роки тому
Thank you!
@abhishekreddy2425
@abhishekreddy2425 3 роки тому
Love the stuff you are teaching here... So glad that I discovered your channel!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much for watching, Abhishek!
@cpuchip
@cpuchip 3 роки тому
I just found your videos last week! Thank you for putting them together. You're empowering us to make our own boards and program them too! Definitely not as scary as I originally thought. I'd love to seem more fancy stuff, like using DMA and an external ADC board design design. Or High Speed USB phy on an stm32f405. I'm working on reverse engineering some hardware and will need to make my own board to fit an existing enclosure, so your videos are perfectly timed for my needs thanks!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much for watching! Very glad that you found my channel. The new firmware video covers a bit of DMA stuff. Definitely would like to make a video on interfacing an STM32 via DMA with an external codec as well.
@cpuchip
@cpuchip 3 роки тому
@@PhilsLab i already watched it, and even followed along with a nucleo f411re board. I haven't ordered one of your f405 little brains yet. But I plan too once I save a little. I hope to finish my design for my gpio dma project first so I can order both at the same time with JLCPCB.
@mashurshalehin4972
@mashurshalehin4972 3 роки тому
Hey Phill. Great video. I am learning a lot. Please make a video on USB bootloader and firmware upgrading through USB if you get time.
@MrZomhad
@MrZomhad 3 роки тому
Super informational video, thank you very much! Excited to see what's coming in the future, cheers!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much! :)
@papademarco
@papademarco 3 роки тому
Hi Phil. Great video. the 40min more productive of my weekend. thanks so much for sharing your knowledge.
@PhilsLab
@PhilsLab 3 роки тому
Awesome, thank you, Mauricio!
@sumitmamoria
@sumitmamoria 3 роки тому
Excellent video. I wish there could be a long tutorial series for using STM32Cube software with a more complete set of peripherals.
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Sumit. More videos on programming STM32 MCUs to come this month! :)
@StigBSivertsen
@StigBSivertsen 3 роки тому
Super video! I've been so busy learning atmega328 chip so I haven't had the time look into STM yet but I really want to learn STM32 mcu's so this was perfect.
@PhilsLab
@PhilsLab 3 роки тому
Awesome, yeah I think it's well worth getting into STM32 MCUs. So many doors open (so to speak) when you make the jump!
@variogenesis
@variogenesis 3 роки тому
I really enjoy watching it, thank you Phil!
@PhilsLab
@PhilsLab 3 роки тому
That's great to hear, thank you!
@pnjunction5689
@pnjunction5689 3 роки тому
Another great video! Thanks a lot! Inspired by your STRF video, I recently designed a really tiny board with the STM32L0 and the NRF24. I'm really amazed by the quality JLCPCB delivers for only a few bucks. Also debugging the STM32 appears to be much faster than the PIC microcontrollers I used in the past.
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much! That's awesome, did you get the boards already? Yeah, it's amazing how inexpensive assembled PCBs are with them - I just wish that they'd start offering assembly for 6-layer PCBs soon..
@pnjunction5689
@pnjunction5689 3 роки тому
@@PhilsLab Yes, got the boards last week. They look great, but only had time to roughly test the SPI communication and turn on the transmitter in CW test mode. Unfortunately, I have to prioritize paid projects :-) Assembled 6-layer PCB would allow for some very interesting designs!
@FedePantalonesGordos
@FedePantalonesGordos 3 роки тому
@@PhilsLab what kind of great projects do you have in mind, involving 6-layer PCBs? 👀
@fullstacklab
@fullstacklab 3 роки тому
best channel for pcb boards!
@bahadr4331
@bahadr4331 3 роки тому
Vielen Dank für diese Video. Eine sehr gut beschriebene tutorial. Thanks Phil.
@PhilsLab
@PhilsLab 3 роки тому
Danke fürs Zuschauen! :)
@CB7CatalystH22a
@CB7CatalystH22a Рік тому
Would you do a video, or have you done a video, explaining in more detail about how you test your new board for issues with voltage and current? I'm sure it's hard to condense so much into one video, I really appreciate the knowledge you share!!!
@edisonphoenix3303
@edisonphoenix3303 3 роки тому
You are VERA LEVEL BRO! So Awesome! A lot of love from my team!
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much!
@zeeshaniqbal7823
@zeeshaniqbal7823 2 роки тому
Very nice, deep and clear overall tutorial. Right now I am learning MC such as STM32 and this gives me goosbump to interact with boards. Could you please also make a series or a video regarding basic concept of Hardware Design Engineer. I am making my career in this field. When I making circuits then so much confused about the components which are connected with ICs and other components. Thanks and appreciated..
@rasmusg1407
@rasmusg1407 3 роки тому
Really Cool project, really well explained and presented as usual. Great work! :D
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Rasmus :D
@glynnmason8205
@glynnmason8205 3 роки тому
hi that was a interesting video i've just got into stm32 micro-controllers so this is use full info look forward to seeing more of your videos
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Glynn!
@saemipp
@saemipp 2 роки тому
Hello Phil I usually never write comments on UKposts videos, but I just really wanted to let you know that I really enjoyed this one. I've never even touched an STM32 (i know my way around C but thats it) and I've sat here for the entire time just being amazed of how well you explained everything, even though it looks quite complicated. This video motivated me to now order such a board and maybe play around with it a little. So thank you for that!!
@PhilsLab
@PhilsLab 2 роки тому
Thank you very much, Samuel! Very glad to hear that these videos have been helpful. Hope all goes well with your new board :)
@ToshiLab
@ToshiLab 2 роки тому
Really great content. Detailed and well explained. Thanks!
@PhilsLab
@PhilsLab 2 роки тому
Thank you very much!
@PierfrancescoZuccato
@PierfrancescoZuccato 3 роки тому
Your videos are great! I was looking exactly for this. Thanks
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much, very glad to hear that!
@DonQuichotteLiberia
@DonQuichotteLiberia 3 роки тому
Excellent video, thank you! You are insanely productive.
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much!
@yamanseyravan2341
@yamanseyravan2341 3 роки тому
Grate work ! Keep on going, your videos are helping me so much in my graduation project, Thanx for your efforts :D
@PhilsLab
@PhilsLab 3 роки тому
Awesome, thank you - very glad to hear that! :)
@robertparenton7470
@robertparenton7470 3 роки тому
Thank You! From Frisco Texas.
@jonyjohan8958
@jonyjohan8958 3 роки тому
this is more complicated than i thought but it's worth learning
@MegaTraxxas
@MegaTraxxas 2 роки тому
Thanks for this tutorial, it is really great for beginners.
@PhilsLab
@PhilsLab 2 роки тому
Thank you!
@adamrogers1044
@adamrogers1044 2 роки тому
Awesome video. Great instruction and explanation. Thank you!
@PhilsLab
@PhilsLab 2 роки тому
Thank you very much, Adam!
@clouddev1136
@clouddev1136 3 роки тому
Thanks for your nice explanation. That actually helps me a lot! Subscribed.
@PhilsLab
@PhilsLab 3 роки тому
Awesome, thank you :)
@avejst
@avejst 3 роки тому
Thanks for sharing this victory walkthrough 👍😀
@PhilsLab
@PhilsLab 3 роки тому
Haha thank you, Asger!
@emregozkaya2630
@emregozkaya2630 3 роки тому
Thank you so much Phil's Lab
@PhilsLab
@PhilsLab 3 роки тому
Thank you for watching, Emre :)
@seifeddineboughanmi8473
@seifeddineboughanmi8473 3 роки тому
Absolutely an amazing video! I suggest to make a tutorial for the CAN BUS interface.
@PhilsLab
@PhilsLab 3 роки тому
Thank you! Yes, CAN is definitely on my list of things to make a video on.
@TheCalvinSkinner
@TheCalvinSkinner 3 роки тому
@@PhilsLabWhat's the relative cost of your board in comparison to STM's dev boards?
@wristocrat
@wristocrat Рік тому
Beautiful board
@voytechj
@voytechj 3 роки тому
Great project! One thing to do it better would be controlling light intensity in a nonlinear scale (gamma corrected). Human eye has a logarithmic response curve ~ x^1/2.2, so in range from 0 to 100 value 22 is perceived as a half. If power function pow(x, 2.2) (x in 0.0..1.0) is too slow you can use approximation: y=0.8*x^2 + 0.2*x^3 with max error < 1% or y=x^2 with max error 3.5%
@fvgm
@fvgm 3 роки тому
Nice video!! Great detailed explanation! Thanks again
@PhilsLab
@PhilsLab 3 роки тому
Thank you for watching, Fernando!
@JayPatel-ce4jp
@JayPatel-ce4jp Рік тому
If you have an STM32F3 Series Nucleo Board, you need to enable PG6 as it controls a pull-up resistor for a data + line, didn't realize until I read the documentation, all I did was toggle the pin in my setup, Also I realized that the bottom micro USB receptacle doesn't need power, I have a switchable on off set to off and the bottom USB port and it was still outputting to the virtual com port despite it being off.
@splinters_pinter
@splinters_pinter 2 роки тому
Dude, this is really cool!!
@bastiaanschaap
@bastiaanschaap 3 роки тому
Thank you for sharing Phil! All your videos are pure gold IMHO 👍🏻 Just a quick question: did you leave out the flash memory programming for a future video?
@PhilsLab
@PhilsLab 3 роки тому
Thank you very much, Bastiaan! Yes, I left out a couple of things on this board for future videos, but planning on making them soon :)
@Liam-ey2gs
@Liam-ey2gs 2 роки тому
Thank you so much for your time and effort
@PhilsLab
@PhilsLab 2 роки тому
Thank you very much for watching, Liam!
@mouradmkhakh8903
@mouradmkhakh8903 3 роки тому
Very interesting. Thank you it was very helpful and informative for me, a newbie comming from Avr 8bits.
@PhilsLab
@PhilsLab 3 роки тому
Awesome, thank you for watching!
@marouabellatreche5949
@marouabellatreche5949 3 роки тому
Great! Thanks for sharing ❤
@PJElliot
@PJElliot 3 роки тому
Fantastic video!! It was very informative.
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Peter!
@PJElliot
@PJElliot 3 роки тому
@@PhilsLab Have you done any STM32 boards with an Ethernet interface? If so, how easy was it to get going?
@user-os2pw2zx7e
@user-os2pw2zx7e 5 місяців тому
I love this video thank you ❤
@arjunramesh6383
@arjunramesh6383 3 роки тому
Yaay brother .Thankyou so much for the tutorial 👏👏👏❤
@PhilsLab
@PhilsLab 3 роки тому
My pleasure, thanks for watching!
@arjunramesh6383
@arjunramesh6383 3 роки тому
@@PhilsLab Eagerly waiting for more videos related to stm .Thanks for teaching .
@taherdibaei
@taherdibaei Рік тому
Great tutorial. Thanks alot
@jimybobjim
@jimybobjim 2 роки тому
Hi, could you please give a more in-depth explanation of how u configured the clocks?
@marcinwitkowski2981
@marcinwitkowski2981 3 роки тому
This is what i wanted to see !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Great Video !!!
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Marcin!
@mail87523
@mail87523 3 роки тому
Really great tutorial. If I may suggest you make a tutorial for the CAN BUS interface. The STM32 has a great CAN and CAN-FD interface on its microcontrollers.
@PhilsLab
@PhilsLab 3 роки тому
Thank you! Yes, definitely want to make a video on CAN at some point!
@luancerilio
@luancerilio 3 роки тому
Hi Phil! Thank you for share with us this nice and really good presented video. I'm excited to see a RTOS running on this board. Also it would be awesome if you make a board using STM32 interfacing with a Sub-GHz transceptor and some sensors to create a generic IoT node.
@PhilsLab
@PhilsLab 3 роки тому
Thank you, Luan! RTOS + DMA should feature in the next video :) I'm afraid I'm not much of an IoT guy myself so am planning on doing a couple of other videos first - hopefully all of interest however!
@wovada
@wovada 3 роки тому
Thanks. This information is actuality
@PhilsLab
@PhilsLab 3 роки тому
Thank you!
@nicoladellino8124
@nicoladellino8124 2 роки тому
Very nice video Philip, tnx 👏 👏 👏 👏
@TheDarkSide11891
@TheDarkSide11891 2 роки тому
As someone who started out developing in Java, seeing a C development environment in Eclipse is both strange yet pleasantly familiar.
@edwardtro1
@edwardtro1 Рік тому
justo lo que necesitaba, thanks
@germangomez1673
@germangomez1673 4 місяці тому
Thanks for the video, excellent. One question, in case that I use CAN communications, Do you recommend an external oscillator or is enough an internal (about precision for CAN timmings)?
@davidmonk7773
@davidmonk7773 9 місяців тому
Hello, It's clear to me that you really understand what you're talking about and I would love some advice please. I'm repairing an amplifier whose SMPS appears to be controlled via a DSP board using a STM32F107 ic, i believe this ic is internally shorted but I'm not familiar with this type of topology at all or programming. Do you think it would be possible to read the coding (if any exists) from this chip and write to a new one? Thanks in advance David
@steveblack2420
@steveblack2420 Рік тому
I just discovered your videos and they are awesome! I have a question for you: do you think it is possible to program an STM32 based PCB through the SPI1 interface instead of SWD? If so, what type of device can I use for this? Thank you so much!
@mikemartin101
@mikemartin101 Рік тому
Hi Phil! I’m finding your videos quite helpful as I learn how to program stm32. I was wondering if you could make a video showing how to control an stm32 over Ethernet using one of the stm32 versions which work on ethernet. Thank you!
@hemanthkumar-dk6rg
@hemanthkumar-dk6rg Рік тому
You down that program with St- link with swb Pina(clk,Dio pins) or usb. Is their any secondary boot loader you done . For uploading the new firmware every time that boot file also required ? Can you please explain
@SiggyPony
@SiggyPony 3 роки тому
That so cool :D I only worked with STM32 briefly, before I caught the build it all out of TTL bug lol.
@PhilsLab
@PhilsLab 3 роки тому
Thank you! Well hope this video can get you back on the 'STM32-train' :D
@PiotrAdamczyk-yh3vv
@PiotrAdamczyk-yh3vv Рік тому
Inspiring, thx
@barismetin1014
@barismetin1014 2 роки тому
Very useful thank you
@adamjamesdonovan
@adamjamesdonovan 3 роки тому
Id love to get your thoughts on setting up one of the L4 80mhz boards and also getting it to work with stm32duino for arduino:)
@lohikarhu734
@lohikarhu734 3 роки тому
have a look at LP5523 for RGB LEDs - it's a 9-channel driver, with built-in charge pump boost, so it can run up to 4.5 V on 6 of the channels, 3 channels connect to Vdd directly... has many interesting features, is very programmable for LED effects without CPU cycles, after programming and start. automatic temp compensation, channel grouping... very good to write drivers for, and you could find drivers for it on-line, as it was used in Nokia phones And, it's in a small package, about 2.7 x 2.7l
@rollandmaro8958
@rollandmaro8958 3 роки тому
Thank you Phil.
@PhilsLab
@PhilsLab 3 роки тому
My pleasure, thank you for watching!
@mahmoudkotb2233
@mahmoudkotb2233 9 місяців тому
I have a question, why you didn't choose a different resistor values for the RGB LED, the Red should have a forward voltage about 2volt comparing to 3.2volt in case of blue and green ?
@danhellgren5671
@danhellgren5671 3 роки тому
Nice board! Is there a reason why you don't flood top and bottom layer with ground?
@markhumes2645
@markhumes2645 Рік тому
Thank you for the great video! Have you had any success Receiving Data on the STM32 from USB OTG? Modifying and calling the CDC_Receive function doesn't seem to work
@aleXelaMec
@aleXelaMec 3 місяці тому
Hey, thanks for a great tutorial ! as always. who to you flash the firmware using SWD instead of USB? you have dedicated pins for this, am i wrong? or is this for the first time only to flash the bootloader?
@joshuaplank883
@joshuaplank883 6 місяців тому
Thank you for another great video. Do you think you could go over how you figured out how to wire up that memory? And how to interface with it?
@Beansswtf
@Beansswtf 5 місяців тому
It's just an SPI memory chip, so uses simple SPI bus like anything else. Loads of libraries and arduino code examples for using them
@mangist
@mangist 2 роки тому
Why is there no via stitching on this example? Also, why not use the SMD header connectors so that JLC can assemble them, instead of manually soldering through-hole headers? Thanks.
@baldebaldemord9588
@baldebaldemord9588 3 роки тому
Sending data via USB VCP seems fairly easy. What I struggle with is reciving data from the PC. I need this since I want to controll the flow of my application from within a GUI on the PC side. I stumbled upon "CDC_Receive_FS". It seems to be some kind of Callback, that gets called whenever data is recevied via USB. I would like to use this in non Blocking mode, so the STM32 would do it's things until a new command is send by the user via PC. I don't have the hardware yet to test stuff (shoud arrive soon), so I'm just doing some research on the topic. It seems rather complicated. I would love a video from you about the topic!
@gacherumburu9958
@gacherumburu9958 3 роки тому
Thanks for the info..👍
@PhilsLab
@PhilsLab 3 роки тому
Thanks for watching!
KiCad 6 STM32 PCB Design Full Tutorial - Phil's Lab #65
1:40:06
Phil’s Lab
Переглядів 532 тис.
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Переглядів 479 тис.
STM32 + RGB LEDs Firmware Tutorial (TIM + DMA) - Phil's Lab #136
35:09
Phil’s Lab
Переглядів 2,1 тис.
How To Write A Driver (STM32, I2C, Datasheet) - Phil's Lab #30
38:21
Phil’s Lab
Переглядів 217 тис.
KiCad 7 STM32 Bluetooth Hardware Design (2/2 PCB) - Phil's Lab #128
2:56:53
Microcontroller Firmware from Scratch
25:52
All Systems Go!
Переглядів 36 тис.
KiCad 7 STM32 Bluetooth Hardware Design (1/2 Schematic) - Phil's Lab #127
2:07:51
How to Make Custom ESP32 Board in 3 Hours | Full Tutorial
2:57:20
Robert Feranec
Переглядів 856 тис.
Installing the STM32 USB Bootloader, Easily! [SEE DESCRIPTION]
8:02
Caleb Marting
Переглядів 257 тис.
STM32 DMA and FreeRTOS Tutorial - Phil's Lab #14
29:10
Phil’s Lab
Переглядів 106 тис.
NOTHING PHONE 2A - НЕОБЫЧЕН ВО ВСЕМ!
30:39
DimaViper
Переглядів 52 тис.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 789 тис.
ЭТО САМЫЙ МОЩНЫЙ ИГРОВОЙ СМАРТФОН ЗА 270$ 🔥
13:33
Thebox - о технике и гаджетах
Переглядів 34 тис.