Комментарии:
I had a co worker say our stm32 could be flashed via usb instead of Jtag if we made added the feature in the bootloader. I wish there was a tutorial on that. We had a custom pcb
ОтветитьMitch! We are waiting for the next part. Itll be good of you if you continue with the course like keypad,lcd,usart and many more...and you are best tutor for embedded as far as i know..
Ответитьwoah yeah i spent the last 2 days trying to wrap my head around this pwm thing and finally got it working, was able to set the duty and even frequenc, but not sure i really understand it. And im using a stm32 clone ch32 , so no convenient HAL functions but still the same things i suppose, and you could use stm32's HAL , the chip its apparantly a drop in replacement with the same pins and registers so i think you could make those functions work as well. But i found their (wch company) documentation (only 313 pages) on ch32f103 to be enough, just barely and only with with chatgtps help, it added some verbs and what not to the dense text to make it more understandable. And it does tell you everything you need although not so easily. I think an understanding how the CPU works phsyically would give a better intuitive understanding to these calls why theyre being call in that order. Like if you knew what was going on electroincally, and maybe thats the problem im having understanding all this, as low level at it is, its still not low enough. Which even chatgtp had trouble going without some coaxing. Finally got it down to a flip flop detecting edge rise or fall and sending a signal in response, which starts the tim counter which then keeps checking the aar register to know when to stop and goes high when it does, then it counts until it reaches the ccr register, to know when to go back low. Or something like that, there was a good video explaining the process i cant find, but was very helpful understanding whats going on from a flow perspective , the phsyical chain of evens, which made the function calls and register names like AAR make more sense. In short a better understanding of the inner workins of the processer would definatley help with this jungle of code. But at the same time the capture / compare module is a complicate circuit in and of itself, so how deep do you want to/need to go in understanding. I just wanted to blink some LED's.
At a fundament level it seems wer'e just starting counters and stoping them according to some logic that sets of other clock driven counters and the idea of pwm is just exploiting these basic functions of a cpu and their little modules. With that im mind you could even implement your own pwm method and theres others apaprently that use intereupts, so different approaches, you could possibly even make your own understanding the inner workings of the cpu you're deailng with and maybe get a better idea even how to design a cpu from scratch, you could tailor one to fit the needs of your coding style instead of coding around a generic calculator. Now youre a cpu engineer! Thats how far this rabbit hole goes... or quicksand, however you want to look at it.
I am not sure if I missed the explanation but why did Mitch not use Timer1 for PWM generation instead used Timer2 ?
ОтветитьThank you so much for this amazing video!!! I wish to see you upload more videos in this series.
ОтветитьOk, but there is no function called as _HAL_TIM_SET_COMPARE nor any functions starting with _HAL when Ctrl+Space .Is anyone encountering the same problem?
ОтветитьHey Mitch, ST came out with a plug in for using VS Code as an IDE for the SMT32 and I was wondering if you could do a quick video on it. I am pretty familiar with VSCode but I am not familiar with STM32 all that much, just your tutorials so far and I would love to get to use VSCode to program them. Thanks!
Ответитьreally perfect curse ! you're rock
ОтветитьPls continue this series
Ответитьplease continue this series
ОтветитьOh boy do i enjoy your tutorials👍👍👍👍 having bought 2 packages that are supposed to teach me stuff about stm32 i thought i was a dumb person and I'll never understand stm32 but after only watcning this 5 videos i have learnt so much in so little time and im so excited to go and start reading reference manuals and hal documentations and learn and figure out everything by myself but i wish i had a teacher like you
ОтветитьYou are the man! I can only imagine the amount of time it take to produce these videos.
Ответитьthis series is very useful, I hope if you can continue, please.
ОтветитьThis is the video that I was looking for. Thank you
ОтветитьThis is a Wonderful series Mitch! Thank-you and would love for you to continue this work
ОтветитьYou not only teach practical applications, but also teach us how to learn new things on our own. This is honestly amazing. You are so thorough with your explanations. I truly appreciate the effort you put into your videos. Please continue doing this 🙏 thank you!
Ответить"General purpose timer cookbook", AN4776
ОтветитьPlease keep posting these type of tutorials, These are so much helpful for the learners trying to use STM. Great!!!!
ОтветитьJust watched your videos, thank you for compiling this very helpful wealth of knowledge! I don't think you ever did mention why it might be a bad idea using TIM1 for PWM. I was googling around, and haven't come up with an answer on my own, except that it might be busy when using FreeRTOS. Is that it, or am I missing something?
Ответитьbro I would love if you continue this series , you are like father here teaching so much in detail , respect and love ❤️❤️
Ответитьcan't wait for guide #5 thanks
ОтветитьI would love it if you kept this series going as it has helped me understand the auto generated code which is super scary when you just begin working with embedded systems and the documentation is so hard to navigate if you're new to stm32, so please keep this series alive!
ОтветитьWhat happened to part #5 Mitch?
Really enjoyed these. Well explained to a noob like myself...
More videos on stm32 plz. This channel is the best to cover embedded system basics
ОтветитьYou are definitely one of the best instructors for STM32 stuff. I see a great book from you on STM32 hardware/software in your future. 👍
Mitch, look at the number of views vs. number of subscribers. I think the fact that you have about 3 times the number of views to subscribers says two things. One, your content is deemed valuable by STM32 aficionados. Two, if you had more STM32 content, may be you would get more subscribers. Just my two cents. Keep up the great work.
You, sir, are an excellent instructor! This is very well laid out and clear. Looking forward to more!
ОтветитьNice sir thanks a lot for such educational video , make videos for 3phase pwm
Ответитьplease upload more videos on stm 32 please this is really helpful if you can create a course than that be more helpful on udemy or any other platform please try to do so
i am really enjoying the way you explain things
and thanks a lot for all the content that you put
lots of love from india
Mitch, I propose to go one step forward and introduce ASM insertions? Unfortunately the IDE do not support bare assembly language like Atmel Studio does, so maybe writing ASM interrupt handlers can be a good tradeoff - in terms of perfirmance?
ОтветитьHope to see a part 5 at some point, thanks for the videos.
ОтветитьI've found CubeMX and HAL to be massive barriers to actually understanding STM32... I've just got this talk on as background whilst I'm soldering right now.... I'm going to come back and watch this properly later... This sounds like you've got a very interesting approach going on here.
ОтветитьThank u for zooming in to your code, it makes following your content much easier on the screen of a mobile device
Ответитьstill waiting for part 5.
Ответитьwhat is diffrencce between direct register accessing vs hal.instance??
for example:
SPI2->SR; //direct register accessing
hspi2.Instance->SR; // hal.instance register accessing
Hi sir...Can you generate PWM signal using STM32WLE5JC Microcontroller sir
ОтветитьVery enlightening Mitch. You have given me an understanding of registers. With this, I am going to try register manipulation using Forth Programing Language.
ОтветитьThis is exactly i was looking for 😁 Thanks and keep on the good work 👍
ОтветитьYou rock Mitch.
ОтветитьWhere can we get the Hal library? to use it in embedded programming. I'm having a hard time finding ways to code K64F with HAL. I don't know where to start.
ОтветитьWell explained. Production is top quality. Please continue the series with ADC, I2C/SPI, etc.
ОтветитьHello Mitch,
Do you plan to continue this series of STM32 Tutorial? ADC, USB ... It appears to be the best I've ever watched!!! Maybe not anymore time for that. Wish you the best :)
Thankyou for the time you take to produce the videos - been really helpful for me to get into the STM32 following some work on bare-metal on PIC16F690 and ATMEGA328p. One question though, if I dont use cubeIDE to prepare the C main file, then where do I get the HAL include file that defines the say, special function registers. I went hunting and eventually found a variety of STM32F103xb.h files in an obscure directory thats part of the CubeIDE installation. They come in a variety of apparently revisions - how do I choose? They all look the same but each is larger then the previous?
Ответитьthis is awesome. keep it up man!
thanks
This is a well put together tutorial, taking me from scratching my head to ahhhh!! I was thrown in the deep end at work, tasked to improve the functionality of the STM32based equipment. I needed something that will teach me the basics in one evening. You did it. Thank you!
Ответитьwell done ..excellent explain
ОтветитьGreetings Mitch! Hello, right now I'm in a middle of a project and maybe should using stm32 because one and other reason. Your video very helpful and easy to understans, i love it, very much. still waiting for the next part tho. keep it up, I'm pretty sure there are a lot of people that waiting too.. Great Work!
Ответить