Go Down

Topic: Can an MCU be partly bad? (Read 3 times) previous topic - next topic

Jack Christensen

I have a new ATmega328P which seems to program just fine via ICSP.  However, if I program it with the Arduino bootloader, while that seems to go fine, I then cannot upload a sketch from the Arduino IDE.  Reset causes an LED on PB5 to blink as usual, but upload fails with the typical:
Quote
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51


If I put another new chip (although from a different source) through the same process, then all is well.

My conclusion is, something may be amiss with the USART.  So maybe to ask this question is to answer it, and perhaps I'm just wondering whether others have experienced similar situations.  I've only done very limited testing, but the "bad" chip will at least blink LEDs on Ports B and D, notably PD0 and PD1.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Senso

So, you have wiped out the bootloader when using the ISP programmer..

xiserre


Jack Christensen

#3
Apr 25, 2011, 03:10 am Last Edit: Apr 25, 2011, 06:40 am by Jack Christensen Reason: 1
Yes, I'm using the Optiboot bootloader, and fuses are set accordingly, E/H/L L/H/E = 0xFF/0xDE/0x05.  And I get the same result whether I burn the bootloader from the Arduino IDE, or do it myself with avrdude.  Have done this successfully multiple times, with several chips, using both methods, so I'm fairly comfortable with the process.  It's just this one chip...
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Senso

Is the crystal the right 16Mhz value and the crystal caps are in the right value?

Go Up