I am using the flextimer configured as a quadrature detector and cannot get MQX to recognize the timer overflow interrupt. I performed the suggested initialization:
FTM1_SC |= FTM_SC_TOIE_MASK;
_int_install_isr(INT_FTM1, (void (_CODE_PTR_)(pointer))FTM1_ISR, &pmdPositionMotor1);
initialized = _cortex_int_init(INT_FTM1, 7, TRUE);
initialized = _cortex_int_enable(INT_FTM1);
The flextimer isr worked on the TWR-K60N512 platform without the _cortex_int_* calls, but does not work on the K60FX512VLQ12 processor and MQX 3.8 patch for TWR-K60F120M.
The flextimer correctly decodes the quadrature signal but does not service the interrupt. My workaround is to poll the TOF flag in a periodic task and perform the corresponding isr processing.
Is there still a problem with my code or is the problem with MQX?
Nancy