customDuino upload problems

I have made a custom arduino (same basic setup as the Boarduino). My problem is that I cannot upload sketches to it. I am using a bootloaded atmega328.

At first everything seems to go fine, but then I get a slew of errors and no upload.

The correct board and com port are selected in the tools menu. The serial cable I am using has been used to program countless other chips and even similar custom boards. The chip can be programed fine in my boarduino.

IDE output:

Binary sketch size: 3550 bytes (of a 30720 byte maximum)
C:\Program Files (x86)\arduino-0017\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\arduino-0017\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pm328p -cstk500v1 -P\\.\COM1 -b57600 -D -Uflash:w:C:\Users\Adam\Documents\Arduino\dollhouse1\applet\dollhouse1.cpp.hex:i 


avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "C:\Program Files (x86)\arduino-0017\hardware/tools/avr/etc/avrdude.conf"

         Using Port            : \\.\COM1
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 57600
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Recv: 
avrdude: Recv: 
         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     5     4    0 no       1024    4      0  3600  3600 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
avrdude: Send: A [41] . [80]   [20] 
avrdude: Recv: 
avrdude: Recv: 
avrdude: Recv: 
avrdude: Send: A [41] . [81]   [20] 
avrdude: Recv: 
avrdude: Recv: 
avrdude: Recv: 
avrdude: Send: A [41] . [82]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x41
avrdude: Send: A [41] . [98]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x41
         Hardware Version: 2
         Firmware Version: 1.4368076
avrdude: Send: A [41] . [84]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x98
avrdude: Send: A [41] . [85]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x20
avrdude: Send: A [41] . [86]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x41
avrdude: Send: A [41] . [87]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x84
avrdude: Send: A [41] . [89]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x20
         Vtarget         : 197050696.5 V
         Varef           : 268691.6 V
         Oscillator      : 1.373 Hz
         SCK period      : 40.2 us

avrdude: Send: A [41] . [81]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x41
avrdude: Send: A [41] . [82]   [20] 
avrdude: Recv: 

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x85
avrdude: Send: B [42] . [86] . [00] . [00] . [01] . [01] . [01] . [01] . [03] . [ff] . [ff] . [ff] . [ff] . [00] . [80] . [04] . [00] . [00] . [00] . [80] . [00]   [20] 
avrdude: Recv: 
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x20
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: Send: Q [51]   [20] 
avrdude: Recv: 
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x41

avrdude done.  Thank you.

Thanks for looking,
-Adam

Can you make sure that your serial and automatic reset functions work? Maybe program your 328 in an arduino with a serial echo then move it to your custom board.

it's easier to debug a program you wrote than the bootloader!