<?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: KSDK and IAR: Problems with interrupts in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462573#M3441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice Yang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response!&lt;/P&gt;&lt;P&gt;I was adding the files in the startup folder within the example to my project. But then the linker threw some errors. &lt;/P&gt;&lt;P&gt;After some tries I found that the 'original' linker file that came with IAR doesn't fit to KSDK. I changed this to the linker file include in KSDK package and all works fine!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;S. L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 08:20:03 GMT</pubDate>
    <dc:creator>s_l_</dc:creator>
    <dc:date>2016-01-27T08:20:03Z</dc:date>
    <item>
      <title>KSDK and IAR: Problems with interrupts</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462571#M3439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;again I have some troubles while using IAR.&lt;/P&gt;&lt;P&gt;I want to use the KSDK within IAR. I copied the platform folder out of the KSDK folder to the project folder and made the following settings within IAR project settings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - C/C++ Compiler --&amp;gt; Preprocessor --&amp;gt; Defined symbols: &lt;/P&gt;&lt;P&gt;&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; CPU_MK22FN512VLH12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - C/C++ Compiler --&amp;gt; Preprocessor --&amp;gt; Additional include directories: &lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\devices\MK22F51212\include&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\devices\MK22F51212\startup&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\CMSIS\Include&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\composite\inc&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\devices&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\devices\inc&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\drivers\inc&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\hal\inc&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\osa\inc&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\system\inc&lt;/P&gt;&lt;P&gt;&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; $PROJ_DIR$\platform\utilities\inc&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my example I'm initializing PIT0 with interrupts. As interrupt handler I added void PIT0_IRQHandler(void){}.&lt;/P&gt;&lt;P&gt;But while debugging I can't set a breakpoint within the handler and the debugger gets stuck within a NMI handler, I guess because the handler for the pit isr isn't known by the cpu.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Copying that project to KDS it works, because within the project a Startup_Code folder is generated, where the startup_MK22F51212.S file is included. In this file I can find the declaration of the PIT0_IRQHandler. &lt;/P&gt;&lt;P&gt;Where I have to include this file in IAR?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best greetz,&lt;/P&gt;&lt;P&gt;S. L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 08:15:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462571#M3439</guid>
      <dc:creator>s_l_</dc:creator>
      <dc:date>2016-01-26T08:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK and IAR: Problems with interrupts</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462572#M3440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello S.L,&lt;/P&gt;&lt;P&gt;In IAR, you can also include the file of "startup_MK22F51212.S" , please refer to&lt;/P&gt;&lt;P&gt;the KSDK demo on IAR , for example： \KSDK_1.3.0\examples\frdmk22f\driver_examples\pit\iar&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 Yang&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>Wed, 27 Jan 2016 02:53:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462572#M3440</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-27T02:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK and IAR: Problems with interrupts</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462573#M3441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice Yang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response!&lt;/P&gt;&lt;P&gt;I was adding the files in the startup folder within the example to my project. But then the linker threw some errors. &lt;/P&gt;&lt;P&gt;After some tries I found that the 'original' linker file that came with IAR doesn't fit to KSDK. I changed this to the linker file include in KSDK package and all works fine!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;S. L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 08:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462573#M3441</guid>
      <dc:creator>s_l_</dc:creator>
      <dc:date>2016-01-27T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK and IAR: Problems with interrupts</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462574#M3442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice Yang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once I'm using the startup code, I'm getting serious troubles while reconfiguring the clock module.&lt;/P&gt;&lt;P&gt;So I tried to initialize the CU without the startup files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm encountering again the initial problem: The &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;PIT0_IRQHandler isn't known by the CPU, I even can't set a breakpoint inside the handler.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;How to make the handler known by the CPU?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Which table I have to include to my project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and nice greetings,&lt;/P&gt;&lt;P&gt;S. L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 13:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462574#M3442</guid>
      <dc:creator>s_l_</dc:creator>
      <dc:date>2016-02-01T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK and IAR: Problems with interrupts</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462575#M3443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello S.L&lt;/P&gt;&lt;P&gt;I recommend you use the&amp;nbsp; "Kinetis SDK Project Generator TOOL" to generate one KSDK project on IAR, then refer to the PIT demo&lt;/P&gt;&lt;P&gt;under KSDK1.3 to configure your project .This method is easy.&lt;/P&gt;&lt;P&gt;You can download the Generator Tool at here :&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/development-platforms-with-mbed/software-development-kit-for-kinetis-mcus:KINETIS-SDK?code=KINETIS-SDK&amp;amp;nodeId=0152109D3F1E8C1EF7&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/development-platforms-with-mbed/software-development-kit-for-kinetis-mcus:KINETIS-SDK?code=KINETIS-SDK&amp;amp;nodeId=0152109D3F1E8C1EF7&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;Software Development Kit for Kinetis MCUs|NXP&lt;/A&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/21550i83B6360CA3D24874/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;&lt;/P&gt;&lt;P&gt;After this , if your project still have problem ,&amp;nbsp; you can send it to me , i will help you to check it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;ALICE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 04:08:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-and-IAR-Problems-with-interrupts/m-p/462575#M3443</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-02-02T04:08:53Z</dc:date>
    </item>
  </channel>
</rss>

