Тёмный

STM32: Change clock speed via registers 

Eddie Amaya
Подписаться 10 тыс.
Просмотров 9 тыс.
50% 1

visit: www.edwinfairchild.com
more videos coming soon 2024

Наука

Опубликовано:

 

15 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 84   
@thomzz3449
@thomzz3449 4 года назад
Very nice tutorial! I was familiar with setting up the external clock, but still you teach me nicer ways of doing it. And I didn't know you could actually check the clock speed. Amazing!
@benjamin_boeri
@benjamin_boeri Год назад
You're the boss , man. Thank you very much for explaining that very important thing about the STM32. I couldn't have realised by myself which specific registers are important for this.
@suangpi8847
@suangpi8847 2 года назад
Been stucking with HSI configuration for 80 MHz and you just saved me! The Flash Latency which I really didn't notice before is the key of this video for me. Thanks alot!
@kionmahuermicio9860
@kionmahuermicio9860 4 года назад
Estoy suscrito a tu canal desde hace bastante tiempo. Ahora estoy seguro que es el mejor canal referente a la electrónica, sobretodo a la electrónica digital. Es muy innovador, interesante y sobretodo muy claro y pedagógico. Es increíble lo bien que están hechos tus videos y sobretodo la claridad con la que explicas. Muchas gracias, y espero que sigas con este proyecto que tanto puede ayudar a estudiantes, ingenieros y entusiastas a la electrónica digital. Espero en algún punto puedas hacer algo de VHDL, sería de lo mejor. De antemano, muchas gracias por todo...
@EdwinFairchild
@EdwinFairchild 4 года назад
VHDL y FPGA en me encantaria empesar aser! Tambien RTOS y embedded Linux . Pronto.
@tokki_
@tokki_ 4 года назад
Once again I am literally tackling this concept right now, and you post a video on it. So cool.
@EdwinFairchild
@EdwinFairchild 4 года назад
🤯
@EdwinFairchild
@EdwinFairchild 4 года назад
What are you working on? Or is it a school related thing?
@tokki_
@tokki_ 4 года назад
@@EdwinFairchild School and work, bit of both. I'm using a G0, so the registers are different sometimes.
@EdwinFairchild
@EdwinFairchild 4 года назад
@@tokki_ I like the G0! And L0I have a blog post about this f1 is old as hell and time to let it go away lol
@XpressCrosSs
@XpressCrosSs 4 года назад
please keep uploading videos, they are super helpful. thanks.
@EdwinFairchild
@EdwinFairchild 4 года назад
Will do
@jatinshakya6735
@jatinshakya6735 Год назад
Thank you for explaining it into that depth
@AS-zs7jw
@AS-zs7jw 3 года назад
great work! thank you very much for register level bitwise explanation
@mazinfo3978
@mazinfo3978 4 года назад
Great tutorials I was waiting for new videos
@takeyoshix
@takeyoshix Год назад
Thanks a lot for explaining the NON-HAL CMSIS-only way. There are too few of such tutorials these days, as everyone doesn't care about what is going on "under the hood" anymore. Obviously, every MCU-geek should be able to read the reference manual and find out on their own, but this tutorial is a very welcome shortcut.
@EdwinFairchild
@EdwinFairchild Год назад
Yeah i think its important to understand at least to some degree whats going on under the hood, I have found bugs using HAL that otherwise been hard to track down without going into the registers and seeing what HAL was doing wrong or forgot to do. HAL is human made so there are bound to be bugs.
@tylergeneharrison3594
@tylergeneharrison3594 2 года назад
12/10 bro! Cheers.
@danielwait8555
@danielwait8555 3 года назад
Hey Eddie, in the future, perhaps add a link to your blog in the description. Love your videos as usual.
@danielwait8555
@danielwait8555 3 года назад
Might I add, your videos are very in-depth. I don't know how invested you are in this channel, but I think that it may be worth your time to add an index of what you cover and the associated time-stamps. These are the most useful tutorials I've seen and I'd like to see your channel thrive.
@KhanhDuy-fd2xw
@KhanhDuy-fd2xw 2 года назад
thank so much
@DELPITEC
@DELPITEC 3 года назад
Nice Eddie. Regarding internal RTC, do you know How to solve that problem when the STM32 reset the data information is Lost. Maybe a vídeo about ir?
@mohamedalhossiny3190
@mohamedalhossiny3190 Год назад
Please just remember to put last tutorials in a playlist
@imcnx1563
@imcnx1563 4 года назад
Great video Eddie! Don’t you have some knowledge about the cloud on MBED?
@EdwinFairchild
@EdwinFairchild 4 года назад
I have never used Mbed before. Sorry. But I'll give it a look
@maindemulunda3491
@maindemulunda3491 3 года назад
@@EdwinFairchild Whats the best way to get in touch with you? I am on misozimwale@gmail.com I like your way of presenting stuff Sir and I would like to interact with you
@mohamedhalaldeen2517
@mohamedhalaldeen2517 3 года назад
Want to know where did you find the steps to do the necessary actions for speed change?
@aswahd
@aswahd 4 года назад
Can you please make a video about stm32f1 USB, FSMC, SDIO?
@EdwinFairchild
@EdwinFairchild 4 года назад
I really will not make too many f1 videos, but I'll see. F1 is a really really old chip. But maybe I'll do USB , but you realize that will most likely involve an Rtos or some abstraction. Or else you will be seeing with a plethora of interrupts to handle data transactions.
@SilasWaxt3r
@SilasWaxt3r 4 года назад
You should plug your blog in the description of your videos.
@EdwinFairchild
@EdwinFairchild 4 года назад
True
@dipeshpatel2454
@dipeshpatel2454 3 года назад
can we used internal clock without using crystal oscillator?
@sumedhburbure4173
@sumedhburbure4173 3 года назад
Yes, internal clock does not require a physical external crystal oscillator. It is taken care by the micro controller itself. But it is not very accurate when compared to external oscillator.
@tcpbox
@tcpbox 2 года назад
Where is the address of your blog???
@EdwinFairchild
@EdwinFairchild 2 года назад
Edwinfairchild.com
@kenwallace6493
@kenwallace6493 3 года назад
Good stuff but I would argue that bit definitions are not worth the trouble. When you look up the bit that needs to change (from ref manual for example), why insert a cryptic label that obscures that value? Now you have to look up that label to make sure it means what you want??? Just use the number.
@EdwinFairchild
@EdwinFairchild 3 года назад
not sure why you think its cryptic ? I find bit definitions help me and thus i DONT have to look into the ref manual . Can you imagine reading code like this : (RCC->CFGR |= 1
@kenwallace6493
@kenwallace6493 3 года назад
@@EdwinFairchild There are several problems here. There are 10's of thousands of bit definitions. For every one that is obvious to you, there are ten that are not to me. And they make header files 10X larger than they have to be. I'd rather look in the ref manual (that I need to know anyway) than sift through 14,000 line files trying to find what label someone decided on. My projects are 100MB before I even start coding, mostly due to HAL and LL files I don't want.
@EdwinFairchild
@EdwinFairchild 3 года назад
@@kenwallace6493 I really should make a video on the topic , I guess if you don't know how to look for something it can be daunting but it is so simple infact. And you're preaching to the choir here, I have zero videos on HAL because I don't use it. But bit definitions is a completely different thing. It's just the header file of the chip, don't tell me you sit there and define a pointer to address 0x80020000 and call it GPIOA , then I would believe you are being efficient and just defining the addresses you need, otherwise it's just masochist. I'm not sure if you're just a hobbyist or an engineer but as engineer you need to learn how to use the tools for the job. I am all for using register level code but redefining bits or just hardcoding left shift and right and coming back and reading that months later is not fun. Its funny you say you need to learn how to read the manual because the bit definitions come exactly from the manual so I'm not sure how reading text on the manual and reading the same thing in code can scare you. Like I said if I make a video on something like LL and show you the conventions used it will be an epiphany , reading the manual is great and it's what I teach..but at some point you have to get some shit done, let me know how programming ethernet baremetal stack just by reading the manual goes.
@kenwallace6493
@kenwallace6493 3 года назад
@@EdwinFairchild I'm a power conversion engineer with 50 years experience so have been retreaded several times. Programming is only about 20% of the job and power converters are always one microsecond from disaster so close to the metal it is. I do use and appreciate the pointer constants to the configuration registers but there are only so many thousand-page manuals I have time to learn. For example, picking a HAL or LL functions that "seem to say what I want" just won't cut it. It's probably OK for communications where an error is often benign but not for timers, ADCs, DACs, PWM, and digital control loops. In short, our projects tend to be small, dedicated, time-critical functions focused on one part number. But then I came up from the bottom (Assembly to C) as a side effort so don't have the professional programmer's perspective.
@emmetray9703
@emmetray9703 4 года назад
Tell us your best Bench press..
@EdwinFairchild
@EdwinFairchild 4 года назад
Hahaha I haven't tried my max in a long time
@emmetray9703
@emmetray9703 4 года назад
@@EdwinFairchild Please if you can ,create stm32f103c8 I2C tutorial without DMA, ONLY CMSIS. I want to use my MPU 6050 and sometimes my code is freezing. I read whole stm32 datasheet, mpu6050 data sheet, tried everything , researched a lot of codes , but still have same problem. :( I dont know what else can I do.
@SilasWaxt3r
@SilasWaxt3r 4 года назад
@@emmetray9703 MPU 6050 is quite bad, especially if you are trying to find orientation along all 3 axis. You should look into ST MEMS sensors, as they are generally higher quality than the Invensense sensors. Kris Winer designed an IMU with the EM7180 sensor fusion co-processor, which manages the sensor fusion saving resources from your main processor. Its explained far better on his website and GitHub Repo: www.tindie.com/products/onehorse/ultimate-sensor-fusion-solution-lsm6dsm-lis2md/ github.com/kriswiner/EM7180_SENtral_sensor_hub/wiki
@emmetray9703
@emmetray9703 4 года назад
@@SilasWaxt3r Thank you very much, what do you think about BNO055 or BNO080 or LSM9DS1?
@SilasWaxt3r
@SilasWaxt3r 4 года назад
@@emmetray9703 Read Kris Winer's GitHub Repo articles. Seriously. I glossed over them at first, but if you take the 20 mins. it is definitely worth it. The BNO series are not as good as the ST sensors according to some of Kris' tests.
@emmetray9703
@emmetray9703 4 года назад
Pleease make I2C tutorial for STM32F103C8 , pleeeeeeeeeease... without DMA please ... It will be great.
@thomzz3449
@thomzz3449 4 года назад
Why without DMA? Even for low frequency updates it is still nice to let the DMA handle everything and handle the interrupt or read the buffer when you want.
@emmetray9703
@emmetray9703 4 года назад
@@thomzz3449 I want to handle everything by myselft. ;)
@thomzz3449
@thomzz3449 4 года назад
@@emmetray9703 can't argue with that. Haha ;p
@emmetray9703
@emmetray9703 4 года назад
@@thomzz3449 :D
@emmetray9703
@emmetray9703 4 года назад
@@thomzz3449 btw do you have any working example of I2C without DMA? only CMSIS
@MrJamshaiddar1
@MrJamshaiddar1 3 года назад
hello, i tried setting my clock to 72 using the tutorial but i am not getting anything even my led toggle has stopped working, and i am getting stuck at HardFault_Handler what could be the problem?
@EdwinFairchild
@EdwinFairchild 3 года назад
Have you tried looking at my blog and copying the code , I think on my blog I did a different speed , but check your code. Because this is working code
@MrJamshaiddar1
@MrJamshaiddar1 3 года назад
@@EdwinFairchild i did copied from there not sure why its not working i tried using cubemx and it configures perfectly and everything works but cannot make it work this spent almost whole morning
@MrJamshaiddar1
@MrJamshaiddar1 3 года назад
​@@EdwinFairchild dont have your email otherwise would have sent you whole code
@MrJamshaiddar1
@MrJamshaiddar1 3 года назад
@@EdwinFairchild one thing more, i am using Keil
@mendesfarias
@mendesfarias 5 месяцев назад
​@@MrJamshaiddar1Boa noite, vc conseguiu?
@hendrasutanto9724
@hendrasutanto9724 4 года назад
Audio please
@EdwinFairchild
@EdwinFairchild 4 года назад
Audio is working fine 👍
@hendrasutanto9724
@hendrasutanto9724 4 года назад
Ok thanks
@hendrasutanto9724
@hendrasutanto9724 4 года назад
Thanks for the video, could you share your blog link
@EdwinFairchild
@EdwinFairchild 4 года назад
@@hendrasutanto9724 www.edwinfairchild.com
@surya.6283
@surya.6283 4 года назад
I know about change clock speed....but what is this changle clock speed??? 🤔
@EdwinFairchild
@EdwinFairchild 4 года назад
Say whhhaaatttt
@surya.6283
@surya.6283 4 года назад
@@EdwinFairchild man can you make video on efficient embedded C programming.... Like keywords used for the efficiency...tips tricks etc
@EdwinFairchild
@EdwinFairchild 4 года назад
@@surya.6283 Sounds like a good idea. I was thinking along the lines of an industry accepted best practices , because sometimes as hobbyist or just normal users you do things that no company would allow you to do, like using "go-to" statement in C or making everything global variables etc .. even some programming styles are preferred over other ones. I'll see if I can write something up then make a video
@surya.6283
@surya.6283 4 года назад
@@EdwinFairchild maybe something like categorise for hobbyists ... Industrial.... Normal user and make tips and tricks for efficiency......maybe
@EdwinFairchild
@EdwinFairchild 4 года назад
@@surya.6283 yeah, tip number 1 don't use HAL for efficiency 😂
Далее
STM32 Cube Monitor Intro
19:58
Просмотров 30 тыс.
STM32 Tips: Talking to the on-board Bootloader
23:11
Просмотров 16 тыс.
Which national team are you rooting for at Euro 2024?
00:17
Processing speed | #4 STM32 Clock configuration
10:03
STM32 Guide #2: Registers + HAL (Blink example)
30:02
Просмотров 187 тыс.
RCC & Clocks with STM32
48:42
Просмотров 4,7 тыс.
The Only Unbreakable Law
53:25
Просмотров 319 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 386 тыс.
Lambda Calculus - Computerphile
12:40
Просмотров 1 млн
Acer Predator Тараканьи Бега!
1:00
Просмотров 472 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 11 млн
Battery  low 🔋 🪫
0:10
Просмотров 4,8 млн
Красиво, но телефон жаль
0:32
Просмотров 883 тыс.