<?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 Re: ZigBee 3.0 JN516x Interrupt handling in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694446#M3395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot to mention I am using the JN-AN-1229.&lt;/P&gt;&lt;P&gt;My problem is the lack of mention of interrupt handling in the stack user guide. Whereas when using JN-AN-1184, the documentation specifically mentions the application of&amp;nbsp; u32AHI_Init when using JenOS. As you can see, u32AHI_Init is not called for the JN516x when using ZigBee 3.0. The TARGET_INITIALISE() function is, to my untrained eyes, what appears to be a lot of vector macros which I do not understand. Hence the request for documentation on irq_JN516x.S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Are you using the irq_JN516x.S file?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If not, what does the code below look like for you?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC void APP_vSetUpHardware(void)&lt;BR /&gt;{&lt;BR /&gt;#if (JENNIC_CHIP_FAMILY == JN517x)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; u32AHI_Init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vAHI_InterruptSetPriority(MICRO_ISR_MASK_BBC,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_INT_PRIO_LEVEL_BBC );&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TARGET_INITIALISE();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear interrupt priority level&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET_IPL(0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; portENABLE_INTERRUPTS();&lt;BR /&gt;// &amp;nbsp;&amp;nbsp; vAHI_BrownOutConfigure(E_AHI_VBOREF_3V0, FALSE, TRUE, FALSE, TRUE);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; vAHI_SysCtrlRegisterCallback( APP_isrSysCon );&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; vAHI_InterruptSetPriority( MICRO_ISR_MASK_SYSCTRL, 4);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; u32AHI_Init();&lt;BR /&gt;#endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 16:13:41 GMT</pubDate>
    <dc:creator>epbelan</dc:creator>
    <dc:date>2017-09-28T16:13:41Z</dc:date>
    <item>
      <title>ZigBee 3.0 JN516x Interrupt handling</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694444#M3393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If using JN516x and ZigBee3.0 stack JN-SW-4170 is it possible to also use interrupt functions from the&amp;nbsp; JN516x Integrated Peripherals API? Such as...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u32AHI_Init&lt;/P&gt;&lt;P&gt;vAHI_SysCtrlRegisterCallback&lt;BR /&gt;vAHI_Uart1RegisterCallback&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to access the brownout, input, uart, pulse counter and analogue callback functions and using the above functions allows for more autonomous interrupt handling (interrupts are cleared and parsed automatically, I realize uarts are not cleared automatically but they are parsed automatically)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these functions are no longer available because of the free_rtos interrupt handling, is there any documentation on modifying the irq_JN516x.S file? I have successfully added the System controller interrupt I needed but only by looking at all the examples and guessing at the structure. Then I have to poll all of the conditions that could have triggered it. I would l0ve to be able to recreate the original mechanism of the registered callback functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to post this one sentence at a time to figure out that the word "l0ve" is banned! Really?!?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 02:45:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694444#M3393</guid>
      <dc:creator>epbelan</dc:creator>
      <dc:date>2017-09-28T02:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: ZigBee 3.0 JN516x Interrupt handling</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694445#M3394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/epbelan"&gt;epbelan&lt;/A&gt;‌&amp;nbsp;&lt;BR /&gt;I am using many functions of&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Integrated Peripherals API ,So yes I believe it's possible&amp;nbsp;&lt;BR /&gt; It's more of a general API that can work with all stacks unless something else is mentioned in a particular part in the stack user guide.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;If you're using an application note you'll notice that "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;u32AHI_Init" maybe is already called so make sure you don't call it twice.&lt;BR /&gt;I hope this helps&amp;nbsp;&lt;BR /&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 15:18:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694445#M3394</guid>
      <dc:creator>davidashraf</dc:creator>
      <dc:date>2017-09-28T15:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: ZigBee 3.0 JN516x Interrupt handling</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694446#M3395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot to mention I am using the JN-AN-1229.&lt;/P&gt;&lt;P&gt;My problem is the lack of mention of interrupt handling in the stack user guide. Whereas when using JN-AN-1184, the documentation specifically mentions the application of&amp;nbsp; u32AHI_Init when using JenOS. As you can see, u32AHI_Init is not called for the JN516x when using ZigBee 3.0. The TARGET_INITIALISE() function is, to my untrained eyes, what appears to be a lot of vector macros which I do not understand. Hence the request for documentation on irq_JN516x.S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Are you using the irq_JN516x.S file?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If not, what does the code below look like for you?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC void APP_vSetUpHardware(void)&lt;BR /&gt;{&lt;BR /&gt;#if (JENNIC_CHIP_FAMILY == JN517x)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; u32AHI_Init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vAHI_InterruptSetPriority(MICRO_ISR_MASK_BBC,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_INT_PRIO_LEVEL_BBC );&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TARGET_INITIALISE();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear interrupt priority level&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET_IPL(0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; portENABLE_INTERRUPTS();&lt;BR /&gt;// &amp;nbsp;&amp;nbsp; vAHI_BrownOutConfigure(E_AHI_VBOREF_3V0, FALSE, TRUE, FALSE, TRUE);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; vAHI_SysCtrlRegisterCallback( APP_isrSysCon );&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; vAHI_InterruptSetPriority( MICRO_ISR_MASK_SYSCTRL, 4);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; u32AHI_Init();&lt;BR /&gt;#endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 16:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694446#M3395</guid>
      <dc:creator>epbelan</dc:creator>
      <dc:date>2017-09-28T16:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: ZigBee 3.0 JN516x Interrupt handling</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694447#M3396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/epbelan"&gt;epbelan&lt;/A&gt;‌&amp;nbsp;&lt;BR /&gt;I am using AN1229 too&amp;nbsp;&lt;BR /&gt;I am guessing "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;TARGET_INITIALISE();" function includes calling u32AHI_Init(); or it's an alternative function to it.&lt;BR /&gt;So you shouldn't call u32AHI_Init() again before using any function from Integrated peripheral API&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You'll find Interrupt handling functions&amp;nbsp; in&amp;nbsp;&lt;SPAN&gt;Integrated peripheral API guide according to the peripheral you're using&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;I already used PWM , ADC , I/O and other peripherals successfully&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 16:35:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694447#M3396</guid>
      <dc:creator>davidashraf</dc:creator>
      <dc:date>2017-09-28T16:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: ZigBee 3.0 JN516x Interrupt handling</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694448#M3397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you registering your callbacks before "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;TARGET_INITIALISE()"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Are your callbacks listed in irq_JN516x.S?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 16:47:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/ZigBee-3-0-JN516x-Interrupt-handling/m-p/694448#M3397</guid>
      <dc:creator>epbelan</dc:creator>
      <dc:date>2017-09-28T16:47:07Z</dc:date>
    </item>
  </channel>
</rss>

