<?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 MQX Kinetis K20 FLexTimer Access in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Kinetis-K20-FLexTimer-Access/m-p/200695#M4460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a working MQX PIT timer system on the CF V1, 51JM128, but now we are using the K20dx256 and all the rules have changed. In that system I assigned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VMCF51JM_STRUCT_PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg_ptr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then did all the register access's&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg_ptr-&amp;gt;TPM2.TPMxMOD = 0xFFFF;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // MODULO = 0xFFFF , this is for the test ovf interrupt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem to work this way on the Kinetis. I was wondering if someone would have a suggestion on how to set up the register access &amp;amp; headers.&lt;/P&gt;&lt;P&gt;I have read through all the examples and do not see which headers should be included when we use MQX. Do we include headers from Processor Expert, or the header under&lt;/P&gt;&lt;P&gt;C:\Freescale\CW MCU v10.3\MCU\lib\wizard_data\ARM\DataBase\derivatives\MK20Z.h ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to have a (base) pointer defined somewhere but I can't find out how to define (base).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 02:51:46 GMT</pubDate>
    <dc:creator>Cdn_aye</dc:creator>
    <dc:date>2012-09-26T02:51:46Z</dc:date>
    <item>
      <title>MQX Kinetis K20 FLexTimer Access</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Kinetis-K20-FLexTimer-Access/m-p/200695#M4460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a working MQX PIT timer system on the CF V1, 51JM128, but now we are using the K20dx256 and all the rules have changed. In that system I assigned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VMCF51JM_STRUCT_PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg_ptr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then did all the register access's&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg_ptr-&amp;gt;TPM2.TPMxMOD = 0xFFFF;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // MODULO = 0xFFFF , this is for the test ovf interrupt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem to work this way on the Kinetis. I was wondering if someone would have a suggestion on how to set up the register access &amp;amp; headers.&lt;/P&gt;&lt;P&gt;I have read through all the examples and do not see which headers should be included when we use MQX. Do we include headers from Processor Expert, or the header under&lt;/P&gt;&lt;P&gt;C:\Freescale\CW MCU v10.3\MCU\lib\wizard_data\ARM\DataBase\derivatives\MK20Z.h ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to have a (base) pointer defined somewhere but I can't find out how to define (base).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 02:51:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Kinetis-K20-FLexTimer-Access/m-p/200695#M4460</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-09-26T02:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: MQX Kinetis K20 FLexTimer Access</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Kinetis-K20-FLexTimer-Access/m-p/200696#M4461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the pointer, it is in the mqx directory&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale MQX 3.8\mqx\source\bsp\twrk40x256\twrk40x256.h&lt;/P&gt;&lt;P&gt;Included that file, and it all compiles and links now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under mqx/ CFV1, we had to create a pointer to a structure and index into the registers, with Kinetis they give the pointer in the above file and all the offsets. It is obvious once you find it; the hard part was finding it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 20:24:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Kinetis-K20-FLexTimer-Access/m-p/200696#M4461</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-09-26T20:24:22Z</dc:date>
    </item>
  </channel>
</rss>

