<?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: Including existing libraries from KSDK1.2 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401835#M1518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have installed KSDK1.2.0 update. Also created a new project using KSDK1.2.0 from project creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when i try to add board.h it throws an error stating ""../Sources/main.c:33:19: fatal error: board.h: No such file or directory"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54774i0E79D571D605DDA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As u notice the board folder is missing. How do you add the board folder that possesses all the board related libraries ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 13:04:50 GMT</pubDate>
    <dc:creator>nelsonlobo</dc:creator>
    <dc:date>2015-07-14T13:04:50Z</dc:date>
    <item>
      <title>Including existing libraries from KSDK1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401831#M1514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ive created a project in the following manner in KDS3.0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File--&amp;gt; New --&amp;gt; ProjectName --&amp;gt; Next --&amp;gt;Processors --&amp;gt; Kinetis L --&amp;gt; MKL2x --&amp;gt; KL25Z(48MHz) --&amp;gt; MKL25Z128xxx4 --&amp;gt; Next --&amp;gt;(Nothing selected here) --&amp;gt; Finish&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i write following piece of code in main:&lt;/P&gt;&lt;P&gt;#include "MKL25Z4.h"&lt;/P&gt;&lt;P&gt;/*!&lt;/P&gt;&lt;P&gt; * @brief Main function&lt;/P&gt;&lt;P&gt; */&lt;/P&gt;&lt;P&gt;int main (void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int count = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_BASE_PTR-&amp;gt;SCGC5 |= SIM_SCGC5_PORTB_MASK; //refer to page 206 to check the SCGC5 register which is the System clock gating control register&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //PORTB_BASE_PTR-&amp;gt;PCR[18] =&amp;nbsp; PORT_PCR_MUX(1); //&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTB_PCR18 = PORT_PCR_MUX(1);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //PTB_BASE_PTR-&amp;gt;PDDR = 1 &amp;lt;&amp;lt; 18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOB_PDDR = 1&amp;lt;&amp;lt;18;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //PTB_BASE_PTR-&amp;gt;PSOR = 1 &amp;lt;&amp;lt; 18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOB_PSOR |= 1&amp;lt;&amp;lt;18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(count = 0;count &amp;lt;1000000;count++);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //PTB_BASE_PTR-&amp;gt;PCOR = 1 &amp;lt;&amp;lt; 18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOB_PCOR |= 1&amp;lt;&amp;lt;18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(count = 0;count &amp;lt;1000000;count++);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code toggles bit 18 of PORTB. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to know if i were to use the libraries as done in KSDK1.2.0 examples into this code how do i do it ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is the code example for the same output using KSDK1.2.0 example Hello World:&lt;/P&gt;&lt;P&gt;NOTE: in this code ive removed the LPTMR section since i just want to focus on basic port pins functions&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;// SDK Included Files&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#include "board.h"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;/*!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; * @brief Main function&lt;/P&gt;&lt;P&gt; */&lt;/P&gt;&lt;P&gt;int main (void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int count = 0;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Initialize standard SDK demo application pins&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hardware_init();&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Initialize LED1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED1_EN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED2_EN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED3_EN;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED1_ON;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED2_ON;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED3_ON;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED1_TOGGLE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(count = 0;count &amp;lt;10000;count++);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know a way wherein i could provide a path in the project to these KSDK1.2.0 headers so that i could use these functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2015 05:04:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401831#M1514</guid>
      <dc:creator>nelsonlobo</dc:creator>
      <dc:date>2015-07-11T05:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Including existing libraries from KSDK1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401832#M1515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nelson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better way is create new project with KSDK 1.2 selected option and remove what you do not need because you have included libraries in KSDK project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ksdk.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58317i2B24F6663865CAF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="ksdk.png" alt="ksdk.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this case you can use GPIO example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every &lt;STRONG&gt;KSDK example&lt;/STRONG&gt; has included board folder, which contains board.c/h, gpio_pins.c/h and pin_mux.c/h.&lt;/P&gt;&lt;P&gt;board.h is board configuration - contains specific macros as LEDs, push buttons...&lt;/P&gt;&lt;P&gt;board.c contains clock and oscillator initialization functions&lt;/P&gt;&lt;P&gt;gpio_pins.h/c - contains definitions which KSDK GPIO driver uses for the platform´s GPIO pins.&lt;/P&gt;&lt;P&gt;pins_mux.c/h - contains peripheral-specific pin mux configurations.These functions can be called by the&lt;/P&gt;&lt;P&gt;hardware_init() function or individually by the demo application.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="gpio.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58329iF78C622A46D180F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="gpio.png" alt="gpio.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please, look at the example code,gpio example is located here &amp;lt;ksdk_path&amp;gt;\examples\&amp;lt;board&amp;gt;\driver_examples\gpio &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;it is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;unnecessary&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to copy the code here. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;I hope this helps&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Iva&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 08:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401832#M1515</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-07-13T08:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Including existing libraries from KSDK1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401833#M1516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I just tried creating a project using KSDK 1.2.0 but it wouldnt let me to do so. I guess i have to install KSDK 1.2.0 Eclipse update inroder to do dat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the issue is that everytime i try downloading this package it crashes with some error. Is there any alternative link to the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 12:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401833#M1516</guid>
      <dc:creator>nelsonlobo</dc:creator>
      <dc:date>2015-07-13T12:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Including existing libraries from KSDK1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401834#M1517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eclipse update is the only way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, follow this procedure to Installing Kinetis SDK into KDS&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/user_guide/KDSUG.pdf?fsrch=62" title="http://cache.freescale.com/files/microcontrollers/doc/user_guide/KDSUG.pdf?fsrch=62"&gt;KDS 3.0 User Guide&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If does not help, please, let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 11:04:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401834#M1517</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-07-14T11:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Including existing libraries from KSDK1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401835#M1518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have installed KSDK1.2.0 update. Also created a new project using KSDK1.2.0 from project creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when i try to add board.h it throws an error stating ""../Sources/main.c:33:19: fatal error: board.h: No such file or directory"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54774i0E79D571D605DDA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As u notice the board folder is missing. How do you add the board folder that possesses all the board related libraries ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401835#M1518</guid>
      <dc:creator>nelsonlobo</dc:creator>
      <dc:date>2015-07-14T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Including existing libraries from KSDK1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401836#M1519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;STRONG&gt; Nelson Lobo&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, KSDK code is different.&lt;/P&gt;&lt;P&gt;There is different structure with functions for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try it by this way:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104318"&gt;How to toggle LED in KDS 2.0 with KSDK 1.1.0 and Processor Expert&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/videos/3195"&gt; Video Link : 3195&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 11:45:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Including-existing-libraries-from-KSDK1-2/m-p/401836#M1519</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-07-15T11:45:35Z</dc:date>
    </item>
  </channel>
</rss>

