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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-12-28T00:13:51+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-28T00:13:51+02:00</updated>

		<published>2012-12-28T00:13:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24333#p24333</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24333#p24333"/>
		<title type="html"><![CDATA[Re: HIDBootFlash error, cannot reflash bootflash, help!]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24333#p24333"><![CDATA[
Hum... Looks like the latest version of the HID boot firmware is able to reprogram itself.  <br />Important note, it's very important to keep everything &quot;static&quot; because it's running in RAM only during the Bootflash RWW phase.<br /><br />Case closed!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Fri Dec 28, 2012 12:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-27T03:05:25+02:00</updated>

		<published>2012-12-27T03:05:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24317#p24317</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24317#p24317"/>
		<title type="html"><![CDATA[Re: HIDBootFlash error, cannot reflash bootflash, help!]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24317#p24317"><![CDATA[
<img class="smilies" src="./../../../images/smilies/icon_idea.gif" alt=":idea:" title="Idea" />  Hum... just re-read the Atmega8 specifications.<br />Looks like it's possible but in a different manner:<br /><br /><blockquote class="uncited"><div>The Boot Loader Support provides a real Read-While-Write Self-Programming mechanism for<br />downloading and uploading program code by the MCU itself. This feature allows flexible application<br />software updates controlled by the MCU using a Flash-resident Boot Loader program. The<br />Boot Loader program can use any available data interface and associated protocol to read code<br />and write (program) that code into the Flash memory, or read the code from the Program memory.<br />The program code within the Boot Loader section has the capability to write into the<strong class="text-strong"> entire<br />Flash, including the Boot Loader Memory. The Boot Loader can thus even modify itself,</strong> and it<br />can also erase itself from the code if the feature is not needed anymore. The size of the Boot<br />Loader Memory is configurable with fuses and the Boot Loader has two separate sets of Boot<br />Lock Bits which can be set independently. This gives the user a unique flexibility to select different<br />levels of protection.</div></blockquote><br /><br />So, there is a caveat about the HIDbootflash code that does not permit self programming in the boot section.<br /><br />Any other opinion, suggestion?  <img class="smilies" src="./../../../images/smilies/icon_question.gif" alt=":?:" title="Question" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Thu Dec 27, 2012 3:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-27T02:56:21+02:00</updated>

		<published>2012-12-27T02:56:21+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24316#p24316</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24316#p24316"/>
		<title type="html"><![CDATA[Re: HIDBootFlash error, cannot reflash bootflash, help!]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24316#p24316"><![CDATA[
Okay... So you have to lock the bootsection with the lockbits and then it will protect it when you reflash the device?<br />Then you can only reflash the application section... I see.<br /><br />I just tried and it works.  I'll re-read the spec sheet.<br /><br /> <img class="smilies" src="./../../../images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" /> sorry, I think I look dumb now!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Thu Dec 27, 2012 2:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[xiangrui]]></name></author>
		<updated>2012-12-27T00:14:58+02:00</updated>

		<published>2012-12-27T00:14:58+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24315#p24315</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24315#p24315"/>
		<title type="html"><![CDATA[Re: HIDBootFlash error, cannot reflash bootflash, help!]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24315#p24315"><![CDATA[
I thought it can't write itself, but I may be wrong. <br /><br />From the error message, it seems it is writing to the application section, since it says &quot;6144 bytes remaining&quot;, which is the size after reserving 2K boot section.<br /><br />-Xiangrui<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6201">xiangrui</a> — Thu Dec 27, 2012 12:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-26T21:11:45+02:00</updated>

		<published>2012-12-26T21:11:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24313#p24313</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24313#p24313"/>
		<title type="html"><![CDATA[Re: HIDBootFlash error, cannot reflash bootflash, help!]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24313#p24313"><![CDATA[
Oh and BTW, AVR studio is pushing the same HEX without issue.<br /><br />Another test is conclusive; it switch between the device and the HIDBoot when the jumper is on.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Wed Dec 26, 2012 9:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nitz76]]></name></author>
		<updated>2012-12-26T21:05:43+02:00</updated>

		<published>2012-12-26T21:05:43+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24312#p24312</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24312#p24312"/>
		<title type="html"><![CDATA[HIDBootFlash error, cannot reflash bootflash, help!]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8085&amp;p=24312#p24312"><![CDATA[
Hello,<br /><br />I did a simple implementation of the HIDBoot on a Atmega8. For a wierd reason, it can reflash everything except the bootflash itself.<br />Here is the output of bootflashHID.exe:<br /><br /><div class="codebox"><p>Code: </p><pre><code>D:\&gt;bootloadhid -r main.hex<br />Page size   = 64 (0x40)<br />Device size = 8192 (0x2000); 6144 bytes remaining<br />Data (7874 bytes) exceeds remaining flash size!<br /><br />D:\&gt;</code></pre></div><br /><br />But when I relfash the device code, everything go well:<br /><br /><div class="codebox"><p>Code: </p><pre><code>D:\&gt;bootloadhid -r device.hex<br />Page size   = 64 (0x40)<br />Device size = 8192 (0x2000); 6144 bytes remaining<br />Uploading 2816 (0xb00) bytes starting at 0 (0x0)<br />0x00a80 ... 0x00b00<br /><br />D:\&gt;</code></pre></div><br /><br />Something is wrong, but what...  <img class="smilies" src="./../../../images/smilies/icon_question.gif" alt=":?:" title="Question" />  Help! <img class="smilies" src="./../../../images/smilies/icon_exclaim.gif" alt=":!:" title="Exclamation" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=12540">Nitz76</a> — Wed Dec 26, 2012 9:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
