bootloader

144 views
Skip to first unread message

Jason

unread,
Sep 28, 2009, 12:40:17 PM9/28/09
to MakerBot Operators
I'm still getting the rc=-1 error message when i try to burn the
bootloader. Which might be because i fried the chip on the
motherboard. is there a way to check this?

Joost van de Wiel

unread,
Sep 28, 2009, 1:33:32 PM9/28/09
to make...@googlegroups.com
Jason,
 
What OS are you running? I have had some problems on Ubuntu, which required me to run as root/sudo. Also make sure you use the correct (6 pins) cable. I ran "sudo avrdude -c usbtiny -p m644p -U flash:w:ATmegaBOOT_644P.hex", which burned the bootloader successfully. Maybe this helps?
 
Cheers,
Joost

Rick Pollack

unread,
Sep 28, 2009, 1:41:46 PM9/28/09
to make...@googlegroups.com
Jason -

Which bootloader hardware are you using and are you confident it is working? It has been a while since this happened but when I tried to install my bootloader my USBTinyISP would not work until I finally re-seated the CPU.

Jason

unread,
Sep 28, 2009, 2:19:00 PM9/28/09
to MakerBot Operators
Im running Mac, as for the bootloader, i'm not sure. was there one
that i was suppose to download?
Because i just go into arduino and click burn bootloader

Rick Pollack

unread,
Sep 28, 2009, 2:27:26 PM9/28/09
to make...@googlegroups.com
When you try to burn the bootloader, how is your machine connected to your Bot? Are you using the Ladyada USBTinyISP or what type of cable are you using?

angel imaz

unread,
Sep 28, 2009, 2:27:51 PM9/28/09
to make...@googlegroups.com
With TinyISP?

Jason Evanko

unread,
Sep 28, 2009, 2:29:22 PM9/28/09
to make...@googlegroups.com
I'm running the USB tinyisp 

-Jason

Rick Pollack

unread,
Sep 28, 2009, 2:31:56 PM9/28/09
to make...@googlegroups.com
And, you are confident that TinyISP is working properly? It was a kit that you assembled?

Jason Evanko

unread,
Sep 28, 2009, 2:32:54 PM9/28/09
to make...@googlegroups.com
I did assemble it. How do I check if it is working properly?

-Jason

Rick Pollack

unread,
Sep 28, 2009, 3:46:46 PM9/28/09
to make...@googlegroups.com
Assuming you are using the ladyada usbtinyisp...i'd start here:
http://www.ladyada.net/make/usbtinyisp/help.html

In my case, I could not get it to work until I re-seated the MCU. Took a while to figure it out.

TeamTeamUSA

unread,
Sep 28, 2009, 3:58:02 PM9/28/09
to MakerBot Operators
Also ensure the shunt is on the USBtinyISP. I couldn't get the
bootloader to burn until I added the shunt.

Go!

=m i l e s=

On Sep 28, 12:46 pm, Rick Pollack <rick.poll...@gmail.com> wrote:
> Assuming you are using the ladyada usbtinyisp...i'd start here:http://www.ladyada.net/make/usbtinyisp/help.html
>
> In my case, I could not get it to work until I re-seated the MCU. Took a
> while to figure it out.
>
> On Mon, Sep 28, 2009 at 2:32 PM, Jason Evanko <samidge...@gmail.com> wrote:
> > I did assemble it. How do I check if it is working properly?
>
> > -Jason
>
> > On Sep 28, 2009, at 2:31 PM, Rick Pollack <rick.poll...@gmail.com> wrote:
>
> > And, you are confident that TinyISP is working properly? It was a kit that
> > you assembled?
>
> > On Mon, Sep 28, 2009 at 2:29 PM, Jason Evanko < <samidge...@gmail.com>
> > samidge...@gmail.com> wrote:
>
> >> I'm running the USB tinyisp
>
> >> -Jason
>
> >> On Sep 28, 2009, at 2:27 PM, Rick Pollack < <rick.poll...@gmail.com>
> >> rick.poll...@gmail.com> wrote:
>
> >> When you try to burn the bootloader, how is your machine connected to your
> >> Bot? Are you using the Ladyada USBTinyISP or what type of cable are you
> >> using?
>

