AnsweredAssumed Answered

kinetis FRDM-K22F tpm

Question asked by kent gu on Oct 27, 2015
Latest reply on Oct 27, 2015 by Kerry Zhou


Now I want to realize PWM output using FRDM-K22F tpm to with IAR. In "c:\Freescale\KSDK_1.3.0\Examples\frdmk22f\driver_example" folder, there is no tpm demo project. I copy the project"c:\Freescale\KSDK_1.3.0\Examples\frdmk22f\driver_example\gpio", and move the content of main.c from "c:\Freescale\KSDK_1.3.0\Examples\frdmkl02z\driver_example\tpm".


I just copy


volatile uinit32_t cnt = 0;

int32_t setp = 1;

tpm_general_config_t driverInfo;


report the error "Error[Pe020]:identifier "tpm_general_config_t" is undefined.


I try several solution, still can't solve it.

#1,Include "fsl_tpm_driver.h" in the top side of main.c because :tpm_general_config_t" is defined in the "fsl_tpm_driver.h", can't work.

#2, In"ksdk_platform_lib" increase "tpm" folder, the folder include "fsl_tpm_common.c", "fsl_tpm_driver.c",fsl_tpm_driver.h", fsl_tpm_hal.c", "fsl_tpm_hal.h". And make new "libksdk_platform.a", can't work.    



Any reply is appreciated.