<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic kinetis FRDM-K22F tpm in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-FRDM-K22F-tpm/m-p/430819#M24965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Now I want to realize PWM output using FRDM-K22F tpm to with &lt;SPAN style="color: #f1b259;"&gt;IAR&lt;/SPAN&gt;. 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&lt;SPAN style="color: #e23d39;"&gt;\frdmk22f&lt;/SPAN&gt;\driver_example\gpio", and move the content of main.c from "c:\Freescale\KSDK_1.3.0\Examples\&lt;SPAN style="color: #e23d39;"&gt;frdmkl02z&lt;/SPAN&gt;\driver_example\tpm".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just copy &lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;volatile uinit32_t cnt = 0;&lt;/P&gt;&lt;P&gt;int32_t setp = 1;&lt;/P&gt;&lt;P&gt;tpm_general_config_t driverInfo;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;report the error "Error[Pe020]:identifier "tpm_general_config_t" is undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try several solution, still can't solve it.&lt;/P&gt;&lt;P&gt;#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.&lt;/P&gt;&lt;P&gt;#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.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reply is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 08:06:19 GMT</pubDate>
    <dc:creator>kentgu</dc:creator>
    <dc:date>2015-10-27T08:06:19Z</dc:date>
    <item>
      <title>kinetis FRDM-K22F tpm</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-FRDM-K22F-tpm/m-p/430819#M24965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Now I want to realize PWM output using FRDM-K22F tpm to with &lt;SPAN style="color: #f1b259;"&gt;IAR&lt;/SPAN&gt;. 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&lt;SPAN style="color: #e23d39;"&gt;\frdmk22f&lt;/SPAN&gt;\driver_example\gpio", and move the content of main.c from "c:\Freescale\KSDK_1.3.0\Examples\&lt;SPAN style="color: #e23d39;"&gt;frdmkl02z&lt;/SPAN&gt;\driver_example\tpm".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just copy &lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;volatile uinit32_t cnt = 0;&lt;/P&gt;&lt;P&gt;int32_t setp = 1;&lt;/P&gt;&lt;P&gt;tpm_general_config_t driverInfo;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;report the error "Error[Pe020]:identifier "tpm_general_config_t" is undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try several solution, still can't solve it.&lt;/P&gt;&lt;P&gt;#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.&lt;/P&gt;&lt;P&gt;#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.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reply is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 08:06:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-FRDM-K22F-tpm/m-p/430819#M24965</guid>
      <dc:creator>kentgu</dc:creator>
      <dc:date>2015-10-27T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: kinetis FRDM-K22F tpm</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-FRDM-K22F-tpm/m-p/430820#M24966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kent gu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, KSDK1.3.0 have the PWM code, it is not TPM, just FTM, K22F have FTM module, not named as TPM, FTM is the enhanced TPM module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please run the code in path: C:\Freescale\KSDK_1.3.0\examples\frdmk22f\driver_examples\ftm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the code which you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 02:42:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-FRDM-K22F-tpm/m-p/430820#M24966</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-10-28T02:42:50Z</dc:date>
    </item>
  </channel>
</rss>

