AnsweredAssumed Answered

MKL27: crashes when trying to start TPM/PWM

Question asked by José Antonio Martínez Iglesias on Nov 5, 2015
Latest reply on Nov 10, 2015 by José Antonio Martínez Iglesias

Hi everyone,

I am trying to configure TPM/PWM in MKL27 (MKL27Z256VFM4 , KSDK 1.2.0, KDS 3.0.0, MQX for KSDK), and MCU reboots when doing TPM_DRV_PwmStart().

My code is similar to the one in example tpm_example_frdmkl27z. I have found that the crash happens when writing to CSnC register in: TPM_WR_CnSC(tpmBase, channel, value)

(called in TPM_HAL_SetChnMsnbaElsnbaVal()).

I am using channel 0, and value=40 (so MSB:MSA=10 and ELSB:ELSA=10).


Could you give me any ideas?

Thank you very much