|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3619
@ssh0le
|
 |
« Reply #1 on: March 17, 2013, 06:24:42 pm » |
do you still have a avr in your arduino? cause if so they would be clashing when avrdude says hello
also take out that 1uf cap and just wire resets together (ya I know its there for a reason, but its a debug point)
|
|
|
|
« Last Edit: March 17, 2013, 06:26:16 pm by Osgeld »
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 14
Arduino rocks
|
 |
« Reply #2 on: March 17, 2013, 06:27:40 pm » |
Hi Osgeld, how to check if it has the avr on?
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3619
@ssh0le
|
 |
« Reply #3 on: March 17, 2013, 06:30:11 pm » |
just remove the atmega328p from the arduino then try uploading to your bread board
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Brisbane, Australia
Offline
God Member
Karma: 17
Posts: 812
|
 |
« Reply #4 on: March 17, 2013, 06:37:31 pm » |
Hi The first thing I see here is it appears you're using a hybrid of several ideas to get things working. If using an Arduino Uno the 0.1uF capacitor to your programmer's reset is in an odd location. It shouldn't be connected to the reset on the target processor. Reverse its polarity so the stripe is away from the reset, and put the other side directly to GND. That is to stop the programmer from responding to the reset during programming (you want the target processor to reset, not the programmer in that situation). However if you follow the tutorial you link to, they are linking the reset pins together without a capacitor, and removing the ATMega from the Arduino - this is so the Arduino effectively becomes a USB converter which passes the signals through from the PC and there's no processor on board to respond to the reset so that signal goes direct to your target. So either method will work, but I expect not both  Next the pull-up resistor value from the target to +5V I should think is a little low. In contrast to your 46R, normally I'd use something like a 10k there. Here's what Atmel publishes in their Hardware Design Considerations application note on ATMega328: This pull-up resistor makes sure that reset does not go low unintended. The pull-up resistor can in theory be of any size, but if the Atmel®AVR® should be programmed from e.g. STK500/AVRISP the pull-up should not be so strong that the programmer cannot activate RESET by draw the RESET line low. The recommended pull-up resistor is 4.7kΩ or larger when using STK500 for programming. For debugWIRE to function properly, the pull-up must not be smaller than 10kΩ.
If you're comfortable with pulling the uC from your Arduino I'd go back to the original tutorial and follow those instructions closely. If you want to use the bootloader method another way would be to use a FTDI breakout board as explained in this excellent writeup by Nick Gammon. Hope this helps, Geoff
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 14
Arduino rocks
|
 |
« Reply #5 on: March 17, 2013, 06:40:13 pm » |
Oh yes the picture was wrong. I did take out the IC from the Arduino board when uploading a sketch. also take out that 1uf cap and just wire resets together (ya I know its there for a reason, but its a debug point) I've tried taking out the cap. The same error still showing up.
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3619
@ssh0le
|
 |
« Reply #6 on: March 17, 2013, 06:41:00 pm » |
cross your RX and TX lines, leave the cap out of it
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 14
Arduino rocks
|
 |
« Reply #7 on: March 17, 2013, 07:06:12 pm » |
cross your RX and TX lines, leave the cap out of it I've tried this and still had no luck.
|
|
|
|
« Last Edit: March 17, 2013, 07:40:16 pm by loogMaeNgaw »
|
Logged
|
|
|
|
|
Brisbane, Australia
Offline
God Member
Karma: 17
Posts: 812
|
 |
« Reply #8 on: March 17, 2013, 07:27:39 pm » |
Did you fix the resistor value?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 14
Arduino rocks
|
 |
« Reply #9 on: March 17, 2013, 07:36:54 pm » |
Hi strykeroz, Thanks for the information. I didn't have any luck using UNO so follow the instruction line by line and using Duemilanove w/ an ATmega328. However if you follow the tutorial you link to, they are linking the reset pins together without a capacitor, and removing the ATMega from the Arduino - this is so the Arduino effectively becomes a USB converter which passes the signals through from the PC and there's no processor on board to respond to the reset so that signal goes direct to your target. So either method will work, but I expect not both
Next the pull-up resistor value from the target to +5V I should think is a little low. In contrast to your 46R, normally I'd use something like a 10k there. This works well both on burning the bootloader and uploading a sketch on DIP28 package, but not when the target chip is QFP32. The reason I kept the cap and 46R on the setup was because it enabled the bootloading on the QFP32 package. Nick Gammon's document looks great. I'll give it a go. Thanks.
|
|
|
|
« Last Edit: March 17, 2013, 07:40:53 pm by loogMaeNgaw »
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 14
Arduino rocks
|
 |
« Reply #10 on: March 17, 2013, 07:38:16 pm » |
Yes I did change the resistor back to 10K Ohms but still can't upload a sketch.
|
|
|
|
|
Logged
|
|
|
|
|
|