<?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 Re: What/Where is the possible replacement in code statements for Kinetis controllers which are not supported in PORT_PDD.h which in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465982#M4985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;The code base will help you but if you can get a Freedom board to that makes support much easier meaning if you have an issue on your product and can port and verify with Freedom, we can help more fully.&lt;/P&gt;&lt;P&gt;Plus having Freedom lets you run all the example code to learn it well before trying in your product.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 17:29:17 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2016-04-21T17:29:17Z</dc:date>
    <item>
      <title>What/Where is the possible replacement in code statements for Kinetis controllers which are not supported in PORT_PDD.h which</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465977#M4980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me explain my doubt specifically and clearly. &lt;/P&gt;&lt;P&gt;I am using MKE02Z64VLD2 controller&lt;/P&gt;&lt;P&gt;My IDE is : Kinetis Design Studio 2.0&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;static bool BL_CheckBootloaderMode(void) { &amp;nbsp; /* let's check if the user presses the BTLD switch. Need to configure the pin first */ &amp;nbsp; /* PTB1 as input */ &amp;nbsp; /* clock all port pins */ &amp;nbsp; SIM_SCGC5&amp;nbsp;&amp;nbsp; |= SIM_SCGC5_PORTA_MASK | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5_PORTB_MASK | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5_PORTC_MASK | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5_PORTD_MASK | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5_PORTE_MASK; &amp;nbsp; /* Configure pin as input */ #if 0 &amp;nbsp; /* GPIOB_PDDR: PDD&amp;amp;=~0x0100 */ &amp;nbsp; GPIOB_PDDR = (uint32_t)((GPIOB_PDDR &amp;amp; (uint32_t)~0x0100UL) | (uint32_t)0x00UL); &amp;nbsp; /* Initialization of Port Control register */ &amp;nbsp; /* PORTB_PCR1: ISF=0,MUX=1 */ &amp;nbsp; PORTB_PCR1 = (uint32_t)((PORTB_PCR1 &amp;amp; (uint32_t)~0x01000600UL) | (uint32_t)0x0100UL); #else &amp;nbsp; (void)BitIoLdd3_Init(NULL); /* initialize the port pin PTB1 */ &amp;nbsp; /* enable internal pull-up on PTB1 */ &amp;nbsp; PORT_PDD_SetPinPullSelect(PORTB_BASE_PTR, 1, PORT_PDD_PULL_UP); &amp;nbsp; PORT_PDD_SetPinPullEnable(PORTB_BASE_PTR, 1, PORT_PDD_PULL_ENABLE); &amp;nbsp; WAIT1_Waitms(5); /* wait get pull-up a chance to pull-up */ #endif &amp;nbsp; if (!BL_SW_GetVal()) { /* button pressed (has pull-up!) */ &amp;nbsp;&amp;nbsp;&amp;nbsp; WAIT1_Waitms(50); /* wait to debounce */ &amp;nbsp;&amp;nbsp;&amp;nbsp; if (!BL_SW_GetVal()) { /* still pressed */ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return TRUE; /* go into bootloader mode */ &amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp; } &amp;nbsp; /* BTLD switch not pressed, and we have a valid user application vector */ &amp;nbsp; return FALSE; /* do not enter bootloader mode */ }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I build the code.. I got errors saying &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR LINES 5 TO 9: &lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="quote" style="padding-right: 10px; padding-left: 27px; margin-left: 0.25em; color: #556655; margin-right: 1em; margin-bottom: 1em; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #eeeeee; background-position: no-repeat;"&gt;&lt;P class="op" style="margin: 0 0 4px; font-size: 11px; font-weight: bold;"&gt;Quote:&lt;/P&gt;Multiple markers at this line&lt;BR /&gt;- 'SIM_SCGC5' undeclared (first use in this function)&lt;BR /&gt;- 'SIM_SCGC5_PORTA_MASK' undeclared (first use in this &lt;BR /&gt;function)&lt;BR /&gt;- 'SIM_SCGC5_PORTB_MASK' undeclared (first use in this &lt;BR /&gt;function)&lt;BR /&gt;- 'SIM_SCGC5_PORTC_MASK' undeclared (first use in this &lt;BR /&gt;function)&lt;BR /&gt;- 'SIM_SCGC5_PORTD_MASK' undeclared (first use in this &lt;BR /&gt;function)&lt;BR /&gt;- 'SIM_SCGC5_PORTE_MASK' undeclared (first use in this &lt;BR /&gt;function)&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;FOR LINE 20:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="quote" style="padding-right: 10px; padding-left: 27px; margin-left: 0.25em; color: #556655; margin-right: 1em; margin-bottom: 1em; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #eeeeee; background-position: no-repeat;"&gt;&lt;P class="op" style="margin: 0 0 4px; font-size: 11px; font-weight: bold;"&gt;Quote:&lt;/P&gt;Multiple markers at this line&lt;BR /&gt;- 'PORTB_BASE_PTR' undeclared (first use in this &lt;BR /&gt;function)&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;FOR LINE 21:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="quote" style="padding-right: 10px; padding-left: 27px; margin-left: 0.25em; color: #556655; margin-right: 1em; margin-bottom: 1em; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #eeeeee; background-position: no-repeat;"&gt;&lt;P class="op" style="margin: 0 0 4px; font-size: 11px; font-weight: bold;"&gt;Quote:&lt;/P&gt;Multiple markers at this line&lt;BR /&gt;- in expansion of macro 'PORT_PDD_SetPinPullEnable'&lt;BR /&gt;- implicit declaration of function 'PORT_PCR_REG' [-Wimplicit-function-&lt;BR /&gt;declaration]&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;WHEN I CHECKED &lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;In KDS, Project Explorer -&amp;gt; Static_Code -&amp;gt; PDD -&amp;gt; PORT_PDD.h &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I found that, the PORT_PDD.h supports only following KE series controllers.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;!defined(MCU_MKE02Z2) /* PORT */ &amp;amp;&amp;amp; \&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;!defined(MCU_MKE02Z4) /* PORT */ &amp;amp;&amp;amp; \&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;!defined(MCU_SKEAZN642) /* PORT */ &amp;amp;&amp;amp; \&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;!defined(MCU_MKE04Z1284) /* PORT */ &amp;amp;&amp;amp; \&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;!defined(MCU_MKE04Z4) /* PORT */ &amp;amp;&amp;amp; \&lt;/EM&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&lt;EM style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;It says,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;#error encountered with text: PORT PDD library: No derivative is active. Place proper #include with PDD memory map before including PDD library.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To felicitate the above said operation (&lt;SPAN style="font-weight: bold; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Clock all the port pins, Configure Port B pin 1 (PTB1) as input, &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;initialize the port pin PTB1, enable internal pull-up on PTB1, rest are common Wait statements&lt;/SPAN&gt;) in MKE02Z64VLD2 what should I do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 10:43:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465977#M4980</guid>
      <dc:creator>ganeshramachand</dc:creator>
      <dc:date>2016-04-21T10:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: What/Where is the possible replacement in code statements for Kinetis controllers which are not supported in PORT_PDD.h which</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465978#M4981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;The Kinetis KE family does not have clock gating for the GPIO module.&amp;nbsp; It uses the System Clock.&lt;/P&gt;&lt;P&gt;If you look at the KE02 Reference Manual SIM-&amp;gt;SCGC register you will see no clock enable bit for GPIO.&lt;/P&gt;&lt;P&gt;The Kinetis K&amp;amp;L families have clock gating to GPIO as FYI.&lt;/P&gt;&lt;P&gt;Did you generate the code or copy it from some other example?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 13:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465978#M4981</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-21T13:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: What/Where is the possible replacement in code statements for Kinetis controllers which are not supported in PORT_PDD.h which</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465979#M4982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I just copied the code written for KL-25Z and tried to modify it to my KE-02Z. But couldnt succeed. Do you have any possible suggestion ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 16:07:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465979#M4982</guid>
      <dc:creator>ganeshramachand</dc:creator>
      <dc:date>2016-04-21T16:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: What/Where is the possible replacement in code statements for Kinetis controllers which are not supported in PORT_PDD.h which</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465980#M4983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;The FRDM-KE02Z development board product page has much content (good news).&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/freedom-development-boards/freescale-freedom-development-platform-for-kinetis-ke02-mcus:FRDM-KE02Z40M" title="http://www.nxp.com/products/software-and-tools/hardware-development-tools/freedom-development-boards/freescale-freedom-development-platform-for-kinetis-ke02-mcus:FRDM-KE02Z40M"&gt;Freedom Development Platform for Kinetis KE02|NXP&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The bad news is the example FRDM-KEXX Driver Library Package does not support KDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The good news is a NXP FAE ported it to KDS and here that is.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Here’s the link to the updated driver package with KDS support for all the example projects&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-329476"&gt;&lt;SPAN style="color: black;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://community.freescale.com/docs/DOC-329476" target="test_blank"&gt;https://community.freescale.com/docs/DOC-329476&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 16:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465980#M4983</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-21T16:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: What/Where is the possible replacement in code statements for Kinetis controllers which are not supported in PORT_PDD.h which</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465981#M4984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David, &lt;/P&gt;&lt;P&gt;Thanks for both good news and bad news. And I am not using a freedom board, its a custom designed board. Anyways I hope your answer helps. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 16:43:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465981#M4984</guid>
      <dc:creator>ganeshramachand</dc:creator>
      <dc:date>2016-04-21T16:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: What/Where is the possible replacement in code statements for Kinetis controllers which are not supported in PORT_PDD.h which</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465982#M4985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;The code base will help you but if you can get a Freedom board to that makes support much easier meaning if you have an issue on your product and can port and verify with Freedom, we can help more fully.&lt;/P&gt;&lt;P&gt;Plus having Freedom lets you run all the example code to learn it well before trying in your product.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-Where-is-the-possible-replacement-in-code-statements-for/m-p/465982#M4985</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-21T17:29:17Z</dc:date>
    </item>
  </channel>
</rss>

