<?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: NVIC Definition</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NVIC-Definition/m-p/426536#M3537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have already found a way to enable NVIC.&lt;/P&gt;&lt;P&gt;NVIC_EnableIRQ(PIT_IRQn);&amp;nbsp; using the #include &amp;lt;core_cm0plus.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that using PE i could make the program works fast. but as i came from 8 bits microcontrollers. first i have to understand what i am doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok now i have this file startup_MKL25Z4.s&lt;/P&gt;&lt;P&gt;where the i have some definitions to vector.&lt;/P&gt;&lt;P&gt;How can i ovewrite for example the PIT_IRQHandler to my function. I can see it is defined in the first .long and after i think it is informed to compiler to rout this interrupt to the default interrupt i think.&lt;/P&gt;&lt;P&gt;Any help would be valuable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long&amp;nbsp;&amp;nbsp; PIT_IRQHandler&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* PIT interrupt*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def_irq_handler&amp;nbsp;&amp;nbsp;&amp;nbsp; PIT_IRQHandler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 20:19:49 GMT</pubDate>
    <dc:creator>Edrianocarlos</dc:creator>
    <dc:date>2015-06-24T20:19:49Z</dc:date>
    <item>
      <title>NVIC Definition</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NVIC-Definition/m-p/426535#M3536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a project without PE or KSDK.&lt;/P&gt;&lt;P&gt;Just created a project to KL25 Microcontroller and start to code.&lt;/P&gt;&lt;P&gt;now i am trying to configure the NVIC and what i could see is that there is no reference to it &lt;/P&gt;&lt;P&gt;in the MKL25z4.h rev 2.5.&amp;nbsp; I am using the KDS 3.0 but when i create a project with pe they are using rev 1.8 and there it is all the definitions.&lt;/P&gt;&lt;P&gt;If it is not a bug do i have to define everything from scratch?&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; Reference manual:&amp;nbsp;&amp;nbsp;&amp;nbsp; KL25P80M48SF0RM, Rev.3, Sep 2012&lt;/P&gt;&lt;P&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rev. 2.5, 2015-02-19&lt;/P&gt;&lt;P&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Build:&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; b150220&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 16:32:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NVIC-Definition/m-p/426535#M3536</guid>
      <dc:creator>Edrianocarlos</dc:creator>
      <dc:date>2015-06-24T16:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC Definition</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NVIC-Definition/m-p/426536#M3537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have already found a way to enable NVIC.&lt;/P&gt;&lt;P&gt;NVIC_EnableIRQ(PIT_IRQn);&amp;nbsp; using the #include &amp;lt;core_cm0plus.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that using PE i could make the program works fast. but as i came from 8 bits microcontrollers. first i have to understand what i am doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok now i have this file startup_MKL25Z4.s&lt;/P&gt;&lt;P&gt;where the i have some definitions to vector.&lt;/P&gt;&lt;P&gt;How can i ovewrite for example the PIT_IRQHandler to my function. I can see it is defined in the first .long and after i think it is informed to compiler to rout this interrupt to the default interrupt i think.&lt;/P&gt;&lt;P&gt;Any help would be valuable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long&amp;nbsp;&amp;nbsp; PIT_IRQHandler&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* PIT interrupt*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def_irq_handler&amp;nbsp;&amp;nbsp;&amp;nbsp; PIT_IRQHandler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 20:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NVIC-Definition/m-p/426536#M3537</guid>
      <dc:creator>Edrianocarlos</dc:creator>
      <dc:date>2015-06-24T20:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC Definition</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NVIC-Definition/m-p/426537#M3538</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;In fact, do you use PE or not ?&lt;/P&gt;&lt;P&gt;(1) If you use PE,&amp;nbsp; please add your interrupt code to the "Events.c" file .&lt;/P&gt;&lt;P&gt;For example, the component "TimerInt_LDD" , after generate code , we can see :&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/57579iF00C15B7E67E602C/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;(2) If your project without PE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need write a function : void PIT_IRQHandler () {} , then add your interrupt code into it.&lt;/P&gt;&lt;P&gt;And if you want change the name of interrupt function , you need change the two place you mentioned.&lt;/P&gt;&lt;P&gt;&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, 25 Jun 2015 02:20:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NVIC-Definition/m-p/426537#M3538</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-06-25T02:20:15Z</dc:date>
    </item>
  </channel>
</rss>

