<?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>Goddchen 's Blog &#187; ATMega128</title>
	<atom:link href="http://blog.goddchen.de/tag/atmega128/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.goddchen.de</link>
	<description></description>
	<lastBuildDate>Wed, 18 Jan 2012 17:12:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>ethersex ATMega2561 Port</title>
		<link>http://blog.goddchen.de/2009/11/ethersex-atmega2561-port/</link>
		<comments>http://blog.goddchen.de/2009/11/ethersex-atmega2561-port/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:35:19 +0000</pubDate>
		<dc:creator>Goddchen</dc:creator>
				<category><![CDATA[Computer / Informatik]]></category>
		<category><![CDATA[ATMega128]]></category>
		<category><![CDATA[ATMega1280]]></category>
		<category><![CDATA[ATMega1281]]></category>
		<category><![CDATA[ATMega2560]]></category>
		<category><![CDATA[ATMega2561]]></category>
		<category><![CDATA[Atmel]]></category>
		<category><![CDATA[EICALL]]></category>
		<category><![CDATA[EIND]]></category>
		<category><![CDATA[ethersex]]></category>

		<guid isPermaLink="false">http://blog.goddchen.de/?p=452</guid>
		<description><![CDATA[Hey, i finally got the bootloader ethersex working on our ATMega2561 board. The problem was that it worked fine on our ATMega128 board, but the same software didn&#8217;t work on the ATMega2561 board. The problem was that the bootloader downloaded the firmware via tftp from a server but then didn&#8217;t start the loaded firmware, but [...]]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>i finally got the bootloader <a href="httphttp://www.ethersex.de" target="_blank">ethersex </a>working on our ATMega2561 board.</p>
<p>The problem was that it worked fine on our ATMega128 board, but the same software didn&#8217;t work on the ATMega2561 board. The problem was that the bootloader downloaded the firmware via tftp from a server but then didn&#8217;t start the loaded firmware, but seemed to reboot and download it again, and again, and again&#8230;</p>
<p>The problem was that it wasn&#8217;t able to jump to the application at address 0. Why is that? A look at the generated assembler code showed that the ATMega2561 uses EICALL, instead of ICALL (which is for chips with PC of 22 Bits). EICALL uses the Z-Register plus (!!!) the EIND byte to store the jump address (which is 0 in our case). So i just added &#8220;EIND=0;&#8221; before the jump to our application (which is at address 0) and now everything works just fine <img src='http://blog.goddchen.de/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Hopefully this helps many other developers who try to get ethersex working on ATMega2561 /ATMega2560 / ATMega1280 / ATMega1281.</p>
<p>Gr33tz Goddchen</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.goddchen.de%2F2009%2F11%2Fethersex-atmega2561-port%2F&amp;title=ethersex%20ATMega2561%20Port" id="wpa2a_2" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save_url=http_3A_2F_2Fblog.goddchen.de_2F2009_2F11_2Fethersex-atmega2561-port_2F_amp_title=ethersex_20ATMega2561_20Port?referer=');"><img src="http://blog.goddchen.de/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.goddchen.de/2009/11/ethersex-atmega2561-port/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

