<?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 problem of program running on flash( interrupts) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269778#M9061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt; I have solved the e2448 problem on my program without interrupt service routine.But when I apply it on other program with interrupt service,then comes problem.&lt;/P&gt;&lt;P&gt;It jumps to default handler() function.But actually the program works well on RAM.So I really don't know what's the problem.When I step into each line,I found the&amp;nbsp; problem occurs at the "EnableInterrupts;" which is defined by:&amp;nbsp; #define EnableInterrupts asm(" CPSIE i");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using K60,CW10.3 ,GCC compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me some hints?Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jun 2013 08:04:15 GMT</pubDate>
    <dc:creator>fugrace</dc:creator>
    <dc:date>2013-06-03T08:04:15Z</dc:date>
    <item>
      <title>problem of program running on flash( interrupts)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269778#M9061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt; I have solved the e2448 problem on my program without interrupt service routine.But when I apply it on other program with interrupt service,then comes problem.&lt;/P&gt;&lt;P&gt;It jumps to default handler() function.But actually the program works well on RAM.So I really don't know what's the problem.When I step into each line,I found the&amp;nbsp; problem occurs at the "EnableInterrupts;" which is defined by:&amp;nbsp; #define EnableInterrupts asm(" CPSIE i");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using K60,CW10.3 ,GCC compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me some hints?Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 08:04:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269778#M9061</guid>
      <dc:creator>fugrace</dc:creator>
      <dc:date>2013-06-03T08:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem of program running on flash( interrupts)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269779#M9062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you might have an interrupt pending when you enable interrupts globally but don't have a interrupt service routine defined for that interrupt.&amp;nbsp; What value is at location 0xE000ED04 when your program jumps to the default handler?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 14:09:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269779#M9062</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2013-06-03T14:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem of program running on flash( interrupts)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269780#M9063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;Thank you very much,I guess it has sth with the interrupt service routine.But not because of lack of the routine.&lt;/P&gt;&lt;P&gt;I guess my own interrupt service routine hasn't been located in the vectortable. But actually I make it using:&lt;/P&gt;&lt;P&gt;" __vector_table[INT_FTM0] = (uint32)PWM_ISR&amp;nbsp; "&amp;nbsp; on RAM, however it seems not work on Flash,I don't know what's wrong.&lt;/P&gt;&lt;P&gt;Can you give me another help &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/chrisbrown"&gt;chrisbrown&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Grace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 03:44:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269780#M9063</guid>
      <dc:creator>fugrace</dc:creator>
      <dc:date>2013-06-04T03:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem of program running on flash( interrupts)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269781#M9064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I don't see anything that's immediately obvious.&amp;nbsp; Could you provide a project?&amp;nbsp; That would help greatly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, have you been able to get the value at address 0xE000ED04 when your program jumps to the default handler?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 12:58:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269781#M9064</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2013-06-27T12:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem of program running on flash( interrupts)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269782#M9065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Chris,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Sorry for replying late.You mean the register SCB_ICSR ? Before it jumps to the default handler,it's 0,then it turns to 0x84e.I can't find info in the manual ,so I don't know what it means.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;It's really very kind of you to help me.I attach my project below.Maybe it's a little hard to find that the interrupt service routine PWM_ISR is initialized in the startup_code\kinetis_sysinit.c in the InterruptVector[78].I changed the former _vector_table[78]=(uint32)PWM_ISR like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thank you very much,if it's too troublesome,I would also be appreciating if you send me a demo with interrupt service running on kinieics flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Grace&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 13:19:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/problem-of-program-running-on-flash-interrupts/m-p/269782#M9065</guid>
      <dc:creator>fugrace</dc:creator>
      <dc:date>2013-07-01T13:19:56Z</dc:date>
    </item>
  </channel>
</rss>

