Keith Smith

Bug in 2.3.1 K22 SDK for FTM Input Capture

Discussion created by Keith Smith on Aug 23, 2019
Latest reply on Aug 27, 2019 by Felipe García

I'm not sure this was reported a few months ago. I searched for the issue using keywords K22 FTM Input Capture and did not see it, so I'm reporting it here.

 

The 2.3.1 SDK supplied for this family of MCUs listed below has a bug in the FTM2 Input Capture driver.

 

Attached is a complete SDK project with the documented error.

 

The issue on the K22s listed below is there are two AIPS areas. AIPS0 and AIPS1. The FTM2 base exists on BOTH AIPS areas. The SDK code uses AIPS0 in one section and AIPS1 in another section, thus FTM2 never works properly.

 

Hope you find this useful.

 

I want to acknowledge Benjamin Tait for doing the detailed investigation on this problem.

 

MK22FN1M0AVLH12
 MK22FN1M0AVLK12
 MK22FN1M0AVLL12
 MK22FN1M0AVLQ12
 MK22FN1M0AVMC12
 MK22FN1M0AVMD12
 MK22FX512AVLH12
 MK22FX512AVLK12
 MK22FX512AVLL12
 MK22FX512AVLQ12
 MK22FX512AVMC12
 MK22FX512AVMD12

Outcomes