Joost van de Wiel

unread,
Sep 28, 2009, 4:02:57 PM9/28/09
to make...@googlegroups.com
Jason,
 
Not sure if this helps, but make sure you connect using the correct cable from USBTinyISP and that the cable is also assembled correctly (check the page on the assembly page for the USBTiny; could be incorrect with respect to cable and plugs) and that the cable is in the proper header in the (reprap/makerbot) board. You should then also put in the jumper (provide voltage to the board). Aso check if the board is soldered correctle (diodes oriented ok, chips ok?) and the green LED turns on.
 
To test if the USBTiny works and you can communicate with the board, you can use the "avrdude -c usbtiny -p m644p" command (also try to run it as root on your mac) and check if the avrdude responds with something else then "rc -1". Maybe the output you get also provides some info on what goes wrong ...
 
Joost

Jason Evanko

unread,
Sep 28, 2009, 6:17:03 PM9/28/09
to make...@googlegroups.com
Is that the little black plastic piece that attachs the two metal
prongs?

-Jason

Zach 'Hoeken' Smith

unread,
Sep 28, 2009, 6:29:27 PM9/28/09
to make...@googlegroups.com
yup.

Jason Evanko

unread,
Sep 28, 2009, 6:31:15 PM9/28/09
to make...@googlegroups.com
Because when I attach those two prongs it says there's too much power
and my computer shuts off the USB port it's plugged into

-Jason


On Sep 28, 2009, at 6:29 PM, "Zach 'Hoeken' Smith" <hoe...@gmail.com>
wrote:

Zach 'Hoeken' Smith

unread,
Sep 28, 2009, 7:34:27 PM9/28/09
to make...@googlegroups.com
sounds like you have a short somewhere.

Jason Evanko

unread,
Sep 28, 2009, 8:09:08 PM9/28/09
to make...@googlegroups.com
I put jumpers on r7 and r4. Could that be the problem?

-Jason


On Sep 28, 2009, at 7:34 PM, "Zach 'Hoeken' Smith" <hoe...@gmail.com>

Joost van de Wiel

unread,
Sep 29, 2009, 1:41:31 AM9/29/09
to make...@googlegroups.com

Might very well be the case; are they (the jumpers) in the instructions on the build page of the usbtiny?

Joost

On Sep 29, 2009 2:10 AM, "Jason Evanko" <samid...@gmail.com> wrote:


I put jumpers on r7 and r4. Could that be the problem?

-Jason


On Sep 28, 2009, at 7:34 PM, "Zach 'Hoeken' Smith" <hoe...@gmail.com>

wrote: > > sounds like you have a short somewhere. > > On Mon, Sep 28, 2009 at 6:31 PM, Jason Evank...

Jason Evanko

unread,
Sep 29, 2009, 7:18:52 AM9/29/09
to make...@googlegroups.com
Yes they are

-Jason

TeamTeamUSA

unread,
Sep 29, 2009, 3:35:44 PM9/29/09
to MakerBot Operators
Did you solder the jumper header into the holes next to the 6-pin
header?

http://www.ladyada.net/make/usbtinyisp/solder.html

Go!

=ml=

On Sep 29, 4:18 am, Jason Evanko <samidge...@gmail.com> wrote:
> Yes they are
>
> -Jason
>
> On Sep 29, 2009, at 1:41 AM, Joost van de Wiel <jvandew...@gmail.com>  
> wrote:
>
> > Might very well be the case; are they (the jumpers) in the  
> > instructions on the build page of the usbtiny?
>
> > Joost
>

Jason Evanko

unread,
Sep 29, 2009, 3:43:04 PM9/29/09
to make...@googlegroups.com
Yes I did. I don't think the problem is with the USB tinyisp. Because
the error message that I am getting is telling me that my computer can
connect with the programmer but not the chip.

-Jason

Peter Davoust

unread,
Sep 29, 2009, 5:39:00 PM9/29/09
to make...@googlegroups.com
Yeah, I had to solder the jumpers too - I don't think that's the problem.

Someone may have already asked this, but are you supplying power to
the board from the PSU? I think I had to in order to program it, but I
can't remember. If you haven't already, you might try that. Also, try
using your multimeter and making sure the pins on the ICSP header
connect somewhere on the Atmega. You might check for shorts while
you're at it.

