<?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: JN-AN-1218 build problems in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873163#M6159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it has something do with that the interupt system. But I cant find any information on how the irq_JN516x.S works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the assembly lines you changed where:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#.byte 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # system controller priority&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#.extern vISR_SystemController&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#.word vISR_SystemController&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 15&lt;BR /&gt;&amp;nbsp; .word vUnclaimedInterrupt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 15&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now that the Interrupt controller has 16 priorities, so would be commeting out the first line not invalidate the list as it now only 15 items long?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#.byte 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # system controller priority&lt;/P&gt;&lt;P&gt;.byte 0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that gave me the following output:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Set a random pan&lt;BR /&gt;BDB: Disc on Ch 11 from 0x02108800&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 15 from 0x02108800&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: vNsTryNwkJoin - index 0 of 0 Nwks&lt;BR /&gt;BDB: No suitable network! Continue Discovery&lt;BR /&gt;BDB: Disc on Ch 20 from 0x02108800&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 25 from 0x02108800&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 12 from 0x05ef7000&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 13 from 0x05ef7000&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 14 from 0x05ef7000&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;&lt;BR /&gt;!!! Bus error&lt;BR /&gt;u32PICMR = 0 : u32PICSR = 8008&lt;BR /&gt;u32PICMSR = 0 : u32IPMR = 0&lt;BR /&gt;u32IHPR = c : u32AINT = 8008 u32PINT 0&lt;BR /&gt;EPCR = bb5b0 : EEAR = 2001f00&lt;BR /&gt;Stack dump:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you can see the network scan is preformed as expected but the bus error is back again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this lets me to believe that the stack/application is all running properly but the processor is somewhere stuck on an interrupt.&lt;/P&gt;&lt;P&gt;I have no clue if that assumption correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But maybe this helps investigate the issue further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2019 10:56:24 GMT</pubDate>
    <dc:creator>youpko</dc:creator>
    <dc:date>2019-04-11T10:56:24Z</dc:date>
    <item>
      <title>JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873134#M6130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I success fully compiled the JN-AN-1218 with the following configuration&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;make LIGHT=DimmableLight JENNIC_CHIP_FAMILY=JN516x JENNIC_CHIP=JN5168 DR=DR1175 TRACE=1 GP_SUPPORT=0 GP_DEVICE=COMBO_BASIC OTA=0 TOUCHLINK=1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to implement my own DriverBulb interface, so i started with the DriverBulb_JN516X.c as a reference. Tried compiling that with:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;make LIGHT=DimmableLight JENNIC_CHIP_FAMILY=JN516x JENNIC_CHIP=JN5168 DR=JN516X TRACE=1 GP_SUPPORT=0 GP_DEVICE=COMBO_BASIC OTA=0 TOUCHLINK=1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But that wont compile The linker gives an error:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;../../DimmableLight/Build/irq_JN516x.o:(.text+0x4c): undefined reference to `vISR_SystemController'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But as far as I can tell the DriverBulb_JN516X.c has no correlation with "vISR_SystemController"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So commened out the folowing lines in "irq_JN516x.s" and left everyting else as how it was.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;.globl&amp;nbsp; PIC_SwVectTable&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #.extern vISR_SystemController&lt;BR /&gt;PIC_SwVectTable:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #.word vISR_SystemController&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 15&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compiled it with the same command as above. and that completes without any errors.&lt;/P&gt;&lt;P&gt;So the next step was to program the "DimmableLight_JN5168_JN516X.bin" into the JN5168-001-M00 module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i get the following in the serial output.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;***********************************************&lt;BR /&gt;* LIGHT NODE RESET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;***********************************************&lt;BR /&gt;APP: Entering APP_vInitResources()&lt;BR /&gt;APP: Initialising resources...&lt;BR /&gt;APP_vInitialiseNode&lt;BR /&gt;eStatusReportReload = 0&lt;BR /&gt;&lt;BR /&gt;Zll recovered state 00&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;eCLD_ScenesCreateScenes: eCLD_ScenesCountScenes() u8SceneCount = 1MAKE Reportable ep 1&lt;BR /&gt;Cluster 0006 Attribute 0000 Min 1 Max 61 IntV 0 Direct 0 Change 0&lt;BR /&gt;Cluster 0008 Attribute 0000 Min 1 Max 61 IntV 0 Direct 0 Change 10&lt;BR /&gt;&lt;BR /&gt;Set a random pan&lt;BR /&gt;&lt;BR /&gt;Factory new start up&lt;BR /&gt;PDM: Capacity 29&lt;BR /&gt;PDM: Occupancy 34&lt;BR /&gt;APP: Entering BDB_vStart()&lt;BR /&gt;BDB: Disc on Ch 11 from 0x02108800&lt;BR /&gt;APP: Entering APP_vMainLoop()&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 15 from 0x02108800&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: vNsTryNwkJoin - index 0 of 0 Nwks&lt;BR /&gt;BDB: No suitable network! Continue Discovery&lt;BR /&gt;BDB: Disc on Ch 20 from 0x02108800&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 25 from 0x02108800&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 12 from 0x05ef7000&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 13 from 0x05ef7000&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;BDB: APP_vGenCallback [0 10]&lt;BR /&gt;BDB: Disc on Ch 14 from 0x05ef7000&lt;BR /&gt;BDB: ZCL Event 6&lt;BR /&gt;&lt;BR /&gt;!!! Bus error&lt;BR /&gt;u32PICMR = 0 : u32PICSR = 8008&lt;BR /&gt;u32PICMSR = 0 : u32IPMR = 0&lt;BR /&gt;u32IHPR = c : u32AINT = 8008 u32PINT 0&lt;BR /&gt;EPCR = ad444 : EEAR = 2001f00&lt;BR /&gt;Stack dump:&lt;BR /&gt;&amp;nbsp;4007f58 : 00000002&lt;BR /&gt;&amp;nbsp;4007f5c : 00083237&lt;BR /&gt;&amp;nbsp;4007f60 : 00000006&lt;BR /&gt;&amp;nbsp;4007f64 : 000ad444&lt;BR /&gt;&amp;nbsp;4007f68 : 02001f00&lt;BR /&gt;&amp;nbsp;4007f6c : 00000000&lt;BR /&gt;&amp;nbsp;4007f70 : 0000000c&lt;BR /&gt;&amp;nbsp;4007f74 : 00000000&lt;BR /&gt;&amp;nbsp;4007f78 : 00008008&lt;BR /&gt;&amp;nbsp;4007f7c : 00000000&lt;BR /&gt;&amp;nbsp;4007f80 : 00000000&lt;BR /&gt;&amp;nbsp;4007f84 : 00008008&lt;BR /&gt;&amp;nbsp;4007f88 : 0000005a&lt;BR /&gt;&amp;nbsp;4007f8c : 000832a2&lt;BR /&gt;&amp;nbsp;4007f90 : 00000006&lt;BR /&gt;&amp;nbsp;4007f94 : 0008488a&lt;BR /&gt;&amp;nbsp;4007f98 : 00000002&lt;BR /&gt;&amp;nbsp;4007f9c : 00084589&lt;BR /&gt;&amp;nbsp;4007fa0 : 00000000&lt;BR /&gt;&amp;nbsp;4007fa4 : 00000000&lt;BR /&gt;&amp;nbsp;4007fa8 : 00000000&lt;BR /&gt;&amp;nbsp;4007fac : 00000000&lt;BR /&gt;&amp;nbsp;4007fb0 : 00000000&lt;BR /&gt;&amp;nbsp;4007fb4 : 00000000&lt;BR /&gt;&amp;nbsp;4007fb8 : 00000000&lt;BR /&gt;&amp;nbsp;4007fbc : 00000000&lt;BR /&gt;&amp;nbsp;4007fc0 : 00000000&lt;BR /&gt;&amp;nbsp;4007fc4 : 00000000&lt;BR /&gt;&amp;nbsp;4007fc8 : 00000000&lt;BR /&gt;&amp;nbsp;4007fcc : 00000000&lt;BR /&gt;&amp;nbsp;4007fd0 : 00000000&lt;BR /&gt;&amp;nbsp;4007fd4 : 000854ce&lt;BR /&gt;&amp;nbsp;4007fd8 : 00000000&lt;BR /&gt;&amp;nbsp;4007fdc : 00000003&lt;BR /&gt;&amp;nbsp;4007fe0 : 00000002&lt;BR /&gt;&amp;nbsp;4007fe4 : 00083387&lt;BR /&gt;&amp;nbsp;4007fe8 : 00000002&lt;BR /&gt;&amp;nbsp;4007fec : 00000a5b&lt;BR /&gt;&amp;nbsp;4007ff0 : 00000000&lt;BR /&gt;&amp;nbsp;4007ff4 : 00000000&lt;BR /&gt;&amp;nbsp;4007ff8 : 00091d35&lt;BR /&gt;&amp;nbsp;4007ffc : 76543210&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that stack dump clearly indicates that commeting out those lines was not the correct way to fix this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to just stub out "vISR_SystemController" in the source file. (just implement the function but with no code in the body)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that still gives the !!! Bus error stack dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I proceed to adapt the example code to my application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 19:27:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873134#M6130</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-06T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873135#M6131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;vISR_SystemController is supporting all the button Initialise.&lt;/P&gt;&lt;P&gt;Are you taking as reference the driver bulb, what do you want to add or change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 01:30:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873135#M6131</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-08T01:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873136#M6132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The app_buttons.c/h are not used when not building a one of the demo boards examples (OM15045,OM15053,DR1175,DR1173 according to the makefile) so why does it try to link against the vISR_SystemController when trying to build the JN516X example?&lt;/P&gt;&lt;P&gt;And the only referense to vISR_SystemController (with the BeyondStudio search) is in APP_vSetUpHardware (app_main.c) but that is only enabled when using an JN517x and i use the JN5168 family.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a first step i want to make a DriverBulb implementation that sets 5 pwm outputs of my JN5168 module.&lt;/P&gt;&lt;P&gt;My second step is to implement 5 endpoints that each set one of the 5 pwm channels. So one JN5168 module that registers as 5 individual dimmable lamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The demo boards have a lot more functionality than what is nescesary for my project. So am trying to figure out how i can remove the demo board code and replace it with my own needs.&lt;/P&gt;&lt;P&gt;As a start my idea is to write my own DriverBulp implementation that fits my PCB layout. And my way to do that was to use the most basic example JN516X because the other ones are for the demo boards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as stated in my orignal it seems to crash at run time, and i don't now how to decode the stack dump and figure out what goes wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 11:09:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873136#M6132</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-08T11:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873137#M6133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;It is possible, but you must do some other changes in the code. For example.&lt;/P&gt;&lt;P&gt;Some c files are using the buttons defines, in the make file you must comment or not define&amp;nbsp;APPSRC += app_buttons.c.&lt;/P&gt;&lt;P&gt;Also, it will depend on the DR expansion board that is defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not comment on the&amp;nbsp;irq_JN516x.s lines, you need to be sure that every DIO input function or trigger is not been triggered.&amp;nbsp; vISR_Systemcontroller has the lowest priority. If this interrupt is triggered you could debug and find out what is the module that is activating the callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 18:49:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873137#M6133</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-08T18:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873138#M6134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I specified DR=JN516X to the makefile, wich in turns disables any&amp;nbsp; "APPSRC += app_buttons.c"&lt;/P&gt;&lt;P&gt;And does DR=JN516X means that i dont want to use any expansion board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over the weekend I tried to enable and disable serveral things but the outcome is always the same Bus Error. (unless I build with DR=DR1175)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you recommend me a way how to debug this?&lt;/P&gt;&lt;P&gt;And where can i find what that Bus Error means?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:25:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873138#M6134</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-11T11:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873139#M6135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(unless I build with DR=DR1175) check the DIO set up, because the DR has some sensor and led&amp;nbsp;that is set up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Can you recommend me a way how to debug this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Step by step, what are the changes that are you doing? However, I recommend&amp;nbsp;looking at the JN-AN-1229 that is a ZPS Application template, you should add the files that you only need and the endpoint that you want.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;However, if you do not want an empty example the JN-AN-1217 could be another option for you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Mario&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2019 17:35:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873139#M6135</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-11T17:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873140#M6136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The things I tried where setting the DR=JN516X and DR=WS2812. only change i made was in the makefile setting all the debug output on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the JN-AN-1218 (DR= JN516X / WS2812) without any changes on my part won't even compile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For DR=JN516X i can implement the vISR_Systemcontroller my self (just like on of the examples) and just leave it empty.&lt;/P&gt;&lt;P&gt;And then it compiles but I get a Bus Error on runtime. But I can't find the code for the DR1175 board setup, so my guess is that the AN is expecting a variable setup but which is not, because i compiled with JN516X.&lt;BR /&gt;&lt;BR /&gt;So i have not found what is going on yet. but is there maybe a manual on how to write you own board implementation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 13:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873140#M6136</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-18T13:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873141#M6137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean with&amp;nbsp;because I compiled with JN516X.?&lt;/P&gt;&lt;P&gt;Did you look at the Driver Bulb folder inside the CommonLight/Source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Build command, you should have the next command&lt;/P&gt;&lt;P&gt;make LIGHT=DimmableLight JENNIC_CHIP_FAMILY=JN516x JENNIC_CHIP=JN5169 GP_SUPPORT=1 DR=DR1175 GP_DEVICE=PROXY_BASIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/JN-UG-3098.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;3. Developing an Application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 17:55:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873141#M6137</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-19T17:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873142#M6138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compile the DriverBulb\DriverBulb_JN516X.c because that is the closed for what i need. And after reading through the makefile I figured out that if in the make command i put DR=JN516X then that file will be used to build the app.&lt;/P&gt;&lt;P&gt;But because that doesn't&amp;nbsp; I work i also tried to build with DriverBulb_WS2812.c (makefile command: DR=WS2812) but that had many compile errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am still struggling getting the example working.&lt;/P&gt;&lt;P&gt;But i want to thank you Mario for always helping me further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On an other note can you also check this &lt;A href="https://community.nxp.com/thread/498118"&gt;https://community.nxp.com/thread/498118&lt;/A&gt; question I asked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 12:24:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873142#M6138</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-20T12:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873143#M6139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create your c file a take as reference the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;DriverBulb_JN516X.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/JN-UG-3098.pdf"&gt;2.3 Adding a New Source File&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 17:56:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873143#M6139</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-20T17:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873144#M6140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Tried to make my own DriverBulb_custom.c file (with DriverBulb_JN516X.c as reference) the but that has the same problem as the DriverBulb_JN516X.c I can get it to compile but than when I run it on the JN5168 Module it works for a second or two and then gives a Bus Error an the watchdog resets the chip (and this just keeps looping)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried with my custom file just only empty function no actually PWM is set for example but even that doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 11:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873144#M6140</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-21T11:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873145#M6141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;It is possible that you can share your code that you modify step by step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, are you working with PWM interrupt? What is the PWM that you are working on and also the DIO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 18:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873145#M6141</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-21T18:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873146#M6142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not used PWM actually just trying to get the provided examples to work. the only thing i tried is to copy an example and just remove the code but leave all the function so the compiling works but no actually code is run. I tried that because the example doesn't work on its own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting the correct PWM/IO working is the next step when I have figured out how to do it properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 18:28:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873146#M6142</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-21T18:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873147#M6143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry for my misunderstanding.&lt;/P&gt;&lt;P&gt;For example, You want to add a new_custom.c file and set a DIO pin for example, and verify that this work without the bus error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only thing I tried is to copy an example and just remove the code but leave all the function so the compiling works but no actual code is run.&lt;/P&gt;&lt;P&gt;Remember&amp;nbsp;some set up(Makefile and irq_JN516x.S ) a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 17:20:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873147#M6143</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-25T17:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873148#M6144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No problem English is not my main language so I don't expect my messages are put together all that well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes that is what i want to achieve. But even without creating a custom driverbulb implementation and just using the provided DriverBulb_JN156X.c example I just cant get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My process:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;download the JN-AN-1218&lt;/LI&gt;&lt;LI&gt;Import it in to BeyondStudio&lt;/LI&gt;&lt;LI&gt;Edit Makefile&lt;UL&gt;&lt;LI&gt;JENNIC_CHIP=JN5168&lt;/LI&gt;&lt;LI&gt;DR=JN516X&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Compile Error: DimmableLight/Build/irq_JN516x.o:(.text+0x4c): undefined reference to `vISR_SystemController&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking through the other DriverBulb examples if found that some just define the function but with no actual code.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Implement the vISR_SystemController() {}&lt;/LI&gt;&lt;LI&gt;Compile Succes&lt;/LI&gt;&lt;LI&gt;Program the JN5168 module&lt;/LI&gt;&lt;LI&gt;Run: Bus Error&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I aslo tried:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;download the JN-AN-1218&lt;/LI&gt;&lt;LI&gt;Import it in to BeyondStudio&lt;/LI&gt;&lt;LI&gt;Edit Makefile&lt;UL&gt;&lt;LI&gt;JENNIC_CHIP=JN5168&lt;/LI&gt;&lt;LI&gt;DR=WS2812&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Compile Error: gave a hole list of compile errors. but did not further&amp;nbsp; investigate that because I have no plans on using WS2812 LEDs&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 11:16:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873148#M6144</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-26T11:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873149#M6145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you define DR=JN516x?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DR is referring&amp;nbsp;to the expansion board that you are working on. For example DR1175&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;DR &lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; DR1175
