Pages: [1]   Go Down
Author Topic: Problem uploading sketch  (Read 316 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Spokane, Washington
Offline Offline
God Member
*****
Karma: 0
Posts: 686
My name is Bob, and I'm an addict.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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!)
Logged

Pages: [1]   Go Up
Jump to: