error uploading

Ok

I got a serial arduino with max chip. First it didnt work because i got no
seial port . i tried usb to serial but it didnt work.

So i got a PCI serial card and now it works.

So when i tried to upload a code i dont know what happen because power is not stable. The power pin does ot fit properly it get on and off. I dont know if this fluctualtion damaege it.

So by some reason it didnt upload and give following error.

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I thout it was a random error and go on mdifying it replacing male header with female headers. Then i realize this was happening every time.

I tried other port other OS no good.

This error comes even it is not connected. I think this error has to do with that it cant connect the board.But the red led which is PIN13 led blink when going through port menu, uploading middle of uploading etc but with a final blink error comes.

I tried pressing reset button. It is auto reset because previouly there was know problem.

So its is boot loader problem , pc problem , board problem( due to heat of soldering iron on removing header

please reply