RT1160 PWM is not output

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

RT1160 PWM is not output

Jump to solution
691 Views
Aya
Contributor I

Hello, everyone.

I am using a MIMXRT1160-EVK with MCUXpresso IDE.

I tried to output PWM1 from pin N21 based on the sample code hello_world_demo_cm7.
I have set up PWM1 in the config tool for this, but it is not working properly.
I know there is a pwm code in the sample, but I want to set it from the config tool.
What is wrong?

スクリーンショット 2023-11-09 161228.png

 

Thank you,

Aya

Labels (1)
0 Kudos
Reply
1 Solution
683 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Aya ,

  Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

 Do you also config the pinmux for it? And the clock source for the PWM?

  I suggest you test this SDK demo at first:

\SDK_2_14_0_MIMXRT1160-EVK\boards\evkmimxrt1160\driver_examples\pwm\cm7

When it works, then compare with your CFG generate code, the API calling in the main, etc.

 

Please check it at first, if you still have issues about it, please kindly let me know.

Best Regards,

Kerry

View solution in original post

0 Kudos
Reply
2 Replies
684 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Aya ,

  Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

 Do you also config the pinmux for it? And the clock source for the PWM?

  I suggest you test this SDK demo at first:

\SDK_2_14_0_MIMXRT1160-EVK\boards\evkmimxrt1160\driver_examples\pwm\cm7

When it works, then compare with your CFG generate code, the API calling in the main, etc.

 

Please check it at first, if you still have issues about it, please kindly let me know.

Best Regards,

Kerry

0 Kudos
Reply
672 Views
Aya
Contributor I
Hi.Kerry

It was not because of the configuration settings, but because the code for XBARA_Init(XBARA1); was written after BOARD_InitBootPeripherals();.

Thank you,
Aya