-Peter

Jason Evanko

unread,
Sep 29, 2009, 5:41:10 PM9/29/09
to make...@googlegroups.com
I am supplying power, which pins should I be checking?

-Jason

Peter Davoust

unread,
Sep 29, 2009, 5:50:42 PM9/29/09
to make...@googlegroups.com
I just raked the test lead over all the pins. If you hear the
multimeter beep (assuming yours does that), you know it's connected
somewhere. If all else fails you can just test one pin at a time. I
figured that if the atmega were connected to the wrong pins, there
would be a major disfigurement of the board somehow, and I'd notice
it.

-Peter

Jason Evanko

unread,
Sep 29, 2009, 6:11:06 PM9/29/09
to make...@googlegroups.com
I checked the ones that were attached to the lines to the power supply
and my multimeter did beep. Should the ones that connect to the 6 and
10 pin headers also beep? Also I don't know If this could be the
problem but my motherboard will not turn on unless I have the 10 pin
header plugged in and attached to the tinyisp
-Jason

Peter Davoust

unread,
Sep 29, 2009, 6:31:40 PM9/29/09
to make...@googlegroups.com
Wait a minute... The 10 pin header? That's odd... That's a JTAG
header, and the USB Tiny doesn't do JTAG. I'd check the connections
from the 6-pin header and make sure they all connect. You might find
that they don't. Could you have soldered the 6-pin header backwards?

-Peter

Jason Evanko

unread,
Sep 29, 2009, 6:46:34 PM9/29/09
to make...@googlegroups.com
Yeah that's what I thought. Could that be the problem. And which way
does the 6 pin header go in? I have the little notch facing towards
the chip in the middle

-Jason

Joost van de Wiel

unread,
Sep 30, 2009, 5:58:31 AM9/30/09
to make...@googlegroups.com
Jason,
 
