<?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 S32K148 ISR not working in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32K148-ISR-not-working/m-p/901694#M4880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I am trying to write an ISR routine&amp;nbsp; on s32k148 eval board&amp;nbsp; and&amp;nbsp;would want&amp;nbsp; that it&amp;nbsp;&amp;nbsp;detects the switch (PTC 13 on rising edge) and toggle the output&amp;nbsp; BLUE LED (PORTE 23), but I see the blue LED glowing but the Interrupt is not getting detected when the SW4 is pressed.&lt;/P&gt;&lt;P&gt;So could you please let know if I have missed something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below is the sample code.&lt;/P&gt;&lt;P&gt;Config from the&amp;nbsp; processor expert.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; .base = PORTC,&lt;BR /&gt; .pinPortIdx = 12u,&lt;BR /&gt; .pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,&lt;BR /&gt; .passiveFilter = false,&lt;BR /&gt; .driveSelect = PORT_LOW_DRIVE_STRENGTH,&lt;BR /&gt; .mux = PORT_MUX_AS_GPIO,&lt;BR /&gt; .pinLock = false,&lt;BR /&gt; .intConfig = PORT_INT_RISING_EDGE,&lt;BR /&gt; .clearIntFlag = true,&lt;BR /&gt; .gpioBase = PTC,&lt;BR /&gt; .direction = GPIO_INPUT_DIRECTION,&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; .base = PORTE,&lt;BR /&gt; .pinPortIdx = 23u,&lt;BR /&gt; .pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,&lt;BR /&gt; .passiveFilter = false,&lt;BR /&gt; .driveSelect = PORT_LOW_DRIVE_STRENGTH,&lt;BR /&gt; .mux = PORT_MUX_AS_GPIO,&lt;BR /&gt; .pinLock = false,&lt;BR /&gt; .intConfig = PORT_DMA_INT_DISABLED,&lt;BR /&gt; .clearIntFlag = false,&lt;BR /&gt; .gpioBase = PTE,&lt;BR /&gt; .direction = GPIO_OUTPUT_DIRECTION,&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FS0B_ISR(void)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; PINS_DRV_ClearPinIntFlagCmd(PORTC, (1&amp;lt;&amp;lt;13));&lt;BR /&gt; PINS_DRV_TogglePins(PTE, (1&amp;lt;&amp;lt;23));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt; CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt; PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PINS_DRV_SetPinDirection(PTC, (1&amp;lt;&amp;lt;13), 0);&lt;BR /&gt; PINS_DRV_SetPins(PTE, (1&amp;lt;&amp;lt;23));&lt;BR /&gt; INT_SYS_InstallHandler(PORTC_IRQn, FS0B_ISR, (isr_t *)0);&lt;BR /&gt; INT_SYS_EnableIRQ(PORTC_IRQn);&lt;BR /&gt; PINS_DRV_SetPinIntSel(PORTC,(1&amp;lt;&amp;lt;13),&lt;SPAN&gt;PORT_INT_RISING_EDGE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2019 20:48:24 GMT</pubDate>
    <dc:creator>satish_k_singh</dc:creator>
    <dc:date>2019-05-20T20:48:24Z</dc:date>
    <item>
      <title>S32K148 ISR not working</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K148-ISR-not-working/m-p/901694#M4880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I am trying to write an ISR routine&amp;nbsp; on s32k148 eval board&amp;nbsp; and&amp;nbsp;would want&amp;nbsp; that it&amp;nbsp;&amp;nbsp;detects the switch (PTC 13 on rising edge) and toggle the output&amp;nbsp; BLUE LED (PORTE 23), but I see the blue LED glowing but the Interrupt is not getting detected when the SW4 is pressed.&lt;/P&gt;&lt;P&gt;So could you please let know if I have missed something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below is the sample code.&lt;/P&gt;&lt;P&gt;Config from the&amp;nbsp; processor expert.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; .base = PORTC,&lt;BR /&gt; .pinPortIdx = 12u,&lt;BR /&gt; .pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,&lt;BR /&gt; .passiveFilter = false,&lt;BR /&gt; .driveSelect = PORT_LOW_DRIVE_STRENGTH,&lt;BR /&gt; .mux = PORT_MUX_AS_GPIO,&lt;BR /&gt; .pinLock = false,&lt;BR /&gt; .intConfig = PORT_INT_RISING_EDGE,&lt;BR /&gt; .clearIntFlag = true,&lt;BR /&gt; .gpioBase = PTC,&lt;BR /&gt; .direction = GPIO_INPUT_DIRECTION,&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; .base = PORTE,&lt;BR /&gt; .pinPortIdx = 23u,&lt;BR /&gt; .pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,&lt;BR /&gt; .passiveFilter = false,&lt;BR /&gt; .driveSelect = PORT_LOW_DRIVE_STRENGTH,&lt;BR /&gt; .mux = PORT_MUX_AS_GPIO,&lt;BR /&gt; .pinLock = false,&lt;BR /&gt; .intConfig = PORT_DMA_INT_DISABLED,&lt;BR /&gt; .clearIntFlag = false,&lt;BR /&gt; .gpioBase = PTE,&lt;BR /&gt; .direction = GPIO_OUTPUT_DIRECTION,&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FS0B_ISR(void)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; PINS_DRV_ClearPinIntFlagCmd(PORTC, (1&amp;lt;&amp;lt;13));&lt;BR /&gt; PINS_DRV_TogglePins(PTE, (1&amp;lt;&amp;lt;23));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt; CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt; PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PINS_DRV_SetPinDirection(PTC, (1&amp;lt;&amp;lt;13), 0);&lt;BR /&gt; PINS_DRV_SetPins(PTE, (1&amp;lt;&amp;lt;23));&lt;BR /&gt; INT_SYS_InstallHandler(PORTC_IRQn, FS0B_ISR, (isr_t *)0);&lt;BR /&gt; INT_SYS_EnableIRQ(PORTC_IRQn);&lt;BR /&gt; PINS_DRV_SetPinIntSel(PORTC,(1&amp;lt;&amp;lt;13),&lt;SPAN&gt;PORT_INT_RISING_EDGE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 20:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K148-ISR-not-working/m-p/901694#M4880</guid>
      <dc:creator>satish_k_singh</dc:creator>
      <dc:date>2019-05-20T20:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 ISR not working</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K148-ISR-not-working/m-p/901695#M4881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is simple example for GPIO Interrupt handler -&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-343587"&gt;https://community.nxp.com/docs/DOC-343587&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 12:49:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K148-ISR-not-working/m-p/901695#M4881</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-05-24T12:49:43Z</dc:date>
    </item>
  </channel>
</rss>

