Cannot upload code twice - ish

Hello All!

I have an odd problem with my new RedBoard I received with the SIK. I can upload my code to the device once and it runs! Hooray! But I cannot upload code again. I have found two work arounds:

  1. I can unplug the RedBoard and power it back up. When I do this, it accepts a new program one time.

  2. I select upload and then press the reset button within a few seconds. In this case it accepts the new program.

The error I receive is:

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

While I can certainly work with my found solutions, it does feel like I’m missing something. I’m using a Mac and Arduino software 1.6.5. I’m also relatively new to the whole Arduino ecosystem.

Thanks for any help you can lend.

It sounds like the board is not receiving a reset from the serial communications. I think I’ve read that this is a problem with Mac’s but since that’s not my platform I don’t recall the details. You could try googling “Arduino serial reset” or variations to see if there is help for the problem.

Good luck,

  • Chip

I did some poking around and couldn’t find a solution. But, uChip, your suggestion to search around for “Arduino serial reset” led to discover that my workarounds are the same workarounds if I had disabled that reset. I tried the suggestion I found to wire a 10uF capacitor between RESET and GND, but it didn’t work as I suspect it just made the board extra-no-serial-reset. In the end, I think I received a mildly defective board.

I’m not dissuaded at all! A minor defect like this I can certainly live with and I learned a ton just poking around trying to figure this stuff out.

Thanks for the help!

I managed to get this to work eventually on my MacBook Air. I had to install an older version of the Arduino software. I went for version 1.0.6. Now I can upload multiple times without it erroring. :slight_smile:

https://www.arduino.cc/en/Main/OldSoftwareReleases