cancel
Showing results for 
Search instead for 
Did you mean: 

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

MJo.3
Associate II

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

2 REPLIES 2
PatrickF
ST Employee

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'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MJo.3
Associate II

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.