how to use pwm4 on imx8mp-evk

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to use pwm4 on imx8mp-evk

434件の閲覧回数
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 返信

385件の閲覧回数
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 件の賞賛
返信