Showing results for 
Search instead for 
Did you mean: 

Change the clock tree of a STM32MP157F-DK2 with Stm32CubeIde and integrated CubeMX

Associate II


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 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.

ST Employee

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,


Associate II

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.