As I mentioned in my first email, you must use the 6 pin header. Check the assembly instructions on USBTiny (specifically the part that states "It's important that the key (the bump in the connector)..." here http://www.ladyada.net/make/usbtinyisp/solder.html and the next couple of instructions on the cables) and the assembly of your board (the part under ICSP Header here http://reprap.org/bin/view/Main/Motherboard_1_2) as well as thepicture-text under Burn the Bootloader on the same page.
 
I also suggest you use the avrdude program from a terminal, as this will provide some more info (i.e. error or success messages) to help troubleshoot this issue. Might need to run it as root.
 
Cheers,
Joost

Jason e.

unread,
Sep 30, 2009, 5:05:41 PM9/30/09
to make...@googlegroups.com
I checked all the components and they are put in correctly. what do you mean run avrdude in terminal?  

Joost van de Wiel

unread,
Sep 30, 2009, 5:40:50 PM9/30/09
to make...@googlegroups.com
Jason,

To burn the bootloader on the chip, you use a program; I think this is (also on the mac) avrdude. When you run the Arduino software, this program is also called when you burn the boatloader but then from within the Arduino software. You can execute this program from a terminal window; see also this link: http://www.ladyada.net/make/minipov3/software.html#macosx

The advantage of running it from a terminal, is that you get some more messages when you execute the program, which can help troubleshoot the issue, although it also is [quite a bit] more difficult.

Cheers,
Joost

Jason e.

unread,
Sep 30, 2009, 8:26:59 PM9/30/09
to make...@googlegroups.com
So i've done all this, and fixed the problem where my usb port shuts off because the chips are drawing too much power. But i'm still getting that error message when i try to burn the bootloader on both the mother and extruder boards. Is it possible that i fried both boards?

Joost van de Wiel

unread,
Oct 1, 2009, 12:55:59 AM10/1/09
to make...@googlegroups.com
Jason,
 
The following is tedious, but helpful: can you do a step-by-step description of what you are doing exactly? Alternatively, I can try to talk you through this on IRC @19:00 CET
 
Joost

Jason Evanko

unread,
Oct 1, 2009, 10:09:37 AM10/1/09
to make...@googlegroups.com
Ok. Well first I plug in my tinyisp, and then turn on the arduino softwear. Then I plug my board with the 6 pin connector. Then I make sure that the correct board is slected And then go to burn bootloader > with USB tinyisp

-Jason

Andrew Plumb

unread,
Oct 1, 2009, 10:23:36 AM10/1/09
to make...@googlegroups.com
Quick sanity check 'cause I didn't see it mentioned: Which version of
Arduino are you running?

Also, out of habit the sequence I use is:

1. plug the USBtinyISP into the board's 6 pin connector
- Stops weird power-up glitching and behaviour. USB is hot-swappable
by design; ICSP is not.

2. plug the USBtinyISP USB cable into your computer
- Gives the OS a chance to map USB serial to internal 'COM' ports.

3. Fire up Arduino

Andrew.
--

"The future is already here. It's just not very evenly distributed"
-- William Gibson



Jason Evanko

unread,
Oct 1, 2009, 10:39:51 AM10/1/09
to make...@googlegroups.com
Which ever one is the most recient version.

-Jason

Joost van de Wiel

unread,
Oct 1, 2009, 12:20:16 PM10/1/09
to make...@googlegroups.com
Jason,

I will be on IRC for the next couple of hours, so if you need some instant/structured help, find me there (irc.freenode.net on the #makerbot channel)

Joost

Jason e.

unread,
Oct 1, 2009, 7:12:44 PM10/1/09
to make...@googlegroups.com
I did not solder on the 10 pin female headers that are in the middle. could this affect the programming?

TeamTeamUSA

unread,
Oct 2, 2009, 3:50:57 AM10/2/09
to MakerBot Operators
I don't know for sure if the 10-pin header is required if you're just
using the 6-pin header. But I did solder all the parts including the
10-pin header, and had no problems.

Here is my step list for burning the bootloader:

Burn Bootloader
1. Ensure jumper/shunt is on USBtinyISP so that MoBo is powered via it
2. Plug the USBtinyISP into your computers USB port
3. Plug the USBtinyISP into the RepRap Motherboard using the 6-pin
header.
4. Open the Arduino software [I used arduino-0017], ensure the
'Sanguino' option is selected in 'Boards', and then choose the menu
option of "Tools -> Burn Bootloader -> w/ USBTinyISP".

Upload Firmware
1. Ensure PSU is OFF and unplugged
2. Ensure MoBo switch is OFF
3. Plug PSU cable into MoBo
4. Plug USB-to-TTL into computer and MoBo
5. Switch PSU ON
6. Switch MoBo ON [PSU fan should start spinning]
7. Red DEBUG LED should be on [DEBUG LED is next to POWER LED]
8. Launch the Arduino software, ensure the 'Sanguino' option is
selected in 'Boards', and either of the /dev/cu.usbserial or /dev/
tty.usbserial is selected in "Serial Port"
9. Open SanguinoMaster.pde in the RepRap firmware
10. Click 'Upload'

Go!

=ml=

On Oct 1, 4:12 pm, "Jason e." <samidge...@gmail.com> wrote:
> I did not solder on the 10 pin female headers that are in the middle. could
> this affect the programming?
> On Thu, Oct 1, 2009 at 12:20 PM, Joost van de Wiel <jvandew...@gmail.com>wrote:
>
>
>
> > Jason,
>
> > I will be on IRC for the next couple of hours, so if you need some
> > instant/structured help, find me there (irc.freenode.net on the #makerbot
> > channel)
>
> > Joost
>
> > On Thu, Oct 1, 2009 at 4:39 PM, Jason Evanko <samidge...@gmail.com> wrote:
>
> >> Which ever one is the most recient version.
>
> >> -Jason
>
> >> On Oct 1, 2009, at 10:23 AM, Andrew Plumb <and...@plumb.org> wrote:
>
> >> > Quick sanity check 'cause I didn't see it mentioned:  Which version of
> >> > Arduino are you running?
>
> >> > Also, out of habit the sequence I use is:
>
> >> > 1. plug the USBtinyISP into the board's 6 pin connector
> >> > - Stops weird power-up glitching and behaviour.  USB is hot-swappable
> >> > by design; ICSP is not.
>
> >> > 2. plug the USBtinyISP USB cable into your computer
> >> > - Gives the OS a chance to map USB serial to internal 'COM' ports.
>
> >> > 3. Fire up Arduino
>
> >> > Andrew.
>
> >> > On 1-Oct-09, at 10:09 AM, Jason Evanko wrote:
>
> >> >> Ok. Well first I plug in my tinyisp, and then turn on the arduino
> >> >> softwear. Then I plug my board with the 6 pin connector. Then I make
> >> >> sure that the correct board is slected And then go to burn
> >> >> bootloader > with USB tinyisp
>
> >> >> -Jason
>
> >> >> On Oct 1, 2009, at 12:55 AM, Joost van de Wiel
> >> >> <jvandew...@gmail.com> wrote:
>
> >> >>> Jason,
>
> >> >>> The following is tedious, but helpful: can you do a step-by-step
> >> >>> description of what you are doing exactly? Alternatively, I can try
> >> >>> to talk you through this on IRC @19:00 CET
>
> >> >>> Joost
> >> >>> On Thu, Oct 1, 2009 at 2:26 AM, Jason e. <samidge...@gmail.com>
> >> >>> wrote:
> >> >>> So i've done all this, and fixed the problem where my usb port
> >> >>> shuts off because the chips are drawing too much power. But i'm
> >> >>> still getting that error message when i try to burn the bootloader
> >> >>> on both the mother and extruder boards. Is it possible that i fried
> >> >>> both boards?
>
> >> >>> On Wed, Sep 30, 2009 at 5:40 PM, Joost van de Wiel <
> >> jvandew...@gmail.com
> >> >>>> wrote:
> >> >>> Jason,
>
> >> >>> To burn the bootloader on the chip, you use a program; I think this
> >> >>> is (also on the mac) avrdude. When you run the Arduino software,
> >> >>> this program is also called when you burn the boatloader but then
> >> >>> from within the Arduino software. You can execute this program from
> >> >>> a terminal window; see also this link:
> >>http://www.ladyada.net/make/minipov3/software.html#macosx
>
> >> >>> The advantage of running it from a terminal, is that you get some
> >> >>> more messages when you execute the program, which can help
> >> >>> troubleshoot the issue, although it also is [quite a bit] more
> >> >>> difficult.
>
> >> >>> Cheers,
> >> >>> Joost
>
> >> >>> On Wed, Sep 30, 2009 at 11:05 PM, Jason e. <samidge...@gmail.com>
> >> >>> wrote:
> >> >>> I checked all the components and they are put in correctly. what do
> >> >>> you mean run avrdude in terminal?
>
> >> >>> On Wed, Sep 30, 2009 at 5:58 AM, Joost van de Wiel <
> >> jvandew...@gmail.com
> >> >>>> wrote:
> >> >>> Jason,
>
> >> >>> As I mentioned in my first email, you must use the 6 pin header.
> >> >>> Check the assembly instructions on USBTiny (specifically the part
> >> >>> that states "It's important that the key (the bump in the
> >> >>> connector)..." here
> >>http://www.ladyada.net/make/usbtinyisp/solder.html
> >> >>> and the next couple of instructions on the cables) and the
> >> >>> assembly of your board (the part under ICSP Header here
> >>http://reprap.org/bin/view/Main/Motherboard_1_2
> >> >>> )
> >> >>> as well as thepicture-text under Burn the Bootloader on the same
> >> >>> page.
>
> >> >>> I also suggest you use the avrdude program from a terminal, as this
> >> >>> will provide some more info (i.e. error or success messages) to
> >> >>> help troubleshoot this issue. Might need to run it as root.
>
> >> >>> Cheers,
> >> >>> Joost
>
> >> >>> On Wed, Sep 30, 2009 at 12:46 AM, Jason Evanko
> >> >>> <samidge...@gmail.com> wrote:
>
> >> >>> Yeah that's what I thought. Could that be the problem. And which way
> >> >>> does the 6 pin header go in? I have the little notch facing towards
> >> >>> the chip in the middle
>
> >> >>> -Jason
>
> >> >>> On Sep 29, 2009, at 6:31 PM, Peter Davoust <worldg...@gmail.com>
Reply all
Reply to author
Forward
0 new messages