<?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: LPC1857 as a JTAG host (not slave) in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527002#M9310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Tue Sep 09 05:05:39 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If the device is a microcontroller that has SWD interface or CMSIS-DAP, it might be easier to use one of those protocols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Otherwise, I agree with bavarian; it might be worth it to take a look at OpenOCD and extract the functionality you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I once came across a good site explaining it, but unfortunately I forgot the URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However &lt;/SPAN&gt;&lt;A href="http://http://blog.akkit.org/2010/07/11/jtag/"&gt;this site&lt;/A&gt;&lt;SPAN&gt; might be better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also &lt;/SPAN&gt;&lt;A href="http://http://embecosm.com/packages/esp3/embecosm-esp3-or32-gdb-6.8-doxygen-html-2.0/or1k-jtag_8c.html"&gt;this source code&lt;/A&gt;&lt;SPAN&gt; looks interesting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...You probably have a logic analyzer, which will be essential for writing such firmware; if not, I recommend getting one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:14:18 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:14:18Z</dc:date>
    <item>
      <title>LPC1857 as a JTAG host (not slave)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527000#M9308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by smalouin on Fri Sep 05 12:54:57 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we want to use out lpc1837 to flash a cpld device on the same board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody as some code to act as a JTAG controller?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527000#M9308</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 as a JTAG host (not slave)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527001#M9309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Tue Sep 09 02:27:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;How did you manage to get a 5-star rating for only this question&amp;nbsp;&amp;nbsp; 8-) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course the JTAG port of the LPC1837 cannot work as a host. The debug block coming along with the ARM core IP does not foresee that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if you open Keil ULINK or SEGGER jlink devices you will see an LPC microcontroller doing the USB-2-JTAG conversion. The JTAG port is done with GPIO bit banging or a combination of SPI and GPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The know how for the JTAG port handling is with Keil and Segger and the other debugger manufacturers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to dig into this topic then maybe OpenOCD is the project you could look at. OpenOCD is of course a big beast, maybe there are some other projects around for especially CPLD or FPGA devices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend to look for simple programs deling exactly with the CPLD you use, maybe the manufacturer website provides an example which you can port to the LPC1837.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:14:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527001#M9309</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 as a JTAG host (not slave)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527002#M9310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Tue Sep 09 05:05:39 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If the device is a microcontroller that has SWD interface or CMSIS-DAP, it might be easier to use one of those protocols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Otherwise, I agree with bavarian; it might be worth it to take a look at OpenOCD and extract the functionality you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I once came across a good site explaining it, but unfortunately I forgot the URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However &lt;/SPAN&gt;&lt;A href="http://http://blog.akkit.org/2010/07/11/jtag/"&gt;this site&lt;/A&gt;&lt;SPAN&gt; might be better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also &lt;/SPAN&gt;&lt;A href="http://http://embecosm.com/packages/esp3/embecosm-esp3-or32-gdb-6.8-doxygen-html-2.0/or1k-jtag_8c.html"&gt;this source code&lt;/A&gt;&lt;SPAN&gt; looks interesting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...You probably have a logic analyzer, which will be essential for writing such firmware; if not, I recommend getting one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527002#M9310</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 as a JTAG host (not slave)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527003#M9311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Wed Sep 10 04:28:13 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a bunch of links I found:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://dangerousprototypes.com/docs/Bus_Pirate_JTAG_XSVF_player"&gt;http://dangerousprototypes.com/docs/Bus_Pirate_JTAG_XSVF_player&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://openschemes.com/2011/10/25/bit-bang-jtag-programming-of-xilinx-cpld-using-ft232-homebrew-svf-player/"&gt;http://openschemes.com/2011/10/25/bit-bang-jtag-programming-of-xilinx-cpld-using-ft232-homebrew-svf-player/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.xilinx.com/support/documentation/application_notes/xapp058.pdf"&gt;http://www.xilinx.com/support/documentation/application_notes/xapp058.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527003#M9311</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 as a JTAG host (not slave)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527004#M9312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Wed Sep 10 04:32:19 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;@bavarian: These are absolutely &lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;very&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt; useful resources. Thank you for posting them. :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:14:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527004#M9312</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 as a JTAG host (not slave)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527005#M9313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Sun Sep 21 09:50:34 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We are programming an Actel (now Microsemi) device (A3P250) from an LPC1778, but the principle is exactly the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will need to bit-bang some port pins (4 -- or optionally 5 -- in number), just make sure that you have the proper pull ups etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the Microsemi site search for "DirectC" and download the source zip. [NB: they make you register!]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a few "C" files that you have to edit -- (to set set your chosen pins high and low and a delay function), but the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JTAG bit banging is done for you via other supplied "C" files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Direct C is a bit specific to the Actel parts, so [as a complete alternative] you may prefer their STAPL player source code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which then takes an (FPGA) industry standard (JEDEC) stapl file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I cannot share code as I work for a company and it is LPC1778 specific anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH, Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:14:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-as-a-JTAG-host-not-slave/m-p/527005#M9313</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:14:19Z</dc:date>
    </item>
  </channel>
</rss>

