<?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: Component specific interrupt on K64 through KDS 3.0</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393342#M2425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To give more details, I am using safeRTOS and the OSAL has been adapted for that, also to inform I am using IAR EWARM 7.4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried all other stuffs,I am still hoping that something is missing because of which I am not able to solve this vector ram issue. if you have not able to see my previous reply as it requires to be approved by moderator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ICF file looks like left hand side of the diff file, which is edited accordingly for safeRTOS. the processor expert ICF is the right hand side file in the diff attached. &lt;span class="lia-inline-image-display-wrapper" image-alt="ICF.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4855i29357741042AB34B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ICF.JPG" alt="ICF.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 18:49:09 GMT</pubDate>
    <dc:creator>Kewal</dc:creator>
    <dc:date>2015-11-06T18:49:09Z</dc:date>
    <item>
      <title>Component specific interrupt on K64 through KDS 3.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393338#M2421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get a component specific interrupt. While I have not added the interrupt manager. I wanted to know if I am in the right direction, but I am not able to get an interrupt on that component. To explain this better below are the screenshots.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have done the pin configuration. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="97793_97793.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120775i0CB8FA038CAEC188/image-size/large?v=v2&amp;amp;px=999" role="button" title="97793_97793.JPG" alt="97793_97793.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Pin settings.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26000i52D407D5BB92E772/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pin settings.JPG" alt="Pin settings.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To get the interrupt on this particular compoent, I modified events&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="97794_97794.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120776i873D892205F51718/image-size/large?v=v2&amp;amp;px=999" role="button" title="97794_97794.JPG" alt="97794_97794.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Select event code generate.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26017iF775854E5DB276CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select event code generate.JPG" alt="Select event code generate.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then install interrupt for that particular pin input.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="97795_97795.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120777iD3C9EAEC5BD20572/image-size/large?v=v2&amp;amp;px=999" role="button" title="97795_97795.JPG" alt="97795_97795.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Interruptsettings.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26103i5C5E5F228C2D16BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Interruptsettings.JPG" alt="Interruptsettings.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After I hit the generate code, I am able to see the events with a component specific IRQ&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="97796_97796.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120778iF732651C09CC0843/image-size/large?v=v2&amp;amp;px=999" role="button" title="97796_97796.JPG" alt="97796_97796.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ComponentInterrupt.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26157i6DFF7EB2B7A42603/image-size/large?v=v2&amp;amp;px=999" role="button" title="ComponentInterrupt.JPG" alt="ComponentInterrupt.JPG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the interrupt is not added in startup_MK64F12.s file where all the interrupts are located. so when the event is generated it falls to Default ISR. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should we modify the MK64F12.h for the interrupt and then define it in the startup_MK64F12.h to get the interrupt? Is this the right way of doing or is there some setup through which those two files are modified for the installed interrupt through component settings.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kewal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393338#M2421</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-11-06T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Component specific interrupt on K64 through KDS 3.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393339#M2422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also when i install the interrupt on that particular component, I am getting an error to check if the vector is present in RAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="VectorRam.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27565iE3E5A568057D7E8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="VectorRam.JPG" alt="VectorRam.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on debug, I am landing at,..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Debug.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27658i6D5B69596717B47B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug.JPG" alt="Debug.JPG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So my ICF configuration looks like this where ofcourse, it says vector table to be copied to RAM, Am i missing something else???&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ICF Configuration.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3681iDD5EB584AF62B466/image-size/large?v=v2&amp;amp;px=999" role="button" title="ICF Configuration.JPG" alt="ICF Configuration.JPG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 16:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393339#M2422</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-11-06T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Component specific interrupt on K64 through KDS 3.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393340#M2423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I am using the safeRTOS, we have actually included the safeRTOS ICF file which is as shown on the right side of the diff of both the safeRTOS icf and generated ICF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ICF.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30658i8909DC5417797B0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="ICF.JPG" alt="ICF.JPG" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 17:17:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393340#M2423</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-11-06T17:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Component specific interrupt on K64 through KDS 3.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393341#M2424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kewai,&lt;/P&gt;&lt;P&gt;It seems that you are making all the correct steps to get a GPIO interrupt.&lt;/P&gt;&lt;P&gt;Maybe you need to clean and rebuild?&lt;/P&gt;&lt;P&gt;Or maybe project is somehow corrupted so a new project might fix things.&lt;/P&gt;&lt;P&gt;Have you done updates?&lt;/P&gt;&lt;P&gt;Attached is my project that I tested using KDS_3.0.0 and KSDK_1.3.0 fo frdm-k64f Freedom board.&lt;/P&gt;&lt;P&gt;I setup the SW2 GPIO (PTC6) as my input gpio interrupt.&amp;nbsp; I had to enable pull-up for the gpio as the switch doesn't have a&amp;nbsp; pull-up populated.&amp;nbsp; So my interrupt is set for negative edge.&lt;/P&gt;&lt;P&gt;The project is using SRAM for the vector table.&lt;/P&gt;&lt;P&gt;In Cpu.c the gpio isr is being added to the SRAM vector table with following call:&lt;/P&gt;&lt;P&gt;&amp;nbsp; OSA_InstallIntHandler(PORTC_IRQn,&amp;nbsp; gpio1_PORTC_IRQHandler); &lt;/P&gt;&lt;P&gt;I can set a breakpoint in the Event.c handler:&lt;/P&gt;&lt;P&gt;void gpio1_PORTC_IRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Clear interrupt flag.*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORT_HAL_ClearPortIntFlag(PORTC_BASE_PTR);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your code here ... */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i press SW2 I get the interrupt.&lt;/P&gt;&lt;P&gt;Hope this helps.&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>Fri, 06 Nov 2015 17:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393341#M2424</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-11-06T17:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Component specific interrupt on K64 through KDS 3.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393342#M2425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To give more details, I am using safeRTOS and the OSAL has been adapted for that, also to inform I am using IAR EWARM 7.4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried all other stuffs,I am still hoping that something is missing because of which I am not able to solve this vector ram issue. if you have not able to see my previous reply as it requires to be approved by moderator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ICF file looks like left hand side of the diff file, which is edited accordingly for safeRTOS. the processor expert ICF is the right hand side file in the diff attached. &lt;span class="lia-inline-image-display-wrapper" image-alt="ICF.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4855i29357741042AB34B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ICF.JPG" alt="ICF.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 18:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393342#M2425</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-11-06T18:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Component specific interrupt on K64 through KDS 3.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393343#M2426</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;&lt;/P&gt;&lt;P&gt;I sort of ironed it out,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its because of the __ram_vector_table__ symbol which was not defined. so it was the offset and size were 0 so I was getting that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not show the entire file so that information was missing above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyways,&lt;/P&gt;&lt;P&gt;Kewal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 19:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393343#M2426</guid>
      <dc:creator>Kewal</dc:creator>
      <dc:date>2015-11-06T19:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Component specific interrupt on K64 through KDS 3.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393344#M2427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kewal,&lt;/P&gt;&lt;P&gt;Guess you cannot post your project then.&amp;nbsp; Correct?&lt;/P&gt;&lt;P&gt;Here is a picture from a KSDK_1.3 IAR project that has define's added to the linker section.&amp;nbsp; Do you have them too?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_212 Nov. 06 13.28.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5207i121001EA588D0D1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_212 Nov. 06 13.28.gif" alt="ScreenHunter_212 Nov. 06 13.28.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The __ram_vector_table__=1 is used by the linker to help setup VTOR to be in SRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your __VECTOR_RAM defined to in your linker file?&amp;nbsp; It should equate to 0x1fff0000 .&lt;/P&gt;&lt;P&gt;The ProcessorExpert.ld has:&lt;/P&gt;&lt;P&gt;&amp;nbsp; __VECTOR_RAM = ORIGIN(m_interrupts_ram);&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>Fri, 06 Nov 2015 19:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Component-specific-interrupt-on-K64-through-KDS-3-0/m-p/393344#M2427</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-11-06T19:35:48Z</dc:date>
    </item>
  </channel>
</rss>

