<?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のトピックHow to program the Meshbee, or any JN516x based zigbee</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/How-to-program-the-Meshbee-or-any-JN516x-based-zigbee/m-p/773206#M4735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've searched the Internets high and low and I couldn't find clear info on how to make the programmer for the JN516x based boards, in particular the Meshbee. Using my scope and a lot of trial and error I finally did get it so I thought I would share my notes here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;Programmer communicates on UART0 which is not part of the Xbee breakout I had, so you need an actual UartsBee v5, or use a FTDI cable and make your own by wiring GND, RX0, TX0, CBUS2, and CBUS3. The default UART1 channel didnt respond for me like some others suggested.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Meshbee /RST is connected to FT232RL CBUS2 aka C2 (pin 13)&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;This line will go low for 200ms&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Meshbee SPIMISO is connected to FT232RL CBUS3 aka C3 (pin 14)&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;This line will go low for 400ms on reset, with the leading edges of RST and SPIMISO coinciding&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I would also suggest adding pull-up resistors to RST and SPIMISO line. It seemed to work without them but voltages were weak.&lt;/LI&gt;&lt;LI&gt;Wire RX0, TX0 on Meshbee to TX0 and RX0, respectively, on FT232 breakout. (RX/TX crossed)&lt;/LI&gt;&lt;LI&gt;My FT232 breakout powers the Meshbee, so I connected 5V on FT232 to 5V on the Meshbee.&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;WARNING!&lt;/SPAN&gt; I connected 5v to Meshbee's voltage regulator, not directly to JN516x! JN516x is 3.3v only so make sure you &lt;STRONG&gt;don't&lt;/STRONG&gt; connect 5v to any pin on that chip or to the 3.3v rail on the Meshbee.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Must use the FTDI Uart Configuration Tool (FT_Prog) to set the C2 and C3 pins to IO pins&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;Run FT_Prog&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Hit Magnifying glass to detect FT devices (or Devices | Scan and Parse)&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Expand FT EEPROM | Hardware Specific | IO Controls&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Set C2 and C3 properties to I/O MODE&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;By default they are set to C2=TXDEN, C3=PWREN#&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Hit Lightning icon on toolbar (or Devices | Program) to store config to the FT device&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;You're all set! If it doesnt work, ensure the TX/RX lines are crossed properly.&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;Flash Programmer&lt;/H2&gt;&lt;P&gt;To test your programmer load the NXP prrogrammer and select the COM port for the FT232 breakout. The "Connect" chechkbox should be checked.&amp;nbsp;The programmer should populate the Device area information below. For example, mine says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Device: JN5168, BL 0x00080006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the MAC Address at the bottom should be non-zero. If you dont get this result then your programmer cable isn't working yet. You can fiddle and check the steps above&amp;nbsp;and hit Refresh on the MAC to retry the cable until it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Timing Diagram&lt;/STRONG&gt;&lt;/H2&gt;&lt;DIV&gt;It might help to understand how the reset sequence of the programmer puts the bootloader into program mode. The programmer software uses the FT232 driver to send active-low pulses to the RST and SPIMISO pins. The bootloader software on RESET immediately checks the SPIMISO pin, if it is low it enters programming mode - otherwise it runs the user code in memory.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;RST&amp;nbsp; &amp;nbsp; &amp;nbsp; ¯¯¯¯\___200ms__/¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;SPIMISO&amp;nbsp; ¯¯¯¯\___400ms____________/¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I hope this tutorial helps someone out there not go through the trials I did. :smileyhappy:&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2018 12:35:14 GMT</pubDate>
    <dc:creator>guru_florida</dc:creator>
    <dc:date>2018-04-27T12:35:14Z</dc:date>
    <item>
      <title>How to program the Meshbee, or any JN516x based zigbee</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-to-program-the-Meshbee-or-any-JN516x-based-zigbee/m-p/773206#M4735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've searched the Internets high and low and I couldn't find clear info on how to make the programmer for the JN516x based boards, in particular the Meshbee. Using my scope and a lot of trial and error I finally did get it so I thought I would share my notes here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;Programmer communicates on UART0 which is not part of the Xbee breakout I had, so you need an actual UartsBee v5, or use a FTDI cable and make your own by wiring GND, RX0, TX0, CBUS2, and CBUS3. The default UART1 channel didnt respond for me like some others suggested.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Meshbee /RST is connected to FT232RL CBUS2 aka C2 (pin 13)&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;This line will go low for 200ms&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Meshbee SPIMISO is connected to FT232RL CBUS3 aka C3 (pin 14)&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;This line will go low for 400ms on reset, with the leading edges of RST and SPIMISO coinciding&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I would also suggest adding pull-up resistors to RST and SPIMISO line. It seemed to work without them but voltages were weak.&lt;/LI&gt;&lt;LI&gt;Wire RX0, TX0 on Meshbee to TX0 and RX0, respectively, on FT232 breakout. (RX/TX crossed)&lt;/LI&gt;&lt;LI&gt;My FT232 breakout powers the Meshbee, so I connected 5V on FT232 to 5V on the Meshbee.&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;WARNING!&lt;/SPAN&gt; I connected 5v to Meshbee's voltage regulator, not directly to JN516x! JN516x is 3.3v only so make sure you &lt;STRONG&gt;don't&lt;/STRONG&gt; connect 5v to any pin on that chip or to the 3.3v rail on the Meshbee.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Must use the FTDI Uart Configuration Tool (FT_Prog) to set the C2 and C3 pins to IO pins&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;Run FT_Prog&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Hit Magnifying glass to detect FT devices (or Devices | Scan and Parse)&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Expand FT EEPROM | Hardware Specific | IO Controls&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Set C2 and C3 properties to I/O MODE&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;By default they are set to C2=TXDEN, C3=PWREN#&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Hit Lightning icon on toolbar (or Devices | Program) to store config to the FT device&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;You're all set! If it doesnt work, ensure the TX/RX lines are crossed properly.&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;Flash Programmer&lt;/H2&gt;&lt;P&gt;To test your programmer load the NXP prrogrammer and select the COM port for the FT232 breakout. The "Connect" chechkbox should be checked.&amp;nbsp;The programmer should populate the Device area information below. For example, mine says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Device: JN5168, BL 0x00080006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the MAC Address at the bottom should be non-zero. If you dont get this result then your programmer cable isn't working yet. You can fiddle and check the steps above&amp;nbsp;and hit Refresh on the MAC to retry the cable until it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Timing Diagram&lt;/STRONG&gt;&lt;/H2&gt;&lt;DIV&gt;It might help to understand how the reset sequence of the programmer puts the bootloader into program mode. The programmer software uses the FT232 driver to send active-low pulses to the RST and SPIMISO pins. The bootloader software on RESET immediately checks the SPIMISO pin, if it is low it enters programming mode - otherwise it runs the user code in memory.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;RST&amp;nbsp; &amp;nbsp; &amp;nbsp; ¯¯¯¯\___200ms__/¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;SPIMISO&amp;nbsp; ¯¯¯¯\___400ms____________/¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I hope this tutorial helps someone out there not go through the trials I did. :smileyhappy:&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 12:35:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-to-program-the-Meshbee-or-any-JN516x-based-zigbee/m-p/773206#M4735</guid>
      <dc:creator>guru_florida</dc:creator>
      <dc:date>2018-04-27T12:35:14Z</dc:date>
    </item>
  </channel>
</rss>

