<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>coding &#187; ngw100</title>
	<atom:link href="http://www.coding.com.br/tag/ngw100/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coding.com.br</link>
	<description>have you coded today?</description>
	<lastBuildDate>Thu, 18 Aug 2011 17:29:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Welcome back NGW100!</title>
		<link>http://www.coding.com.br/embarcado/welcome-back-ngw100/</link>
		<comments>http://www.coding.com.br/embarcado/welcome-back-ngw100/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 14:08:19 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[atmel]]></category>
		<category><![CDATA[ngw100]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=738</guid>
		<description><![CDATA[A some time ago I&#8217;ve bricked my NGW100 board by overwritten the U-boot from flash. To fix it was necessary using a JTAG interface, so I check some alternatives.

AVR JTAGICE mkII (US$ 299) [official] http://atmel.com/dyn/products/tools_card.asp?tool_id=3353
AVR JTAG ICE mkii CN (US$ 99)  http://enshop.avrvi.com/avrjtagicemkiicn.html
AT AVR JTAGICE mkII clone (US$ 159) http://enshop.avrvi.com/jtagicemkiiclone.html

Considering that NGW100 itself costs about US$ [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">A some time ago I&#8217;ve <a href="http://en.wikipedia.org/wiki/Bricked" target="_blank">bricked</a> my NGW100 board by overwritten the U-boot from flash. To fix it was necessary using a JTAG interface, so I check some alternatives.</p>
<ul>
<li>AVR JTAGICE mkII (US$ 299) [official] <a href="http://atmel.com/dyn/products/tools_card.asp?tool_id=3353">http://atmel.com/dyn/products/tools_card.asp?tool_id=3353</a></li>
<li>AVR JTAG ICE mkii CN (US$ 99)  <a href="http://enshop.avrvi.com/avrjtagicemkiicn.html">http://enshop.avrvi.com/avrjtagicemkiicn.html</a></li>
<li>AT AVR JTAGICE mkII clone (US$ 159) <a href="http://enshop.avrvi.com/jtagicemkiiclone.html">http://enshop.avrvi.com/jtagicemkiiclone.html</a></li>
</ul>
<p style="text-align: justify;">Considering that NGW100 itself costs about US$ 89.00 could be more cheaper get another board than buying a JTAG device. Note that I looking for way to allow a programming Interface to flash and not other features available in a JTAG like source level debugging.</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-737" title="ngw100+byteblaster" src="http://www.coding.com.br/wp-content/uploads/2010/03/ngw100+byteblaster-300x225.jpg" alt="" width="300" height="225" /> The bootloader for the NGW is stored in the parallell flash</p>
<p style="text-align: justify;">Searching for a inexpensive solution I found this AVR Freaks <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=53865" target="_blank">thread</a> teaching how to use cable <a href="http://jtag-arm9.sourceforge.net/circuit.txt" target="_blank">wiggler</a> or byteblaster to flash NGW.  Everyone that used Altera FPGA at least one time know about Byteblaster cable, was easy found one at university and try (thanks Prof. Robson Moreno)</p>
<p style="text-align: left;">
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-746" title="Byteblaster cable" src="http://www.coding.com.br/wp-content/uploads/2010/03/bbla-300x163.png" alt="" width="300" height="163" />I&#8217;m using Byteblaser I</p>
<p style="text-align: left;">I&#8217;ve compiled a new u-boot binary from BSP code and used a too called <a href="http://194.204.26.104/~andrei/avrfreaks/avr32prog.zip" target="_blank">avr32prog</a> (it&#8217;s windows-only) to record.</p>
<pre style="text-align: left;">avr32prog.exe -c byteblaster -p LPT1 -f u-boot.img prog
</pre>
<p style="text-align: center;"><span style="color: #ff0000;">The process is extremely slow, about 35 minutes to flash a 100kbyte binary (~ 50bps)</span></p>
<p style="text-align: justify;">I have not had success the first time due some kind of &#8220;writing error&#8221;. I noted that if I use the computer (i.e.: browsing) when avr32prog is running the error happens faster, so I started the program a let flash the board &#8220;alone&#8221;. After finished just turn off the board, unplug JTAG connector and turn on the board again. It&#8217;s nice to see serial working again <img src='http://www.coding.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<blockquote><p>
U-Boot 1.1.4-at0 (Mar  9 2010 &#8211; 01:55:04) </p>
<p>U-Boot code: 00000000 -> 000149cf  data: 24000000 -> 24002d80<br />
SDRAM: 32 MB at address 0&#215;10000000<br />
Testing SDRAM&#8230;OK<br />
malloc: Using memory from 0&#215;11fc0000 to 0&#215;12000000<br />
Flash:  8 MB at address 0&#215;00000000<br />
DRAM Configuration:<br />
Bank #0: 10000000 32 MB</p>
<p>In:    serial<br />
Out:   serial<br />
Err:   serial</p>
<p>Net:   macb0, macb1<br />
Press SPACE to abort autoboot in 1 seconds<br />
Uboot>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/welcome-back-ngw100/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
