I am initializing an FTM module using MCUXpresso Config Tools (v4.0) in Quadrature Decoder Mode, and setting CNTIN = 0 and MOD = 399. I have checked "Time overflow interrupt" and "Enable interrupt request" to generate an interrupt each time the counter wraps around from MOD to CNTIN. However, Config Tools will not generate the code:
when I toggle "Time overflow interrupt", so I have had to add it manually. This is dangerous, since peripherals.c will be overwritten by future changes to the initialization from Config Tools.
This seems to be a bug with Config Tools, since it does generate the FTM_EnableInterrupts() command for FTM channels that are not set up in Quadrature Decoder Mode.