<?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 SIM Macro activation in MCUxpresso in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SIM-Macro-activation-in-MCUxpresso/m-p/2387889#M68413</link>
    <description>&lt;P&gt;I'm picking up an old project that was originally built using KDE and later modified using mcuexpresso.&lt;/P&gt;&lt;P&gt;I downloaded the latest version of the IDE and created a new C/C++ project using SDK2.11.0 for the FRDM_K64F board which I have.&lt;/P&gt;&lt;P&gt;I'm copying code from the old project as it had all sorts of stuff I don't want anymore and am trying to build up in the new project from scratch.&lt;/P&gt;&lt;P&gt;The first code I pasted in was a port initialisation.&lt;/P&gt;&lt;P&gt;Problem is when I compile I get "undefined'' errors on all hardware references:&lt;/P&gt;&lt;P&gt;./source/Frere_2016.c:52:1: error: 'SIM_SCGC5' undeclared (first use in this function)&lt;BR /&gt;52 | SIM_SCGC5 |= SIM_SCGC5_PORTA_MASK; // Enable Port A Clock Gate C&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have unzipped the SDK with no difference.&lt;/P&gt;&lt;P&gt;It seems that the original source code must have had some assignment made which I am not copying, but surely that should be covered in a new project by the following:&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#include "peripherals.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "clock_config.h"&lt;BR /&gt;#include "fsl_debug_console.h"&lt;/P&gt;&lt;P&gt;I even tried adding #include "MK64F12.h" to no avail&lt;/P&gt;&lt;P&gt;Any help really apprecaited!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nigel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I started&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2026 19:15:45 GMT</pubDate>
    <dc:creator>ve3id</dc:creator>
    <dc:date>2026-06-29T19:15:45Z</dc:date>
    <item>
      <title>SIM Macro activation in MCUxpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SIM-Macro-activation-in-MCUxpresso/m-p/2387889#M68413</link>
      <description>&lt;P&gt;I'm picking up an old project that was originally built using KDE and later modified using mcuexpresso.&lt;/P&gt;&lt;P&gt;I downloaded the latest version of the IDE and created a new C/C++ project using SDK2.11.0 for the FRDM_K64F board which I have.&lt;/P&gt;&lt;P&gt;I'm copying code from the old project as it had all sorts of stuff I don't want anymore and am trying to build up in the new project from scratch.&lt;/P&gt;&lt;P&gt;The first code I pasted in was a port initialisation.&lt;/P&gt;&lt;P&gt;Problem is when I compile I get "undefined'' errors on all hardware references:&lt;/P&gt;&lt;P&gt;./source/Frere_2016.c:52:1: error: 'SIM_SCGC5' undeclared (first use in this function)&lt;BR /&gt;52 | SIM_SCGC5 |= SIM_SCGC5_PORTA_MASK; // Enable Port A Clock Gate C&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have unzipped the SDK with no difference.&lt;/P&gt;&lt;P&gt;It seems that the original source code must have had some assignment made which I am not copying, but surely that should be covered in a new project by the following:&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#include "peripherals.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "clock_config.h"&lt;BR /&gt;#include "fsl_debug_console.h"&lt;/P&gt;&lt;P&gt;I even tried adding #include "MK64F12.h" to no avail&lt;/P&gt;&lt;P&gt;Any help really apprecaited!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nigel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I started&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 19:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SIM-Macro-activation-in-MCUxpresso/m-p/2387889#M68413</guid>
      <dc:creator>ve3id</dc:creator>
      <dc:date>2026-06-29T19:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Macro activation in MCUxpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SIM-Macro-activation-in-MCUxpresso/m-p/2388132#M68414</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/460"&gt;@ve3id&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The compile error happens because&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class=""&gt;SIM_SCGC5&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is an old Kinetis register symbol; in MCUXpresso SDK 2.x for FRDM-K64F you should use&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class=""&gt;SIM-&amp;gt;SCGC5&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;and similarly convert the other hardware register references to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class=""&gt;PERIPHERAL-&amp;gt;REGISTER&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;syntax.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For you specific line, change&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;SIM_SCGC5&lt;/SPAN&gt; &lt;SPAN class="token"&gt;|=&lt;/SPAN&gt; &lt;SPAN class="token"&gt;SIM_SCGC5_PORTA_MASK&lt;/SPAN&gt;&lt;SPAN class="token"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;to&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;SIM-&amp;gt;SCGC5 |= SIM_SCGC5_PORTA_MASK;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;BR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;Alice&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2026 07:30:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SIM-Macro-activation-in-MCUxpresso/m-p/2388132#M68414</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2026-06-30T07:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Macro activation in MCUxpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SIM-Macro-activation-in-MCUxpresso/m-p/2388570#M68416</link>
      <description>&lt;P&gt;Thank you very much, Alice.&amp;nbsp; You are so knowledgeable that you make it look easy!&lt;/P&gt;&lt;P&gt;Now I can get on with my project &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Nigel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2026 18:22:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SIM-Macro-activation-in-MCUxpresso/m-p/2388570#M68416</guid>
      <dc:creator>ve3id</dc:creator>
      <dc:date>2026-06-30T18:22:59Z</dc:date>
    </item>
  </channel>
</rss>