ifeq &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;DR&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; DR1175&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
CFLAGS  &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;DBUTTON_MAP_DR1175
endif&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It will enable the DIO that the DR is using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please look at the&amp;nbsp;&lt;A href="https://www.nxp.com/products/wireless/proprietary-ieee-802.15.4-based/support-resources-for-jn516x-mcus:SUPPORT-RESOURCES-JN516X-MCUS?lang=en&amp;amp;lang_cd=en&amp;amp;" rel="nofollow noopener noreferrer" target="_blank"&gt;JN-RD-6038&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #252526; background-color: #f8f8f9; font-size: 14px;"&gt;Describes low-cost designs for modules based around the JN516x wireless microcontrollers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #252526; background-color: #f8f8f9; font-size: 14px;"&gt;Also, if you do not define the DR, the JN could enter in a bus error state, or you won't see the PWM output, in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #252526; background-color: #f8f8f9; font-size: 14px;"&gt;Please look at the&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/480152" rel="nofollow noopener noreferrer" target="_blank"&gt;https://community.nxp.com/thread/480152&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #252526; background-color: #f8f8f9; font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #252526; background-color: #f8f8f9; font-size: 14px;"&gt;Mario&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 17:43:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873149#M6145</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-26T17:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873150#M6146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After going trough the JN-AN-1218 it seemed that defining DR=JN516x was the way to build the DriverBulb_JN516x.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because changing the DR define you can select different Evaluation Kits so I assumed that setting DR=JN516X in there it would build the image for a bare JN5168/JN5169 module.&lt;/P&gt;&lt;P&gt;I guess I assumed wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read through JN-RD-6038 but that described how to make your own modules based on the JN516x chips, but that is not for my application as I using the &lt;A href="https://www.nxp.com/products/wireless/proprietary-ieee-802.15.4-based/zigbee-pro-and-ieee802.15.4-module:JN5168-001-M00"&gt;JN5168-001-M00&lt;/A&gt; module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also read though the thread you linked. I did what you described there to make my configuration for the JN5168.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 12:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873150#M6146</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-27T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873151#M6147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Chip Family is the one that is defining the JN516x ports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ifeq ($(JENNIC_CHIP_FAMILY), JN516x)&lt;BR /&gt;APPSRC += irq_JN516x.S&lt;BR /&gt;APPSRC += portasm_JN516x.S&lt;BR /&gt;APPSRC += port_JN516x.c&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 22:03:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873151#M6147</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-28T22:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873152#M6148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in the compile log that those files are indeed used.&lt;BR /&gt;But those files needs to be compiled regardless of if you want to build the DR=1175 or the DriverBulb_JN516x.c&lt;/P&gt;&lt;P&gt;As they are the code to setup the chip and configure the interrupts right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I still haven't figured out how to build just the DriverBulb_JN516x.c and not the demo board DR1175 example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because if you don't specify the DR in the make command than it defaults to DR1175. &lt;BR /&gt;That is why I thought to do "make ... DR=JN516x ..." because than the make file will skip all the DR1175 related code and compiles the DriverBulb_JN516x.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that gives the bus error when you run it on the JN5168 module.&lt;/P&gt;&lt;P&gt;So my problem has to be one of the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;So my method to building the DriverBulb_JN516x.c is wrong&lt;/LI&gt;&lt;LI&gt;I forgot to implement something,&lt;/LI&gt;&lt;LI&gt;Maybe the DriverBulb_JN516x.c is not complete.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to compile the DriverBulb_JN516x.c example because that setups a PWM output, and that is nice an easy entry point to write my own implementation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Mar 2019 11:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873152#M6148</guid>
      <dc:creator>youpko</dc:creator>
      <dc:date>2019-03-31T11:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: JN-AN-1218 build problems</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873153#M6149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had been running some test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could compile with the DriverBulb_JN516X.c&lt;/P&gt;&lt;P&gt;Please see the steps below.&lt;/P&gt;&lt;P&gt;Set the JN516X in the build properties&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/72987iB59FEF19CC1F7650/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Makefile&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#DR = DR1175&lt;/SPAN&gt;
