<?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/1490" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-06-05T10:04:46+02:00</updated>

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

		<entry>
		<author><name><![CDATA[alanp]]></name></author>
		<updated>2008-06-05T10:04:46+02:00</updated>

		<published>2008-06-05T10:04:46+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1490&amp;p=5493#p5493</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1490&amp;p=5493#p5493"/>
		<title type="html"><![CDATA[USBaspLoader locking up]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1490&amp;p=5493#p5493"><![CDATA[
I'm making some progress.<br /><br />The original problem was that the bootloader was being put at the wrong memory address. I had it at 0x9000, but this is the address in words. The correct address is 0x1E000 bytes.<br /><br />So now I know it's at the correct memory location and it seems to run, but no USB devices are seen on the PC.<br /><br />I have found a german newsgroup which talks about using USBaspLoader with the ATmega128. <!-- m --><a class="postlink" href="http://www.mikrocontroller.net/topic/100710">http://www.mikrocontroller.net/topic/100710</a><!-- m --> <br /><br />At the bottom it is talked about changing pgm_read_byte with pgm_read_byte_far because the program is in the upper 64kbytes. However I could not get this to work.<br /><br />Has anyone got USBaspLoader working in the large memery size parts? Could anyone give me some tips?<br /><br />Thanks<br /><br />Alan<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1097">alanp</a> — Thu Jun 05, 2008 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alanp]]></name></author>
		<updated>2008-05-30T23:28:05+02:00</updated>

		<published>2008-05-30T23:28:05+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1490&amp;p=5469#p5469</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1490&amp;p=5469#p5469"/>
		<title type="html"><![CDATA[USBaspLoader locking up]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1490&amp;p=5469#p5469"><![CDATA[
Hi Guys,<br /><br />I'm trying to compile USBaspLoader for the ATmega128.<br /><br />I have got the powerswitch running without any problems so the hardware side of things should be good.<br /><br />I have slightly modified the main() code to find out what's going on. I have 8 LEDs on PORTA.<br /><br /><div class="codebox"><p>Code: </p><pre><code>int main&#40;void&#41;<br />&#123;<br />    DDRA = 0xFF;<br />   /* initialize  */<br />    bootLoaderInit&#40;&#41;;<br />    odDebugInit&#40;&#41;;<br />    DBG1&#40;0x00, 0, 0&#41;;<br />#ifndef NO_FLASH_WRITE<br />    GICR = &#40;1 &lt;&lt; IVCE&#41;;  /* enable change of interrupt vectors */<br />    GICR = &#40;1 &lt;&lt; IVSEL&#41;; /* move interrupts to boot flash section */<br />#endif<br />    if&#40;bootLoaderCondition&#40;&#41;&#41;&#123;<br />      PORTA = 0x01;<br />      uint i = 0;<br />        initForUsbConnectivity&#40;&#41;;<br />        do&#123;<br />            usbPoll&#40;&#41;;<br />#if BOOTLOADER_CAN_EXIT<br />            if&#40;requestBootLoaderExit&#41;&#123;<br />                if&#40;--i == 0&#41;<br />                    break;<br />            &#125;<br />#endif<br />         PORTA++;<br />        &#125;while&#40;bootLoaderCondition&#40;&#41;&#41;;  /* main event loop */<br />    &#125;<br />    PORTA = 0x04;<br />    leaveBootloader&#40;&#41;;<br />    return 0;<br />&#125;</code></pre></div><br /><br />BOOTLOADER_CAN_EXIT is set to 0.<br /><br />The LEDs start counting/flashing to start with as one would expect in the usbPoll loop but then stop on a random number. To me this looks like something in the usbPoll locking up.<br /><br />Could anybody shed some light on this or offer any advice in where to look further??<br /><br />Thanks<br /><br />Alan<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1097">alanp</a> — Fri May 30, 2008 11:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
