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