Go Down

Topic: Custom PCB - Error Uploading Sketch (Error, Schematic and Project Pic Attached) (Read 359 times) previous topic - next topic

guido_duino

Hello,

I had a handful of custom PCBs built for a stepper motor project that I am working on. It's an ATmega328P-AU TQFP (Arduino bootloader installed) with and L293dd driver on-board. I'm using Arduino as ISP to program. I have a test nano (ICSP pins) that I can successfully upload a sketch to via the UNO. I am unable to upload a sketch to my prototype board. I do have a 10k resistor on the reset pin going to +. I'm wondering if I need a capacitor as well on the reset pin. Looks like a wiring issue judging by the 0's in the error? I've been tinkering with this thing for a while and can't seem to figure it out. Any help is greatly appreciated. Please see the error message and schematic below:

       Using Port                    : COM4
       Using Programmer              : arduino
       Overriding Baud Rate          : 19200
       AVR Part                      : ATmega328P
       Chip Erase delay              : 9000 us
       PAGEL                         : PD7
       BS2                           : PC2
       RESET disposition             : dedicated
       RETRY pulse                   : SCK
       serial program mode           : yes
       parallel program mode         : yes
       Timeout                       : 200
       StabDelay                     : 100
       CmdexeDelay                   : 25
       SyncLoops                     : 32
       ByteDelay                     : 0
       PollIndex                     : 3
       PollValue                     : 0x53
       Memory Detail                 :

                                Block Poll               Page                       Polled
         Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
         ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
         eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
         flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
         lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
         hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
         efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
         lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
         calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
         signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

       Programmer Type : Arduino
       Description     : Arduino
       Hardware Version: 2
       Firmware Version: 1.18
       Topcard         : Unknown
       Vtarget         : 0.0 V
       Varef           : 0.0 V
       Oscillator      : Off
       SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
       Double check connections and try again, or use -F to override
       this check.


avrdude done.  Thank you.

An error occurred while uploading the sketch

DrAzzy

Either wiring mistake (check pinout - do you have it mirrored by any chance, ie, you have header installed on the opposite side of the board as the pinout would be correct for? Connector rotated the wrong way?), or the crystal isn't oscillating (correct value of loading caps? Check that none of the xtal pins are shorted to ground - really easy to get solder bridge under the cap when hand assembling SMD parts). Also check for bad solder joints on crystal and isp pins, especially if hand assembling, and for solder bridges between said pins.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Go Up