Welcome! Log In Create A New Profile

Advanced

USBTinyISP Bootloader Problems

Posted by carpenma 
USBTinyISP Bootloader Problems
June 13, 2009 01:46PM
I have a Gen 3 set of electronics using a USBTinyISP on Ubuntu Jaunty. Each time I try to burn though I get the following error:

"avrdude: initialization failed rc=1"

I have done all the sanguino modifications to the arduino software. If I try running avrdude from the terminal it returns that the device signiture is nothing. The boards are receiving power from the TinyISP and I've tried providing external power as well. Anyone know how to fix this???

-Matt
Re: USBTinyISP Bootloader Problems
June 15, 2009 12:57AM
ah I know next to zip on Linux.

But it sounds like either you have the wrong usb port configured so avrdude doesn't know how to communicate with the USBTinyISP or heck maybe the AVR chip in the USBTinyISP it self is not programmed.

So you have to bootstrap the bootstrap LOL!

I went though some trials in that area, which you might want to read.

[exmrclean.blogspot.com]
Guy
Re: USBTinyISP Bootloader Problems
July 12, 2009 01:01PM
matt,

I am having the same problem. Did you find a solution?

- Guy
Re: USBTinyISP Bootloader Problems
July 12, 2009 05:50PM
Having the same problem here.

Installed the Sanguino stuff correctly, I think...double checked it at least. The full text of my error reads as:
"""
USB read error: expected 4, got -1
USB read error: expected 4, got -1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
"""

Read somewhere that maybe external power may help but haven't tried it yet. It was mentioned in conjunction with the Arduino being used. Haven't been able to find much in the way of documentation on this issue.

Any help is welcome!

Demented


[www.urbansurvivalists.com]
Re: USBTinyISP Bootloader Problems
July 12, 2009 06:55PM
Okay, just tried some more stuff...

Tried externally powering the motherboard...no goodness.

While fiddling with AVRdude, found that we may have a file permissions problem. This test, [www.ladyada.net], fails unless we run it as root using sudo. When run with sudo, it gives the response it's supposed to.

So, knowing this we started the Arduino environment from terminal with

sudo ./arduino

This fixed part of our initial problem--the USB lines we posted--but then gave us a whole mess of other stuff. Whiletrying to catch the error outputs from this to post here--using "sudo ./arduino > error_log.txt"--all we got was:
"""
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7

Experimental: JNI_OnLoad called.
"""

This is a very small fraction of what was dumped to the terminal leading us to think that avrdude is the only problem here. Just to be sure we ran "./arduino > error_log.txt" to see what that gave us. We got the same output as above. The USB errors were back this time though indicating that the USB problem is a permissions issue.

