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

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

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-06-10T20:28:04+02:00</updated>

		<published>2008-06-10T20:28:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5528#p5528</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5528#p5528"/>
		<title type="html"><![CDATA[Possible error in Stk500protocol]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5528#p5528"><![CDATA[
OK, I finally had the time to try this myself. It works well with my computer (a Macbook Pro) and as you reported, it depends on the AVR's clock rate.<br /><br />The problem is therefore very likely not an implementation bug in AVR-Doper, but the well known reliability problem of CDC mode.<br /><br />It's still not known whether the transmission errors in CDC mode are caused by a driver bug or by communication errors. Anybody who captures a USB trace of such an error is welcome to submit it to us (obdev). See <!-- m --><a class="postlink" href="http://forums.obdev.at/viewtopic.php?t=1360&amp;start=15">http://forums.obdev.at/viewtopic.php?t=1360&amp;start=15</a><!-- m --> for an example. This example reveals a problem on the host side, though, not in our driver.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Jun 10, 2008 8:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-05-16T15:17:20+02:00</updated>

		<published>2008-05-16T15:17:20+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5369#p5369</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5369#p5369"/>
		<title type="html"><![CDATA[Possible error in stk-protocol]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5369#p5369"><![CDATA[
Dear,<br />It is not a problem with the STK-protocol, but a timing problem in the code for 16MHz. I tried exactly the same hardware, but compiled for 12 MHz and that works fine.<p>Statistics: Posted by Guest — Fri May 16, 2008 3:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-05-16T10:01:47+02:00</updated>

		<published>2008-05-16T10:01:47+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5368#p5368</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5368#p5368"/>
		<title type="html"><![CDATA[Possible error in Stk500protocol]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5368#p5368"><![CDATA[
Every host i try has the same problem. When I let avrstudio log what's happening I get the following result (excerpt of the last few lines).<br /><br /><blockquote class="uncited"><div>Sending packet 05/16/2008 09:35:16.868<br />(5000ms) &gt; 1B 1B 00 4A 0E <br />(5000ms) &gt; 13 00 40 A1 0A 40 4C 20 FF 00 40 00 40 00 FE 1F <br />&gt; FE 1F FE 1F FE 1F 00 0E 00 1E 00 10 00 10 00 10 <br />&gt; FE 1F FE 0F FE 1F FE 1F E0 00 B0 01 18 03 0C 06 <br />&gt; 06 0C 02 18 00 10 FE 1F FE 1F 00 10 00 10 00 10 <br />&gt; 00 10 00 10 00 10 FE 1F FE 1F <br />(5000ms) &gt; 3F <br />Sequence number 27, message size 74, checksum 63<br />CMD_PROGRAM_FLASH_ISP<br /><br />Receiving packet 05/16/2008 09:35:17.879<br />(5000ms) (expected 5 more bytes but timed out)<br />Sequence number n/a, message size n/a, checksum n/a<br />No data in packet<br />Returned status: Client: Total timeout exceeded (PC side gave up)<br /><br />Sending packet 05/16/2008 09:35:22.887<br />(1000ms) &gt; 1B 1C 00 03 0E <br />(1000ms) &gt; 11 01 01 <br />(1000ms) &gt; 1B <br />Sequence number 28, message size 3, checksum 27<br />CMD_LEAVE_PROGMODE_ISP<br /><br />Receiving packet 05/16/2008 09:35:25.891<br />(1000ms) (Error number: 128692)<br />(expected 5 more bytes but timed out)<br />Sequence number n/a, message size n/a, checksum n/a<br />No data in packet<br />Returned status: Client: Total timeout exceeded (PC side gave up)<br />Port closed<br />Returned status: Command succeeded</div></blockquote><br /><br />When I use a port monitor to spy what's going on in the communication, I get a the following response <blockquote class="uncited"><div>Status $C00000001</div></blockquote> as the reply on the data of packet with sequencenumber $1B<p>Statistics: Posted by Guest — Fri May 16, 2008 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-05-15T14:56:55+02:00</updated>

		<published>2008-05-15T14:56:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5358#p5358</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5358#p5358"/>
		<title type="html"><![CDATA[Possible error in Stk500protocol]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5358#p5358"><![CDATA[
Did you try this on a different host? CDC mode may be unreliable, depending on MANY factors. The data length and content may be one of them.<br /><br />If you can reproduce this with a USB 2.0 hub inserted and with a different host, then please send us the offending hex file to the feedback address.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu May 15, 2008 2:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-05-14T16:39:20+02:00</updated>

		<published>2008-05-14T16:39:20+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5348#p5348</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5348#p5348"/>
		<title type="html"><![CDATA[Possible error in Stk500protocol]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1452&amp;p=5348#p5348"><![CDATA[
I tried to build a minimal version of AVR-Doper. Everything works fine till the applications become bigger. A certain combination of characters in the hex-file causes the programmer to crash in CDC-mode (integrated in avr-studio. When i put a couple of bytes extra in the hex-file everything works fine.<br /><br />The same hex-file programs fine using AVRdude in HID-mode.<br />If necessary, I can send you the hex file causing the programmer to crash.<p>Statistics: Posted by Guest — Wed May 14, 2008 4:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
