<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — Can't upload firmware with USBasp (solved)]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/5926/" />
	<updated>2014-03-22T17:54:21Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/5926/cant-upload-firmware-with-usbasp-solved/</id>
		<entry>
			<title type="html"><![CDATA[Re: Can't upload firmware with USBasp (solved)]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/52708/#p52708" />
			<content type="html"><![CDATA[<p>I finally solved the problem early this morning, or at least found a workaround.&nbsp; I had two 1284p chips.&nbsp; One would give this error on both computers I tried it on (one an old PC and one a newer mac), but the other would work correctly on the mac only.&nbsp; I&#039;m guessing there is some sort of timing-specific sensitivity involved here, but I&#039;ve managed to reflash the bootloader and firmware onto the second chip so I&#039;m back in business.&nbsp; </p><p>One thing I learned in searching is that the -t (interactive) option in avrdude is very useful in that you can use it to dump out the contents of flash memory to see what (if anything) is getting written to the chip.&nbsp; The second thing I learned is that the &quot;lock&quot; bits are really &quot;unlock&quot; bits, and if you set them to all you zero you will brick your chip, which I eventually did with the first chip that I couldn&#039;t reflash with either computer anyway.</p>]]></content>
			<author>
				<name><![CDATA[tealvince]]></name>
				<uri>https://www.soliforum.com/user/676/</uri>
			</author>
			<updated>2014-03-22T17:54:21Z</updated>
			<id>https://www.soliforum.com/post/52708/#p52708</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't upload firmware with USBasp (solved)]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/52695/#p52695" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ronsii wrote:</cite><blockquote><p>Make sure you test the actual voltage out of the usbasp module.... there are some imports that give 3.3 when set to 5 and 5volts when set to 3.3 <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>Thanks!&nbsp; Unfortunately same results with the jumper in the other position.</p>]]></content>
			<author>
				<name><![CDATA[tealvince]]></name>
				<uri>https://www.soliforum.com/user/676/</uri>
			</author>
			<updated>2014-03-22T07:31:23Z</updated>
			<id>https://www.soliforum.com/post/52695/#p52695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't upload firmware with USBasp (solved)]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/52687/#p52687" />
			<content type="html"><![CDATA[<p>Make sure you test the actual voltage out of the usbasp module.... there are some imports that give 3.3 when set to 5 and 5volts when set to 3.3 <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[ronsii]]></name>
				<uri>https://www.soliforum.com/user/296/</uri>
			</author>
			<updated>2014-03-22T07:07:05Z</updated>
			<id>https://www.soliforum.com/post/52687/#p52687</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Can't upload firmware with USBasp (solved)]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/52681/#p52681" />
			<content type="html"><![CDATA[<p>Help!&nbsp; I&#039;ve spent the last couple of hours banging my head against the wall.&nbsp; I was trying to update my firmware with my new usbasp programmer, and have only managed to erase my chip.</p><p>I bought the programmer off ebay (it says USBASP V2.0 - LC Technology), and wired an adapter cable with the following mappings (from Sanguino to programmer):</p><p>1 - 9 (MISO)<br />2 - 2&nbsp; (VCC)<br />3 - 7 (SCK)<br />4 - 1 (MOSI)<br />5 - 5 (CS)<br />6 - 10 (GND)</p><p>When using, it, the 1284p is detected and has the correct signature, and I can successfully read and change the fuses, so the connection seems okay.&nbsp; However, when trying to upload a bootloader or marlin build, it always fails to verify as follows.&nbsp; Any ideas?&nbsp; The programmer itself only has a jumper for 3.3/5V (currently set to 5V).</p><p>&gt;avrdude -C ..\etc\avrdude.conf -c usbasp -p m1284p -U flash:w:SolidoodleMarlin.cpp.hex -v -D</p><p>avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Copyright (c) 2000-2005 Brian Dean, <a href="http://www.bdmicro.com/">http://www.bdmicro.com/</a></p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System wide configuration file is &quot;..\etc\avrdude.conf&quot;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Using Port&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : lpt1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Using Programmer&nbsp; &nbsp; &nbsp; : usbasp<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AVR Part&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : ATMEGA1284P<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Chip Erase delay&nbsp; &nbsp; &nbsp; : 9000 us<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PAGEL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: PD7<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BS2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: PA0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RESET disposition&nbsp; &nbsp; &nbsp;: dedicated<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RETRY pulse&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: SCK<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;serial program mode&nbsp; &nbsp;: yes<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;parallel program mode : yes<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Timeout&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 200<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;StabDelay&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 100<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CmdexeDelay&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 25<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SyncLoops&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 32<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ByteDelay&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PollIndex&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PollValue&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 0x53<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Memory Detail&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Block Poll&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Page<br />&nbsp; &nbsp; &nbsp; Polled<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Memory Type Mode Delay Size&nbsp; Indx Paged&nbsp; Size&nbsp; &nbsp;Size #Pages MinW&nbsp; Max<br />W&nbsp; &nbsp;ReadBack<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---<br />-- ---------<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;eeprom&nbsp; &nbsp; &nbsp; &nbsp; 65&nbsp; &nbsp; 10&nbsp; &nbsp;128&nbsp; &nbsp; 0 no&nbsp; &nbsp; &nbsp; &nbsp;4096&nbsp; &nbsp; 8&nbsp; &nbsp; &nbsp; 0&nbsp; 9000&nbsp; 90<br />00 0xff 0xff<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flash&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;65&nbsp; &nbsp; 10&nbsp; &nbsp;256&nbsp; &nbsp; 0 yes&nbsp; &nbsp; 131072&nbsp; 256&nbsp; &nbsp; 512&nbsp; 4500&nbsp; 45<br />00 0xff 0xff<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lock&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; 0 no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; 9000&nbsp; 90<br />00 0x00 0x00<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lfuse&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; 0 no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; 9000&nbsp; 90<br />00 0x00 0x00<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hfuse&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; 0 no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; 9000&nbsp; 90<br />00 0x00 0x00<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;efuse&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; 0 no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; 9000&nbsp; 90<br />00 0x00 0x00<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;signature&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; 0 no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0<br /> 0 0x00 0x00<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;calibration&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; 0 no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0<br /> 0 0x00 0x00</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Programmer Type : usbasp<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Description&nbsp; &nbsp; &nbsp;: USBasp, <a href="http://www.fischl.de/usbasp/">http://www.fischl.de/usbasp/</a></p><p>avrdude: AVR device initialized and ready to accept instructions</p><p>Reading | ################################################## | 100% 0.02s</p><p>avrdude: Device signature = 0x1e9705<br />avrdude: safemode: lfuse reads as DE<br />avrdude: safemode: hfuse reads as DB<br />avrdude: safemode: efuse reads as F8<br />avrdude: reading input file &quot;SolidoodleMarlin.cpp.hex&quot;<br />avrdude: input file SolidoodleMarlin.cpp.hex auto detected as Intel Hex<br />avrdude: writing flash (110734 bytes):</p><p>Writing | ################################################## | 100% 59.31s</p><br /><br /><p>avrdude: 110734 bytes of flash written<br />avrdude: verifying flash memory against SolidoodleMarlin.cpp.hex:<br />avrdude: load data flash data from input file SolidoodleMarlin.cpp.hex:<br />avrdude: input file SolidoodleMarlin.cpp.hex auto detected as Intel Hex<br />avrdude: input file SolidoodleMarlin.cpp.hex contains 110734 bytes<br />avrdude: reading on-chip flash data:</p><p>Reading | ################################################## | 100% 57.39s</p><br /><br /><p>avrdude: verifying ...<br />avrdude: verification error, first mismatch at byte 0x0000<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0c != 0x00<br />avrdude: verification error; content mismatch</p><p>avrdude: safemode: lfuse reads as DE<br />avrdude: safemode: hfuse reads as DB<br />avrdude: safemode: efuse reads as F8<br />avrdude: safemode: Fuses OK</p><p>avrdude done.&nbsp; Thank you.</p>]]></content>
			<author>
				<name><![CDATA[tealvince]]></name>
				<uri>https://www.soliforum.com/user/676/</uri>
			</author>
			<updated>2014-03-22T05:17:31Z</updated>
			<id>https://www.soliforum.com/post/52681/#p52681</id>
		</entry>
</feed>