However, on this run through we noticed that the Arduino program was spitting a bunch of other errors at us in it's own notification area. This:
"""

In file included from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:4:20: error: stdlib.h: No such file or directory
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:5:20: error: string.h: No such file or directory
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:6:18: error: math.h: No such file or directory
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:8:27: error: avr/interrupt.h: No such file or directory
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:10,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:28:20: error: avr/io.h: No such file or directory
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:13,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:24:22: error: inttypes.h: No such file or directory
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:10,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:97: error: ‘uint8_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:98: error: ‘uint8_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:102: error: variable or field ‘pinMode’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:102: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:102: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:103: error: variable or field ‘digitalWrite’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:103: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:103: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:104: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:105: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:106: error: variable or field ‘analogReference’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:106: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:107: error: variable or field ‘analogWrite’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:107: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:107: error: expected primary-expression before ‘int’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:109: error: variable or field ‘beginSerial’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:109: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:109: error: expected primary-expression before ‘long’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:110: error: variable or field ‘serialWrite’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:110: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:110: error: expected primary-expression before ‘unsigned’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:111: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:112: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:113: error: variable or field ‘serialFlush’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:113: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: expected primary-expression before ‘unsigned’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: initializer expression list treated as compound expression
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: variable or field ‘shiftOut’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: ‘byte’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:123: error: variable or field ‘attachInterrupt’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:123: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:123: error: expected primary-expression before ‘void’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:123: error: expected primary-expression before ‘int’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:124: error: variable or field ‘detachInterrupt’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:124: error: ‘uint8_t’ was not declared in this scope
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:26,
from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:13,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:34: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:35: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:37: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:40: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:41: error: ‘void Print::print(int)’ cannot be overloaded
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:40: error: with ‘void Print::print(int)’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:50: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:51: error: ‘void Print::println(int)’ cannot be overloaded
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:50: error: with ‘void Print::println(int)’
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:13,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:31: error: ‘uint8_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:33: error: expected `)' before ‘uart’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:35: error: ‘uint8_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:38: error: ‘uint8_t’ has not been declared
In file included from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:15: error: ‘uint16_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:16: error: ‘uint16_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:20: error: redefinition of ‘long unsigned int pulseIn’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: ‘long unsigned int pulseIn’ previously defined here
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:20: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:20: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:20: error: expected primary-expression before ‘unsigned’
In file included from Firmata.cpp:19:
Firmata.h:62: error: typedef ‘callbackFunction’ is initialized (use __typeof__ instead)
Firmata.h:62: error: ‘byte’ was not declared in this scope
Firmata.h:62: error: expected primary-expression before ‘int’
Firmata.h:65: error: typedef ‘sysexCallbackFunction’ is initialized (use __typeof__ instead)
Firmata.h:65: error: ‘byte’ was not declared in this scope
Firmata.h:65: error: ‘byte’ was not declared in this scope
Firmata.h:65: error: ‘byte’ was not declared in this scope
Firmata.h:65: error: ‘argv’ was not declared in this scope
Firmata.h:82: error: ‘byte’ has not been declared
Firmata.h:82: error: ‘byte’ has not been declared
Firmata.h:87: error: ‘byte’ has not been declared
Firmata.h:88: error: ‘byte’ has not been declared
Firmata.h:89: error: ‘byte’ has not been declared
Firmata.h:91: error: ‘byte’ has not been declared
Firmata.h:92: error: ‘byte’ has not been declared
Firmata.h:92: error: ‘byte’ has not been declared
Firmata.h:92: error: ‘byte’ has not been declared
Firmata.h:96: error: ‘byte’ has not been declared
Firmata.h:96: error: ‘callbackFunction’ has not been declared
Firmata.h:97: error: ‘byte’ has not been declared
Firmata.h:98: error: ‘byte’ has not been declared
Firmata.h:99: error: ‘byte’ has not been declared
Firmata.h:99: error: ‘sysexCallbackFunction’ has not been declared
Firmata.h:99: error: ‘void FirmataClass::attach(int, int)’ cannot be overloaded
Firmata.h:96: error: with ‘void FirmataClass::attach(int, int)’
Firmata.h:100: error: ‘byte’ has not been declared
Firmata.h:105: error: ‘byte’ does not name a type
Firmata.h:106: error: ISO C++ forbids declaration of ‘byte’ with no type
Firmata.h:106: error: expected ‘;’ before ‘*’ token
Firmata.h:108: error: ‘byte’ does not name a type
Firmata.h:109: error: ‘byte’ does not name a type
Firmata.h:110: error: ‘byte’ does not name a type
Firmata.h:111: error: ‘byte’ does not name a type
Firmata.h:113: error: ‘boolean’ does not name a type
Firmata.h:116: error: ‘callbackFunction’ does not name a type
Firmata.h:117: error: ‘callbackFunction’ does not name a type
Firmata.h:118: error: ‘callbackFunction’ does not name a type
Firmata.h:119: error: ‘callbackFunction’ does not name a type
Firmata.h:120: error: ‘callbackFunction’ does not name a type
Firmata.h:123: error: ‘sysexCallbackFunction’ does not name a type
Firmata.cpp: In constructor ‘FirmataClass::FirmataClass()’:
Firmata.cpp:52: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp: In member function ‘void FirmataClass::blinkVersion()’:
Firmata.cpp:93: error: ‘pinMode’ was not declared in this scope
Firmata.cpp: In member function ‘void FirmataClass::printFirmwareVersion()’:
Firmata.cpp:103: error: ‘byte’ was not declared in this scope
Firmata.cpp:103: error: expected `;' before ‘i’
Firmata.cpp:105: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp:108: error: ‘firmwareVersionVector’ was not declared in this scope
Firmata.cpp:110: error: ‘i’ was not declared in this scope
Firmata.cpp: At global scope:
Firmata.cpp:117: error: ‘byte’ has not been declared
Firmata.cpp:117: error: ‘byte’ has not been declared
Firmata.cpp: In member function ‘void FirmataClass::setFirmwareNameAndVersion(const char*, int, int)’:
Firmata.cpp:123: error: ‘strstr’ was not declared in this scope
Firmata.cpp:124: error: ‘strrchr’ was not declared in this scope
Firmata.cpp:127: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp:129: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp:129: error: ‘strlen’ was not declared in this scope
Firmata.cpp:132: error: ‘firmwareVersionVector’ was not declared in this scope
Firmata.cpp:132: error: ‘byte’ was not declared in this scope
Firmata.cpp:132: error: expected primary-expression before ‘)’ token
Firmata.cpp:132: error: expected `;' before ‘malloc’
Firmata.cpp:133: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp:136: error: ‘strncpy’ was not declared in this scope
Firmata.cpp: In member function ‘int FirmataClass::available()’:
Firmata.cpp:147: error: ‘class HardwareSerial’ has no member named ‘available’
Firmata.cpp: In member function ‘void FirmataClass::processSysexMessage()’:
Firmata.cpp:153: error: ‘storedInputData’ was not declared in this scope
Firmata.cpp:159: error: ‘byte’ was not declared in this scope
Firmata.cpp:159: error: expected `;' before ‘bufferLength’
Firmata.cpp:160: error: ‘bufferLength’ was not declared in this scope
Firmata.cpp:160: error: ‘malloc’ was not declared in this scope
Firmata.cpp:161: error: expected `;' before ‘i’
Firmata.cpp:162: error: expected `;' before ‘j’
Firmata.cpp:163: error: ‘j’ was not declared in this scope
Firmata.cpp:164: error: ‘i’ was not declared in this scope
Firmata.cpp:174: error: ‘currentSysexCallback’ was not declared in this scope
Firmata.cpp: In member function ‘void FirmataClass::processInput()’:
Firmata.cpp:186: error: ‘parsingSysex’ was not declared in this scope
Firmata.cpp:194: error: ‘storedInputData’ was not declared in this scope
Firmata.cpp:197: error: ‘waitForData’ was not declared in this scope
Firmata.cpp:199: error: ‘storedInputData’ was not declared in this scope
Firmata.cpp:200: error: ‘executeMultiByteCommand’ was not declared in this scope
Firmata.cpp:203: error: ‘currentAnalogCallback’ was not declared in this scope
Firmata.cpp:204: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:210: error: ‘currentDigitalCallback’ was not declared in this scope
Firmata.cpp:211: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:217: error: ‘currentPinModeCallback’ was not declared in this scope
Firmata.cpp:221: error: ‘currentReportAnalogCallback’ was not declared in this scope
Firmata.cpp:222: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:225: error: ‘currentReportDigitalCallback’ was not declared in this scope
Firmata.cpp:226: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:235: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:245: error: ‘executeMultiByteCommand’ was not declared in this scope
Firmata.cpp: At global scope:
Firmata.cpp:270: error: variable or field ‘sendAnalog’ declared void
Firmata.cpp:270: error: ‘byte’ was not declared in this scope
Firmata.cpp:270: error: expected primary-expression before ‘int’
Firmata.cpp:278: error: variable or field ‘sendDigital’ declared void
Firmata.cpp:278: error: ‘byte’ was not declared in this scope
Firmata.cpp:278: error: expected primary-expression before ‘int’
Firmata.cpp:302: error: variable or field ‘sendDigitalPort’ declared void
Firmata.cpp:302: error: ‘byte’ was not declared in this scope
Firmata.cpp:302: error: expected primary-expression before ‘int’
Firmata.cpp:310: error: variable or field ‘sendSysex’ declared void
Firmata.cpp:310: error: ‘byte’ was not declared in this scope
Firmata.cpp:310: error: ‘byte’ was not declared in this scope
Firmata.cpp:310: error: ‘byte’ was not declared in this scope
Firmata.cpp:310: error: ‘bytev’ was not declared in this scope
"""

