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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-09-10T08:16:42+02:00</updated>

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

		<entry>
		<author><name><![CDATA[snookie]]></name></author>
		<updated>2008-09-10T08:16:42+02:00</updated>

		<published>2008-09-10T08:16:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1690&amp;p=6166#p6166</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1690&amp;p=6166#p6166"/>
		<title type="html"><![CDATA[Solution]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1690&amp;p=6166#p6166"><![CDATA[
I found the answer on the avrdude forums.  Absolutely ridiculous.<br /><br />You have to go into the avrdude terminal.  avrdude -t<br /><br />Then you have to set the bit period.  The bit period is the time of one clock cycle.  Since all the stk500's in unix use 115200, it's one over that.  1/f = period.  So one over that is 8.67 us.<br /><br />That also fixed the download speed too.<br /><br />You'd think the software would be smart enough to do the math itself and fix it....  Anyways, hope this helps all the other people having trouble with this.<br /><br />If I find the website of the original answer, I'll post it here.<br /><br />Thanks,<br />Snookie<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1317">snookie</a> — Wed Sep 10, 2008 8:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[snookie]]></name></author>
		<updated>2008-09-08T09:04:11+02:00</updated>

		<published>2008-09-08T09:04:11+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1690&amp;p=6149#p6149</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1690&amp;p=6149#p6149"/>
		<title type="html"><![CDATA[Help, unable to program and verify]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1690&amp;p=6149#p6149"><![CDATA[
Anytime I download a program that is bigger than some unknown size, I always get a timeout error.  I'm using an STK500 with a USB to serial convertor (GUC232A from iogear).  <br /><br />Here is a sample output:<br /><br />Snookie$ avrdude -c stk500v2 -P /dev/cu.PL2303-0B2 -p m32 -b 115200 -U flash:w:main.hex:i <br /><br />avrdude: AVR device initialized and ready to accept instructions<br /><br />Reading | ################################################## | 100% 0.10s<br /><br />avrdude: Device signature = 0x1e9502<br />avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed<br />         To disable this feature, specify the -D option.<br />avrdude: erasing chip<br />avrdude: reading input file &quot;main.hex&quot;<br />avrdude: writing flash (8016 bytes):<br /><br />Writing | ################################################## | 100% 52.37s<br /><br />avrdude: 8016 bytes of flash written<br />avrdude: verifying flash memory against main.hex:<br />avrdude: load data flash data from input file main.hex:<br />avrdude: input file main.hex contains 8016 bytes<br />avrdude: reading on-chip flash data:<br /><br />Reading |                                                    | 0% 0.00savrdude: stk500_2_ReceiveMessage(): timeout<br />avrdude: stk500_2_ReceiveMessage(): timeout<br />Reading | ##                                                 | 3% 12.04savrdude: stk500_2_ReceiveMessage(): timeout<br />avrdude: stk500_2_ReceiveMessage(): timeout<br />Reading | ###                                                | 6% 24.07savrdude: stk500_2_ReceiveMessage(): timeout<br />avrdude: stk500_2_ReceiveMessage(): timeout<br />Reading | #####                                              | 9% 36.10savrdude: stk500_2_ReceiveMessage(): timeout<br />avrdude: stk500_2_ReceiveMessage(): timeout<br />Reading | ######                                             | 12% 48.13savrdude: stk500_2_ReceiveMessage(): timeout<br />avrdude: stk500_2_ReceiveMessage(): timeout<br />Reading | ########                                           | 15% 60.17savrdude: stk500_2_ReceiveMessage(): timeout<br />avrdude: stk500_2_ReceiveMessage(): timeout<br />Reading | ##########                                         | 19% 72.20savrdude: stk500_2_ReceiveMessage(): timeout<br />avrdude: stk500_2_ReceiveMessage(): timeout<br />Reading | ###########                                        | 22% 87.55savrdude: stk500_2_ReceiveMessage(): timeout<br />avrdude: stk500_2_ReceiveMessage(): timeout<br />Reading | #############                                      | 25% 99.58s^C<br /><br />I'm extremely frustrated.  Also, programming is extremely slow, much slower than windows ever was.  I can say with confidence that despite the inability to verify, the program doesn't seem to work.  <br /><br />If I program the ucontroller with a simple app, blink LED's.  It works (download, verification, and runtime)<br /><br />I also played with the fuses as I saw in some threads it could be that, but I tried everything.<br /><br />Thanks.<br /><br />Snookie<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1317">snookie</a> — Mon Sep 08, 2008 9:04 am</p><hr />
]]></content>
	</entry>
	</feed>
