how to use pwm4 on imx8mp-evk

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to use pwm4 on imx8mp-evk

448 次查看
RonShani
Contributor I

Hello,
I'm trying to set pwm4 out.
from the manual i see:
PWM Control Register (PWM4_PWMCR) - address 3069_0000
and all its related registers (Status / Period etc')
But any attempt to write or read  this adresses makes the machine to freeze.
I tried using device tree overlay and devmem / memtool
(e.g. memtool -32 0x3069000 1 - this would freeze the machine and only reboot helps).
What am i missing? how to use this pwm4?
Thanks,
Ron

0 项奖励
回复
1 回复

399 次查看
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @RonShani 

 

I hpe you are doing very well.

 

You can see on device tree of i.MX8MP EVK the PWM4 is enabled by default under PAD MX8MP_IOMUXC_SAI5_RXFS__PWM4_OUT.

Maybe your machine is freezing because memtool access directly to registers, and those registers are being handled by the driver.

Please try to use the PWM as described on this post:

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-use-PWM-on-iMX93-EVK-board/ta-p/1...

 

I hope this can helps to you.

 

Best regards,

Salas.

0 项奖励
回复