<?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>Wireless MCUのトピックundefined reference to ISR</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/undefined-reference-to-ISR/m-p/938866#M7341</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 successfully build the JN-AN-1171 demo to make an incandescent light bulb dimmer. In this project i used a secondary MCU (attiny85) to drive the dimmer circuit. This MCU uses the output signal of a&amp;nbsp;JN5168-001-M00 module to dim the light bulb. Functionally this works OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to get rid of the attiny85 and use the capabilities of the JN5168 to drive the dimmer circuit.&lt;/P&gt;&lt;P&gt;The first thing i have to do is to develop code for detecting the zero crossing of the sine wave. For this I need an interrupt on DIO4 (in my case). In the&amp;nbsp;JenOS Configuration Editor i created an ISR (APP_isrDimmer) and a Interrupt Source with the value&amp;nbsp;SystemController.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next i added the following code:&lt;/P&gt;&lt;P&gt;OS_ISR(v&lt;SPAN&gt;APP_isrDimmer&lt;/SPAN&gt;)&lt;BR /&gt;{&lt;BR /&gt; /* Clear pending DIO changed bits by reading register */&lt;BR /&gt; uint32 u32DioIntStatus = u32AHI_DioInterruptStatus();&lt;/P&gt;&lt;P&gt;DBG_vPrintf(TRACE_ZC, "\n\r&lt;SPAN&gt;v&lt;/SPAN&gt;&lt;SPAN&gt;APP_isrDimmer&lt;/SPAN&gt; - DioIntStatus: 0x%x", u32DioIntStatus);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that i'm forgetting a crucial step because i'm getting a build error.&lt;/P&gt;&lt;P&gt;workspace/Custom_ZLL_Lights/Light_DimmableLight/Build/os_irq.o: In function `os_APP_isrDimmer_J':&lt;BR /&gt;(.text+0xf8): undefined reference to `os_vAPP_isrDimmer'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The build error occurs with or without the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jacco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2019 12:21:01 GMT</pubDate>
    <dc:creator>jacco_bezemer</dc:creator>
    <dc:date>2019-10-02T12:21:01Z</dc:date>
    <item>
      <title>undefined reference to ISR</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/undefined-reference-to-ISR/m-p/938866#M7341</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 successfully build the JN-AN-1171 demo to make an incandescent light bulb dimmer. In this project i used a secondary MCU (attiny85) to drive the dimmer circuit. This MCU uses the output signal of a&amp;nbsp;JN5168-001-M00 module to dim the light bulb. Functionally this works OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to get rid of the attiny85 and use the capabilities of the JN5168 to drive the dimmer circuit.&lt;/P&gt;&lt;P&gt;The first thing i have to do is to develop code for detecting the zero crossing of the sine wave. For this I need an interrupt on DIO4 (in my case). In the&amp;nbsp;JenOS Configuration Editor i created an ISR (APP_isrDimmer) and a Interrupt Source with the value&amp;nbsp;SystemController.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next i added the following code:&lt;/P&gt;&lt;P&gt;OS_ISR(v&lt;SPAN&gt;APP_isrDimmer&lt;/SPAN&gt;)&lt;BR /&gt;{&lt;BR /&gt; /* Clear pending DIO changed bits by reading register */&lt;BR /&gt; uint32 u32DioIntStatus = u32AHI_DioInterruptStatus();&lt;/P&gt;&lt;P&gt;DBG_vPrintf(TRACE_ZC, "\n\r&lt;SPAN&gt;v&lt;/SPAN&gt;&lt;SPAN&gt;APP_isrDimmer&lt;/SPAN&gt; - DioIntStatus: 0x%x", u32DioIntStatus);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that i'm forgetting a crucial step because i'm getting a build error.&lt;/P&gt;&lt;P&gt;workspace/Custom_ZLL_Lights/Light_DimmableLight/Build/os_irq.o: In function `os_APP_isrDimmer_J':&lt;BR /&gt;(.text+0xf8): undefined reference to `os_vAPP_isrDimmer'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The build error occurs with or without the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jacco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 12:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/undefined-reference-to-ISR/m-p/938866#M7341</guid>
      <dc:creator>jacco_bezemer</dc:creator>
      <dc:date>2019-10-02T12:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to ISR</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/undefined-reference-to-ISR/m-p/938867#M7342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured it out.&lt;/P&gt;&lt;P&gt;Forgot to include&amp;nbsp;&amp;lt;os.h&amp;gt; and&amp;nbsp;&amp;lt;os_gen.h&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 19:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/undefined-reference-to-ISR/m-p/938867#M7342</guid>
      <dc:creator>jacco_bezemer</dc:creator>
      <dc:date>2019-10-02T19:59:52Z</dc:date>
    </item>
  </channel>
</rss>

