FTM5 as input capture S32K146

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

FTM5 as input capture S32K146

930件の閲覧回数
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 件の賞賛
2 返答(返信)

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

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