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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-09-12T16:29:44+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-09-12T16:29:44+02:00</updated>

		<published>2010-09-12T16:29:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15844#p15844</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15844#p15844"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15844#p15844"><![CDATA[
Guessing Christian does not use avrStudio, as a setting changes was needed in the project settings. I stumbled on to it when  I got curios and did a compile based on the makefile and the project settings. I then saw this.<br /><br /> -Wl,-section-start=.text=0x3800<br /><br />but when compiling with makefile I saw<br /><br /> -Wl,--section-start=.text=7800<br /><br />Then I though hmmmm.. maybe there is a place in the project setting for the address, and sure enough there is.<br /><br /><img src="http://spawnlinux.dyndns.org/tmp/avr-mem.JPG" class="postimage" alt="Image" /><br /><br />So what I set in the burn setting does not effect the build, I guess that makes sense... So thank you again Christian your thought was correct. 328p works just fine.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Sun Sep 12, 2010 4:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-09-03T15:33:34+02:00</updated>

		<published>2010-09-03T15:33:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15767#p15767</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15767#p15767"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15767#p15767"><![CDATA[
Well I could not even get the second boot loader to work. I still need to find a better test. I'm not sure why USBaspLoader wont do a thing for me? Does not do a thing on a 168 also, just sits there.  Any others out there?  <br /><br />The avr studio project settings are just the defaults nothing fancy. I set  up the right chip and right speed and really no more then that. Although it work for the 168 so I'm not clear on how it would discriminate between the 328. <br /><br />I tested the code on a 168p and it worked, so its just the 328 that is the problem.<br /><br /><br />--- ok If I change the code in USBaspLoader I do get unrecognized device, if I unplug it and plug it back in I get nothing. As soon as I make any change to the code and re-burn I get unrecognized device. &lt;-- If that made no sense then you understood it perfectly. Are there any boot loaders with a make file or project file?<br /><br />See anything wrong here?<br /><img src="http://bliss-box.net/tmp/avr.JPG" class="postimage" alt="Image" /><br /><br /><br />When I try the makefile I get <br />usbdrv/usbdrvasm.o:usbdrv/asmcommon.inc:170: undefined reference to `usbTxStatus1'<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Sep 03, 2010 3:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2010-09-03T11:56:09+02:00</updated>

		<published>2010-09-03T11:56:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15764#p15764</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15764#p15764"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15764#p15764"><![CDATA[
usbConnect() and usbDisconnect() are emulated when no pull-up pin is defined. That's OK.<br /><br />Then, let me summarize: You can run any of the example apps on the board, but none of the boot loaders, even if you load them as app (not into boot space).<br /><br />That's rather strange, because the driver is the same in all cases. I would guess that it's something in the build environment...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Sep 03, 2010 11:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-09-02T17:23:21+02:00</updated>

		<published>2010-09-02T17:23:21+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15760#p15760</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15760#p15760"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15760#p15760"><![CDATA[
huh, well I dont have avr dude but I tried to compile and run. <br /><br />Guessing this would satisfy the check<br /><br />#define bootLoaderCondition()   (1)<br /><br />as per the info<br /><blockquote class="uncited"><div>If a certain hardware condition is met (this condition can be configured, e.g. a jumper), the boot loader waits for data on the USB interface and loads it into the remaining part of the flash memory. If the condition is not met, control is passed to the loaded firmware.<br /></div></blockquote><br /><br /><br /><br />I dont think the device is powering up. I dont see any new usb devices and dont see an unknown device. I'm just not failure with this loader. how can I wake it up? I had to change the usb pins in the config  but still not having any luck. I also noticed they have the pull up define commented out, yet are using usb disconnect/connect. I'm not quite sure how that would work, so I set up the correct defines ( didnt help). <br /><br />I also grabbed the latest bootloaderHid and I'm still having the same issues.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu Sep 02, 2010 5:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2010-09-01T16:43:14+02:00</updated>

		<published>2010-09-01T16:43:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15754#p15754</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15754#p15754"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15754#p15754"><![CDATA[
Yes, it's code plus data, so it should fit. If it still fails when flashed to 0 with TEST_MODE defined, you can try to debug it with debug output on TxD. There is no code size limit when you flash it to address 0.<br /><br />On the other hand: Have you tried other bootloaders, e.g. USBaspLoader?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed Sep 01, 2010 4:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-09-01T16:13:36+02:00</updated>

		<published>2010-09-01T16:13:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15753#p15753</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15753#p15753"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15753#p15753"><![CDATA[
2k as in Program and data together?<br /><br /><div class="codebox"><p>Code: </p><pre><code>AVR Memory Usage<br />----------------<br />Device: atmega328p<br /><br />Program:    1946 bytes (5.9% Full)<br />(.text + .data + .bootloader)<br /><br />Data:         59 bytes (2.9% Full)<br />(.data + .bss + .noinit)</code></pre></div> I removed all debug code to shrink it down a bit. <br /><br />I did not see a define for TEST_MODE, but I do see the #if for it, so I set TEST_MODE 1 and tried to flash without the bootrst fuse bit. This did not seem to help, does this imply its related to code, since all other apps seem to flash correctly?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Wed Sep 01, 2010 4:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2010-09-01T11:58:18+02:00</updated>

		<published>2010-09-01T11:58:18+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15750#p15750</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15750#p15750"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15750#p15750"><![CDATA[
The define in bootloadHID is &quot;TEST_MODE&quot;. Did you check the over-all code size? It might exceed the 2k of the boot area.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed Sep 01, 2010 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-09-01T00:21:30+02:00</updated>

		<published>2010-09-01T00:21:30+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15748#p15748</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15748#p15748"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15748#p15748"><![CDATA[
Sorry I'm using BootloadHID. I can use any v-usb example on the 328p just fine, only the bootloader gives me troubles. I didnt see NO_FLASH_WRITE in there.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Wed Sep 01, 2010 12:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2010-09-01T00:17:54+02:00</updated>

		<published>2010-09-01T00:17:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15747#p15747</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15747#p15747"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15747#p15747"><![CDATA[
You can first try to load it as normal application at address 0 instead of the boot area. Don't know which boot loader you use, but USBaspLoader has an optional define &quot;NO_FLASH_WRITE&quot;. If you set it, it's compiled as normal application which can be loaded at address 0.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed Sep 01, 2010 12:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-09-01T00:13:28+02:00</updated>

		<published>2010-09-01T00:13:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15746#p15746</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15746#p15746"/>
		<title type="html"><![CDATA[Re: Atmega8535 OK / Atmega328p FAIL]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2663&amp;p=15746#p15746"><![CDATA[
Well, thx for all the help Christian.  I certainly understand things better now <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";)" title="Wink" /> However I do not understand why every thing works when flash to a 168 and not a 328p. <br /><br /><br />I have the new code that handles the pico bug. <br />I have the right fuses FF,DA,DF. ( not 100% on the Brown-out but disabled works on 168 ( tried all other options ) ) <br />Tried multiple chips. <br />Tried burning as if it were a 168 ( dont agree with that but didnt help )<br />BootRst is check ( at least this is needed for 168 )<br />Set MCU to 328p in project settings. <br />Didn't read any changes needed in the Bootloader code. <br /><br />I continue to get usb device not recognized on this chip. Any more ideas?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Wed Sep 01, 2010 12:13 am</p><hr />
]]></content>
	</entry>
	</feed>
