Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« on: May 21, 2011, 01:51:03 pm » |
Hi you all, Twice now I've had the problem where I can burn the bootloader on a chip but it won't accept an upload. My situation is this:
I made a little board with a ZIF socket with ISP and FTDI connections. When I need to program a batch of chips, I burn the bootloader from the IDE with a USBtinyISP, then switch to a FTDI cable and upload the program with the IDE. This works great, but in two batches of chips now, I found one that would take the bootloader but not upload the program (resp = 0 IIRC). Putting the chip in the Arduino = same.
Does anyone know of something to try to bring these two chips to life? (They were brand new - one from DigiKey and one from Sparkfun.) I guess it's possible that the Rx & Tx pins are not working, but I want to make sure before I toss them. (They are, after all, the soul of the Arduino.)
Thanks John
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 116
Posts: 10142
|
 |
« Reply #1 on: May 21, 2011, 03:28:23 pm » |
The most likely culprit is that the fuse settings are not correct. Before chucking the processor, at least make one more attempt to burn the bootloader paying close attention to the fuse settings.
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #2 on: May 23, 2011, 11:01:28 am » |
Thanks CB, I loaded the bootloader several times on these chips and even checked them with Avrdude. The fuses look fine. They just won't accept an upload. Must be a problem with the UART or something.
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #3 on: May 23, 2011, 11:39:40 am » |
Dont chuck them (donate them to ME!!!!!!!) - only joking, why not just program them with your programmer without the bootloader, an extra 2k to use, and because you were going to bin them, they are essential FREE.
Drew.
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Offline
Edison Member
Karma: 43
Posts: 2491
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #4 on: May 23, 2011, 04:24:09 pm » |
This sounds very similar to something I had happen with a 328p chip. Which bootloader are you burning?
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Offline
Edison Member
Karma: 43
Posts: 2491
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #5 on: May 23, 2011, 04:31:39 pm » |
Check the thread below for my tale of woe and intrigue. Never did solve it to my satisfaction, but I did find sort of a workaround. Would be very interested in comparing notes as there's still a mystery there... http://arduino.cc/forum/index.php/topic,59394.0.html
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #6 on: May 23, 2011, 05:43:53 pm » |
Jack, Looked over your post and yes it sounds very similar. I didn't give the crystal part a real close read - my proto board uses 22pF caps and I have the same problem if I put the chip in the Arduino. I don't have the inclination to spend the time trying to get 2 out of 30 chips working by futtizing around and loading sketches with the ISP. If they not going to work like all the rest, I don't want to deal with them. Good luck on getting your going, however. 
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
Grand Blanc, MI, USA
Offline
Edison Member
Karma: 43
Posts: 2491
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #7 on: May 23, 2011, 09:12:43 pm » |
Yeah I'm not sure how much the part about the crystal mattered in this case. Bottom line was the errant chip worked with the ATmegaBOOT_168_atmega328.hex bootloader, but would not work with Optiboot. So I was just curious which bootloader yours didn't work with.
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #8 on: May 23, 2011, 09:23:42 pm » |
Oh, - it was just just the standard bootloader loaded from Tools in the IDE. I think the bootloader loaded fine. Got the flashing LED. Just couldn't uplaod a sketch after that. Same as your problem. If it was only one chip I'd just say it was a fluke. But 2 & yours - it's a pattern! John
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
Grand Blanc, MI, USA
Offline
Edison Member
Karma: 43
Posts: 2491
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #9 on: May 23, 2011, 09:39:24 pm » |
Agree, but which bootloader? What board did you have selected when you burned the bootloader?
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #10 on: May 23, 2011, 09:58:29 pm » |
Oh (x2) "Arduino Duexxx or Nano w/ATmega328"
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
Grand Blanc, MI, USA
Offline
Edison Member
Karma: 43
Posts: 2491
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #11 on: May 23, 2011, 10:49:48 pm » |
Oh (x2) "Arduino Duexxx or Nano w/ATmega328"
Hmmm, that's the one that worked with my chip, it wouldn't work with the Uno (Optiboot) bootloader, where other chips did. So backwards I guess. Weird. Was hoping for a pattern. Still seems like similar symptoms. Date code on my chip is 1051.
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #12 on: June 22, 2011, 05:51:15 pm » |
Just to follow up . . . I was up to 4 "bad" chips - out of ~50. Using the same setup described in the 1st post, I did the same operation on another machine - same REL 22 installed. I was able to bootload and program all 4 of the "bad" chips. A mystery I'm not inclined to pursue, but just in case it happens to you or a loved one.
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 116
Posts: 10142
|
 |
« Reply #13 on: June 22, 2011, 07:26:30 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Offline
Edison Member
Karma: 43
Posts: 2491
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #14 on: June 22, 2011, 07:29:54 pm » |
Just to follow up . . . I was up to 4 "bad" chips - out of ~50. Using the same setup described in the 1st post, I did the same operation on another machine - same REL 22 installed. I was able to bootload and program all 4 of the "bad" chips. A mystery I'm not inclined to pursue, but just in case it happens to you or a loved one.
Update appreciated. I still have the one that gave me trouble, so I'll try that approach. Maybe that'll chase the, ummm, gremlins out.
|
|
|
|
|
Logged
|
|
|
|
|
|