FTM5 as input capture S32K146

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

FTM5 as input capture S32K146

921 Views
eduardplanas
Contributor I

I have configured FTM5 as input capture through PTA29, the configuration structure ftmStatePtr[5] is not stable during the code execution, the values are changing all the time.  The other FTM I have configured is FTM1 as pwm generation.

it seems that the address of ftmStatePtr[5] (0x200003ac) is overwritten. The microcontroller I'm using is marked as PS32K146UAVLQ. Did someone find some similar issue?

0 Kudos
2 Replies

712 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi Eduard,

Based on your description I think these can be the root-causes:

  1. You try to run different drivers (PWM and Input Capture) on the same instance.
  2. You use the same state structure for both drivers initialization. 
  3. Also, check if the pointers are well sent to init function.

To detect the first 2 cases you can add DEV_ERROR_DETECT define when you compile your project. 

Best regards,

Razvan

0 Kudos

712 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Eduard,

Could you share a test code so that we can test it?

If you don't want to share the code here you may consider creating a ticket.

https://community.nxp.com/docs/DOC-329745 

Regards,

Daniel 

0 Kudos