DR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; JN516X&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file DriverBulb_JN516X.c&lt;/P&gt;&lt;P&gt;Comment the next line, because you do not have a config.h file or you can add the configurations that you need and add the&amp;nbsp;next code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Application includes */&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//#include "Config.h"‍‍&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
 &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;
PUBLIC &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DriverBulb_vOn&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Lamp is not on ? */&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;bIsOn &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; TRUE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Note light is on */&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;//bIsOn = TRUE;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;DriverBulb_vSetOnOff&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TRUE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Set outputs */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;DriverBulb_vOutput&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
PUBLIC &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DriverBulb_vSetOnOff&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;bool_t bOn&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 bIsOn &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;  bOn&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;DBG_vPrintf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TRUE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\nS:%s"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;bOn &lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ON"&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OFF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open the irq_JN516x.S file and comment the system controller defines.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;PIC_ChannelPriorities&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   
    #&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;byte &lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;                # system controller priority
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;globl  PIC_SwVectTable
    #&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;extern&lt;/SPAN&gt; vISR_SystemController
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
PIC_SwVectTable&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;word vUnclaimedInterrupt               # &lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;
    #&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;word vISR_SystemController             # &lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran by my side and it works. it does not enter the bus error.&lt;/P&gt;&lt;P&gt;Please let me know your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:18:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN-AN-1218-build-problems/m-p/873153#M6149</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2020-11-02T14:18:29Z</dc:date>
    </item>
  </channel>
</rss>

