2021-06-22 12:39 AM - last edited on 2023-07-11 09:45 AM by Kevin HUBER
Hello,
i´d like to change the clock of the M4 and some of the corresponding periphals. To do that i changed the clocks in CubeMx (Stm32CubeIde integrated version). I tried to create and deploy the .dtb as showed in https://wiki.st.com/stm32mpu/wiki/How_to_manage_OpenSTLinux_projects_in_STM32CubeIDE but this didn´t change my clock speed at all. So i think i this .dtb doesn´t change the clocks. Can i change the clock tree with the STM32CubeIDE and CubeMx? If yes is there a manual for it ?
Thank you in advance.
2021-07-13 03:52 AM
Hello @stefan_r ,
Did you check in the boot message if your .dtb has been taking into account?
Your need to adjust extlinux.conf file used, here in my case booting STM32MP157C-DK2 from SD-Card it is the /boot/mmc0_extlinux/stm32mp157c-dk2_extlinux.conf to be updated.
../..
Net: eth0: ethernet@5800a000
Hit any key to stop autoboot: 0
Boot over mmc0!
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:4...
Found /mmc0_extlinux/stm32mp157c-dk2_extlinux.conf
Retrieving file: /mmc0_extlinux/stm32mp157c-dk2_extlinux.conf
1250 bytes read in 37 ms (32.2 KiB/s)
Retrieving file: /splash.bmp
18244 bytes read in 37 ms (481.4 KiB/s)
Select the boot mode
1: OpenSTLinux
2: stm32mp157c-dk2-a7-examples
3: stm32mp157c-dk2-m4-examples
4: stm32mp157c-mymp157cprj-mx
Enter choice: 4: stm32mp157c-mymp157cprj-mx
Retrieving file: /uImage
../..
Best Regards,
LudovicR
2021-08-09 04:57 AM
Hello @LudovicR ,
i did update the stm32mp157f-dk2_extlinux.conf maybe that was my problem. Because in my case the clock change was optional, i didn´t try any further. In this project i go just with the standard clock of the stm32mp157f-dk2 board.