<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/5824" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-08-20T21:11:52+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/5824</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-08-20T21:11:52+02:00</updated>

		<published>2011-08-20T21:11:52+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5824&amp;p=19403#p19403</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5824&amp;p=19403#p19403"/>
		<title type="html"><![CDATA[Re: USBasploader mega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5824&amp;p=19403#p19403"><![CDATA[
Didn't want to start an extra thread for this:<br /><br />When uploading the bootloader to an at90can128 you have to set the BOOTLOADER_ADDRESS in the makefile to 0x1E000 and change:<br /><div class="codebox"><p>Code: </p><pre><code>LDFLAGS = -Wl,--relax,--gc-sections -Wl,--section-start=.text=$(BOOTLOADER_ADDRESS)</code></pre></div><br />to<br /><div class="codebox"><p>Code: </p><pre><code>LDFLAGS = -Wl,--relax,--gc-sections -Wl,--section-start=.bootloader=$(BOOTLOADER_ADDRESS)</code></pre></div><br /><br />otherwise it would always throw an out-of-range error when trying to flash (I used avrdude with a jtagmkI-compatible dongle if it matters) the bootloader.<br /><br /><br />Also, thanks to dg for solving the memory issue, I had the same problem.<p>Statistics: Posted by Guest — Sat Aug 20, 2011 9:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-07-18T20:39:39+02:00</updated>

		<published>2011-07-18T20:39:39+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5824&amp;p=19017#p19017</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5824&amp;p=19017#p19017"/>
		<title type="html"><![CDATA[Re: USBasploader mega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5824&amp;p=19017#p19017"><![CDATA[
In <strong class="text-strong">usbportability.h</strong> there is a switch for handling the memory pages:<br /><br />#if USB_CFG_DRIVER_FLASH_PAGE<br />#   define USB_READ_FLASH(addr)    pgm_read_byte_far(((long)USB_CFG_DRIVER_FLASH_PAGE &lt;&lt; 16) | (long)(addr))<br />#else<br />#   define USB_READ_FLASH(addr)    pgm_read_byte(addr)<br />#endif<br /><br />The include order in <strong class="text-strong">usbdrv.c </strong>is<br /><br /><strong class="text-strong">#include &quot;usbportability.h&quot;<br />#include &quot;usbdrv.h&quot;</strong><br /><br />It means <strong class="text-strong">USB_CFG_DRIVER_FLASH_PAGE</strong> is not known for  <strong class="text-strong">usbportability.h</strong>, so no FAR access is generated.<br />By adding<strong class="text-strong"> #include &quot;usbconfig.h&quot;</strong> before <strong class="text-strong">#include &quot;usbportability.h&quot;</strong> solves the problem, my devices reports itself correctly.  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><p>Statistics: Posted by Guest — Mon Jul 18, 2011 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-07-16T00:04:10+02:00</updated>

		<published>2011-07-16T00:04:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5824&amp;p=18987#p18987</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5824&amp;p=18987#p18987"/>
		<title type="html"><![CDATA[Re: USBasploader mega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5824&amp;p=18987#p18987"><![CDATA[
More infos:<br /><br />I know about the pgm_read_far solution, but there is a pointer named like usbmsg, which is still only 16 bit and can not store a 24bit wide address.<p>Statistics: Posted by Guest — Sat Jul 16, 2011 12:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-07-15T22:42:17+02:00</updated>

		<published>2011-07-15T22:42:17+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5824&amp;p=18986#p18986</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5824&amp;p=18986#p18986"/>
		<title type="html"><![CDATA[USBasploader mega128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5824&amp;p=18986#p18986"><![CDATA[
Hi,<br /><br />anyone has a _real_ working version for the 128k flash version?<br /><br />The access to the upper 64k page for the device descriptor does not work on my at90can128.<br />AVR catches the start of the communication, but does not move any further after the request for device descriptor, because of the address above 0x1E000.<br /><br />Thanks in advance.<br /><br />Regards<br />dg<p>Statistics: Posted by Guest — Fri Jul 15, 2011 10:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
