<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.ethernut.de/nutwiki/index.php?action=history&amp;feed=atom&amp;title=Documents%2FNPL_Trouble</id>
		<title>Documents/NPL Trouble - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.ethernut.de/nutwiki/index.php?action=history&amp;feed=atom&amp;title=Documents%2FNPL_Trouble"/>
		<link rel="alternate" type="text/html" href="http://www.ethernut.de/nutwiki/index.php?title=Documents/NPL_Trouble&amp;action=history"/>
		<updated>2026-05-15T05:55:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://www.ethernut.de/nutwiki/index.php?title=Documents/NPL_Trouble&amp;diff=342&amp;oldid=prev</id>
		<title>Harald: Created page with &quot;&lt;div id=&quot;content&quot;&gt;  = NPL Tutorial - Trouble Recovery =  Previous Contents  Next == Is there still hope? ==  Sooner or...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.ethernut.de/nutwiki/index.php?title=Documents/NPL_Trouble&amp;diff=342&amp;oldid=prev"/>
				<updated>2017-07-13T07:45:19Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;div id=&amp;quot;content&amp;quot;&amp;gt;  = NPL Tutorial - Trouble Recovery =  &lt;a href=&quot;/nutwiki/index.php?title=Npl-exec-proj.html&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Npl-exec-proj.html (page does not exist)&quot;&gt;Previous&lt;/a&gt; &lt;a href=&quot;/nutwiki/index.php?title=Npl.html&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Npl.html (page does not exist)&quot;&gt;Contents&lt;/a&gt;  &lt;a href=&quot;/nutwiki/index.php?title=Npl-links.html&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Npl-links.html (page does not exist)&quot;&gt;Next&lt;/a&gt; == Is there still hope? ==  Sooner or...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div id=&amp;quot;content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= NPL Tutorial - Trouble Recovery =&lt;br /&gt;
&lt;br /&gt;
[[npl-exec-proj.html|Previous]] [[npl.html|Contents]]  [[npl-links.html|Next]]&lt;br /&gt;
== Is there still hope? ==&lt;br /&gt;
&lt;br /&gt;
Sooner or later you may end up with a misprogrammed CPLD. In the best case, the bootloader is still working and you can upload a corrected programming file. In the worst case you end up with a dead board, which you may not get back to live even with the method presented here.&lt;br /&gt;
&lt;br /&gt;
Now a JTAG programming adapter is the only remaining solution. The Turtelizer is the one shipped with Ethernut 3. It's slow and very limited, but it can upload a program image into the internal RAM of the CPU, where it is protected against all harm a weird CPLD may cause to the board. Fortunately, a CPLD can never be misprogrammed in a way that disables further reporgramming.&lt;br /&gt;
&lt;br /&gt;
Just one thing is left to be solved. When the JTAG jumpers on the Ethernut Board are set for JTAG programming of the CPU, then the uploaded XSVF Executor will fail with the wrong jumper setting. If we set the jumpers for CPLD programming by the CPU, we will not be able to upload the XSVF Executor. So we simple set the jumpers for both methods, which is possible and shown here.&lt;br /&gt;
&lt;br /&gt;
[[File:../../img/at91-xc95-emergency.png|Executor Emergency]]&lt;br /&gt;
Jumper your board, connect it to the Turtelizer Programming Adapter and connect the Turtelizer with an serial port of your desktop computer. If you got a second serial port, then start the terminal emulator as well and use it to display the [[rs232primer.html|Ethernut RS232]] output.&lt;br /&gt;
&lt;br /&gt;
On the Windows command line enter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;coding&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;$ jtagomat -aCOM1 -DDEVICE=0x1F0F0F0F -DIMAGE=c:/ethernut-4.1.1/nut/bin/arm7tdmi/xsvfexec.bin &lt;br /&gt;
    BATCH at91-upl.jom RAM&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
Your path to the xsvfexec.bin file might differ, but you need the specify the full path due to a bug in the JTAG-O-MAT. Now you can go to get some coffee. Uploading large programs into the CPU RAM with the Turtelizer really takes a lot of time.&lt;br /&gt;
If the upload succeeded and your terminal emulator is running, you should finally see the message&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;coding&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;199 OK&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
Further information about using the JTAG-O-MAT with Ethernut and the Turtelizer is available on the [[../hardware/enut3/jtag.html|Ethernut 3 JTAG Page]].&lt;br /&gt;
&lt;br /&gt;
== Yes, there is hope. ==&lt;br /&gt;
&lt;br /&gt;
What if even the method described above fails? Well, then you need some extra hardware, for which Xilinx published this [http://www.xilinx.com/support/programr/jtag_cable.pdf schematic].&lt;br /&gt;
&lt;br /&gt;
This adapter is for the parallel port and you will use iMPACT to program the CPLD directly. The required jumper setting is shown here:&lt;br /&gt;
&lt;br /&gt;
[[File:../../img/jtag-xc95.png|CPLD Jumpers]]&lt;br /&gt;
[[npl-exec-proj.html|Previous]] [[npl.html|Contents]]  [[npl-links.html|Next]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Harald</name></author>	</entry>

	</feed>