Skip to main content
Graduate
September 28, 2025
Solved

stm32mp2 RT patches ,CPUFreq can't use

  • September 28, 2025
  • 1 reply
  • 477 views

Due to the default removal of CPUFreq configuration in the patch file after applying RTpatch, I am unable to obtain the current CPU frequency through the following command.

reference:如何更改 CPU 频率 - stm32mpu

I also try lscpu and /proc/cpuinfo and so on.

They can't solve it. I checked the CPU frequency

Is there any other way?

 

    This topic has been closed for replies.
    Best answer by Christophe Guibout

    Hello @bugman,

     

    The default CPU clock is 1.2GHz with X-LINUX-RT : the frequency is fixed following the recommended industrial profile (wiki link).

    You can change the frequency, but the SoC won't follow the recommended industrial profile anymore.

     

    BR,

    Christophe

    1 reply

    ST Employee
    October 3, 2025

    Hello @bugman,

     

    As cpufreq is disabled in X-LINUX-RT, I would recommand to check the CPU frequency through clock summary:

    cat /sys/kernel/debug/clk/clk_summary | grep ck_cpu1

    BR,

    Christophe

    bugmanAuthor
    Graduate
    October 9, 2025

    bugman_0-1760004403986.png

    I am using The CPU model: STM32MP257DAL ,Displayed as 1.2Ghz through the command line you provided.

    According to the instructions on the wiki, the clock speed can reach 1.5GHz. Is the default speed 1.2GHz used in the RT version ? 

    Can the frequency be changed to 1.2GHz?

    ST Employee
    October 9, 2025

    Hello @bugman,

     

    The default CPU clock is 1.2GHz with X-LINUX-RT : the frequency is fixed following the recommended industrial profile (wiki link).

    You can change the frequency, but the SoC won't follow the recommended industrial profile anymore.

     

    BR,

    Christophe