how to use pwm4 on imx8mp-evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to use pwm4 on imx8mp-evk

428 Views
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 Kudos
Reply
1 Reply

379 Views
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 Kudos
Reply