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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2017-01-16T16:22:34+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2017-01-16T16:22:34+02:00</updated>

		<published>2017-01-16T16:22:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10696&amp;p=31863#p31863</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10696&amp;p=31863#p31863"/>
		<title type="html"><![CDATA[bootloader + code is less then %100 but fails?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10696&amp;p=31863#p31863"><![CDATA[
I know it's like a desert around here anymore but avr-freeks are not helping much. I hope someone knows enough about this to help. Going to keep it simple and to the point for now. I'll be happy to add anything I can so just ask.<br /><br />I have a atmega328 chip<br />I have the bootloader that most everyone uses with v-usb and it compiles to around %5 of the chip.<br />My code when compiled to about %86 fits fine<br />I use bootloadhid to flash<br /><br />when my code grows beyond %86 I get flahs errors but %86  + %5 does not come close to %100? I'm trying to track down where the limit is coming from.<br /><br />Here is a compile from my main code<br />        Device: atmega328p<br />        Program:   28704 bytes (87.6% Full)<br />        (.text + .data + .bootloader)<br />        Data:       1227 bytes (59.9% Full)<br />        (.data + .bss + .noinit)<br /><br />First I have no idea why it says  .bootloader because I do no have that defined in my code anywhere. I don't think that is related to my issue but a problem in itself. I though you had to have a &quot;__attribute__((section(&quot;.bootloader&quot;))) &quot; to do that?<br /><br />When I build the bootloader code I see this<br />Program Memory Usage :1910 bytes   5.8 % Full<br />Data Memory Usage :59 bytes   2.9 % Full<br /><br /><br />So if I add 5.8(boot) + 87.6(code) I'm only at 93.4, we would this cause flash errors. <br /><br />Errors I get from botloadhid<br />device size -00032768<br />data (28674) exceeds flash size!<br />flashing 28800 (0x7080) bytes  start at 0<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Jan 16, 2017 4:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