Sorry about that dump. Anyway, we are now suspecting that we installed some files wrong and will be checking that again.

Any help is helpful...hehe

Demented


[www.urbansurvivalists.com]
VDX
Re: USBTinyISP Bootloader Problems
July 13, 2009 03:08AM
Hi Demented,

... the compiler/linker can't find the libraries, so your environmet variables aren't set correctly.

Try to de-/reinstall with the right tool-chain and installation order ...

Viktor
Re: USBTinyISP Bootloader Problems
July 15, 2009 09:56AM
Okay, figured the problem...we needed, as VDX says here, all the libraries...which required for some reason that we compile from source. I really don't like using Kubuntu as it seems like I hit this problem a lot. Never the less, once that was done we got the whole,
"""
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
"""
error thing again but this time we saw the programmer blink momentarily before it dumped that to the screen.

Conclusion, we messed up the board somehow and now must hunker down with the scope and attempt to trace the problem. Bleh. Thank for the help.

Demented


[www.urbansurvivalists.com]
I am having this same problem, I am pretty familiar with linux (especially ubuntu).
I am on the same step as you guys in the last post too...I dont have the permissions problems, but still can't write the bootloader....its starting to really get on my nerves.

So far I have tried:
Jumping R4 and R7 on the USBtinyISP...didnt do anything
tried powering the motherboard seperately (and the extruder controller...i can't write to either one)
reinstalled all the software (more than once)
checked all the logs i can think of/find
checked and rechecked the USBtinyISP...soldering, resistance, shorts..everything (everything seems fine there)

and green light turns on right when i plug in the avr programmer and when i send the command for it to try to program whatever the red light blinks once and then it populates the error in the terminal window...hopefully we are getting the same results.

Just know this isn't an isolated incident, and we must find a SOLUTION! You aren't alone. (im almost thinking of seeing if i can use a friends laptop to try to program it and see if its the board or the software....for sure)...ill keep you posted.
Re: USBTinyISP Bootloader Problems
September 05, 2009 01:27PM
Sorry to open an old thread but I am having the same problem. The green light on my programmer lights right up when i plug it in, but when I click burn bootloader in the arduino IDE I get the error about rc=-1. I have tried it on 3 different computers now, 2 running ubuntu and one running win xp. The one running xp however just wouldnt run the arduino IDE for some reason, it is a UMPC so I guess that is not suprising. I am about to boot my desktop into Win 7 RC and I will see if i can get it woriking there. If i can then I will know that it is a software problem.


_______________________________________________________________________________________________________

Yes my Avatar is My RepStrap.....Isn't it pretty

For the latest Updates check my main site [www.repstrap.weebly.com] or my blog [www.pingiscoolest.blogspot.com].
Re: USBTinyISP Bootloader Problems
September 05, 2009 02:28PM
Nothing wrong with staying relevant!

The Arduino IDE is normally setup to program via AVRDUDE to a parallel port. Try running AVRDUDE directly with the command examples for your programmer.
Re: USBTinyISP Bootloader Problems
September 12, 2009 05:12PM
Guys have you tried...

Apt-get and install librxtx in your version of linux so that it matches the variant/version of the java rUntime you are using.

Then find the librxtx version that comes with your copy or the Arduino IDE and rename it to something else. It is somewhere in the Arduino directory.

I have had problems with the librxtx version that comes with the Arduino IDE conflicting with the version that the local java runtime wants to work with.

Hope that makes some sense.

You have probably got this covered already, but had to ask.

Cheers

aka47

PS all the above refers to linux only.


Necessity hopefully becomes the absentee parent of successfully invented children.
Re: USBTinyISP Bootloader Problems
September 22, 2009 04:47PM
Guys,

had the same problem with the bootloader, same messages, also using USBTinyISP, and succeeded in the end using the following:

- I used the 6-wire [!!!] cable; initially had the 10-wire one in the wrong socket, that does NOT work ;-)
- put in the jumper in the USBTiny
- open a terminal and run avrdude w/ the following command:
sudo avrdude -c usbtiny -p m644p -U flash:w:ATmegaBOOT_644P.hex

This is for the Atmega644A a.k.a Sanguino) the hex file can be found in the Arduino/hardware/bootloaders/atmega644p folder)

The following is the output from the terminal:


avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e960a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "ATmegaBOOT_644P.hex"
avrdude: input file ATmegaBOOT_644P.hex auto detected as Intel Hex
avrdude: writing flash (65382 bytes):

Writing | ################################################## | 100% 258.49s


avrdude: 65382 bytes of flash written
avrdude: verifying flash memory against ATmegaBOOT_644P.hex:
avrdude: load data flash data from input file ATmegaBOOT_644P.hex:
avrdude: input file ATmegaBOOT_644P.hex auto detected as Intel Hex
avrdude: input file ATmegaBOOT_644P.hex contains 65382 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 124.13s

avrdude: verifying ...
avrdude: 65382 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.



This was for the RepRap Motherboard v1.2, all under Ubuntu 9.04 AMD64. It seems the "burning" went well; maybe this helps ...?

Cheers,
Joost
Sorry, only registered users may post in this forum.

Click here to login