Add new channel Flexio and Emios

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

Add new channel Flexio and Emios

419 Views
Silvano
Contributor I

Hello all,

When I add a new channel in the example "Flexio_Pwm_Ip_Example_S32K396", I can not managed to change the duty cycle and the period by using the function "Flexio_Pwm_Ip_UpdatePeriodDuty" in the main.c, I can only do it by default at initialization from  peripherals > Flexio_Pwm.

I faced the same issue with the emios example.

I attached both projects here.

Could you help me please ?

 

I think there is an issue of configuration but I don't know how to configure it in order to change the the duty cycle and the period of the channel_2 (which I added) from the main.c as below : 

Silvano_0-1710489970469.png

 

Thank you very much.

0 Kudos
Reply
1 Reply

377 Views
Nhi_Nguyen
NXP Employee
NXP Employee

Hi @Silvano ,

I looked at your project, the issue is from your file main.c, so please change it as below:

Nhi_Nguyen_0-1710992561588.png

 

Best regards,

Nhi

Tags (1)
0 Kudos
Reply