Go Down

Topic: Problem uploading sketch (Read 338 times) previous topic - next topic

Dimitris

I think I have locked my arduino pro (3.3v) by accidentally making the sketch spam the serial port.

I am now getting the following error while trying to upload a new one.

Code: [Select]

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x00
avrdude: failed to write flash memory, rc=-4
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00


Is this because of the serial port spamming, or is the board buggy?

Is there a way to clear the flash memory without losing the bootloader?
If not, how would you suggest that I handle the problem?

The FTDI chip works normally with another board I have.

Kyros

I'd pickup a new AT chip from someplace like adafruit that already has the bootloader burned. They're only about 5$

CaptainObvious

Yeah.. but, you can do that. Go look at a Pro-mini, it's some fun soldering!

I'm sorry, but this should be in the Hardware selection. You might get more answers there.

I've never seen that error, you do have the right board selected right? And what do you mean by "Spamming the serial port?"  Just printing to the Serial port one after another, without a delay?
That wouldn't lock it up, but I've never had the Flash error.. so I'm not really sure what to say! Have you tried Manually pushing reset when it's uploading?

Something else that took another member a while to find, it came up with the speed error, like you had the wrong board selected.. but turns out his Crystal or Resonator fell off, so it kept giving errors.

Just things to check for, good luck! (And move this to the Hardware selection!)

Go Up