Hi, Jose,
After the FTM start, you can not change the CSnC register. If you want to change the register, you have to stop the FTM by clearing the CMOD bits in TPMx_SC register, then change the FTM_CnSC registyer, then set the CMOD bits as you desired to start FTM.
Pls refer to section 23.4.4 Channel (n) Status and Control (TPMx_CnSC) in the user manual of Kl27, I copy it here:
"
23.4.4 Channel (n) Status and Control (TPMx_CnSC)
CnSC contains the channel-interrupt-status flag and control bits used to configure the
interrupt enable, channel configuration, and pin function. When switching from one
channel mode to a different channel mode, the channel must first be disabled and this
must be acknowledged in the TPM counter clock domain.
"
BR
Xiangjun Rong