<?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>Kinetis Design StudioのトピックRe: Header file confusion</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437077#M3971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just checked and the Linux version of KDS 3.0.0 also installs "rev. 2.3, 2013-06-24" of the MK20D5.h header file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Install KDS 3.0.0 as described in documentation&lt;/P&gt;&lt;P&gt;2. Create a new project&lt;/P&gt;&lt;P&gt;3. Choose "Kinetis project" as a template&lt;/P&gt;&lt;P&gt;4. Enter project name&lt;/P&gt;&lt;P&gt;5. Choose MK20DX128xxx5 in "Processors"&lt;/P&gt;&lt;P&gt;6. Open the "Includes" directory in the project — there is no derivative.h and the MK20D5.h header is rev. 2.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 09:32:25 GMT</pubDate>
    <dc:creator>jrychter</dc:creator>
    <dc:date>2015-10-29T09:32:25Z</dc:date>
    <item>
      <title>Header file confusion</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437074#M3968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently tried KDS for the first time (on a Mac). I tried recreating a simple K20 project that I had in CodeWarrior by creating a new project in KDS, then moving the C source files over. However, I encountered problems, and I am confused:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, there is no derivative.h — I only got a MK20D5.h include. I changed my source file to include that directly, instead of derivative.h — is that the right thing to do?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, lots of defines seem to have vanished — basic things like PORTA_PCR18, or GPIOC_PSOR.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I proceeded to quickly diff the old MK20D5.h that I had in my CodeWarrior project and the new one in KDS and the results are even more confusing: the old version was labeled as "rev. 3.3", and the one in KDS is labeled as "rev 2.3". But they both share the same date. The changelog does not indicate any massive changes, and yet the files are very different.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 10:04:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437074#M3968</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2015-10-28T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Header file confusion</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437075#M3969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right .Some header files have not the define of "PORTA_PCR18" , it not your error , it have not been update .&lt;/P&gt;&lt;P&gt;While , i recommend you use the latest version of KDS3.0 , you can download it here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://freescale.flexnetoperations.com/control/frse/product?entitlementId=123588587&amp;amp;lineNum=1&amp;amp;authContactId=74384061&amp;amp;authPartyId=62699821" title="https://freescale.flexnetoperations.com/control/frse/product?entitlementId=123588587&amp;amp;lineNum=1&amp;amp;authContactId=74384061&amp;amp;authPartyId=62699821"&gt;https://freescale.flexnetoperations.com/control/frse/product?entitlementId=123588587&amp;amp;lineNum=1&amp;amp;authContactId=74384061&amp;amp;au…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i checked it on my side , the version is :&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;P&gt;rev. 3.4, 2013-10-29&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;And it have the define :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25752i2620BB89FA19725B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While my PC is windows , and if you have use the latest version in you pC&amp;nbsp; of MAC , it still have not the define , it meaning have not update .&lt;/P&gt;&lt;P&gt;it doesn't matter , you can copy and paste the define you use from CW .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&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>Thu, 29 Oct 2015 03:25:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437075#M3969</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-29T03:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Header file confusion</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437076#M3970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a freshly installed KDS 3.0.0 on a Mac, where I created a new project. My MK20D5.h header file says "Version: rev. 2.3, 2013-06-24".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is a serious problem — why are the KDS 3.0.0 header files different on different platforms?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 09:21:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437076#M3970</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2015-10-29T09:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Header file confusion</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437077#M3971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just checked and the Linux version of KDS 3.0.0 also installs "rev. 2.3, 2013-06-24" of the MK20D5.h header file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Install KDS 3.0.0 as described in documentation&lt;/P&gt;&lt;P&gt;2. Create a new project&lt;/P&gt;&lt;P&gt;3. Choose "Kinetis project" as a template&lt;/P&gt;&lt;P&gt;4. Enter project name&lt;/P&gt;&lt;P&gt;5. Choose MK20DX128xxx5 in "Processors"&lt;/P&gt;&lt;P&gt;6. Open the "Includes" directory in the project — there is no derivative.h and the MK20D5.h header is rev. 2.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 09:32:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437077#M3971</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2015-10-29T09:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Header file confusion</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437078#M3972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my personal&amp;nbsp; opinion, i also agree with you about that they are should use the same version on different PC system.&lt;/P&gt;&lt;P&gt;While i think maybe the update not synchronize among different system .&lt;/P&gt;&lt;P&gt;Now you only can develop it with this version you have , and define something it did not have , i think the update in the future will update it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 09:45:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437078#M3972</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-29T09:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Header file confusion</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437079#M3973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the confusion created so far. There is no error or problem with the header files, you are just looking at two different kind of headers and the fact that the name is the same is just an inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read my last response in the next thread: &lt;A href="https://community.nxp.com/message/379147" rel="noopener noreferrer" target="_blank"&gt;KL25Z CMSIS-Core/CMSIS Peripheral Access Layer headers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And the next discussion as well: &lt;A href="https://community.nxp.com/thread/333515" rel="noopener noreferrer" target="_blank"&gt;why bare-metal head file is so different from PE head file even with same version like MK21F12.h&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read the abstract for each type of MK20D5.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="K20D50_Header.png"&gt;&lt;IMG alt="K20D50_Header.png" src="https://community.nxp.com/t5/image/serverpage/image-id/26076i134911EBDD179EB2/image-size/large?v=v2&amp;amp;px=999" title="K20D50_Header.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In KDS you may find both kind of files in these paths:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt; C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert\Config\PE\CPE\wizard_data\wizards\kds\MK20D5\Include&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt; C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert\lib\Kinetis\iofiles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The No CMSIS compliant header is now only used when creating a project with Processor Expert using legacy LDD components (No KSDK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are macros not present in the CMSIS file, but you can easily replace such register accesses. In your case this would be the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14461359561542556 jive_text_macro" data-renderedposition="641.9000244140625_8_1129_32" jivemacro_uid="_14461359561542556"&gt;&lt;P&gt;PORTA-&amp;gt;PCR[18]&lt;/P&gt;&lt;P&gt;PTC-&amp;gt;PSOR&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps to clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:21:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437079#M3973</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2020-11-02T13:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Header file confusion</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437080#M3974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Jorge, this explanation makes everything clear. I somehow missed the transition to CMSIS, even though I've spent some time reading the user guide and release notes. This is a good direction, and I will update my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, one question still remains — is the idea of a "derivative.h" file gone? I have library code that is reusable across multiple Kinetis devices, and I'd rather include a "derivative.h" than specify the exact variant in my library code. How does one include "whatever CPU the project targets" in library C code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 09:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437080#M3974</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2015-10-30T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Header file confusion</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437081#M3975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;derivative.h&lt;/STRONG&gt; is no longer used, you would need to add it manually. Only KSDK projects have the CPU explicitly declared as a macro in the project properties. Sorry for that inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 16:19:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Header-file-confusion/m-p/437081#M3975</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-10-30T16:19:56Z</dc:date>
    </item>
  </channel>
</rss>

