Skip to main content
Visitor II
April 28, 2023
Question

[STM32MP157D-DK1]What is the proper way to configure clock for M4?

  • April 28, 2023
  • 2 replies
  • 1109 views

I want the cortex-m4 to do

  1. pwm
  2. get data from sensors and transfer to cortex-A7

So, I write simple code to do PWM and find out the RCC in stm32cubeIDE not work because linux take control the clock config.

My question is, What is the best way to configure clock In my situation.

Is it better to modify clock on linux command? or would it better to modity it in device tree?

and where can I find the manual to modify it on devicetree?

Thanks

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    April 28, 2023

    Hi @MJo.3​ 

    wiki is a large source of informations

    you could start with

    https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2

    then also read

    https://wiki.st.com/stm32mpu/wiki/How_to_assign_an_internal_peripheral_to_a_runtime_context

    https://wiki.st.com/stm32mpu/wiki/Clock_overview

    https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_development_guidelines

    Regards,

    In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

    MJo.3Author
    Visitor II
    May 9, 2023

    I read the link and find out the clock can't be configured on M4 using cubeIDE while I'm using product mode(pin 1,2 are on). If it's not right, please reply it.

    thanks.