Created Thu, 07 Aug 2014 23:13:53 +0000 by mdsousa
Thu, 07 Aug 2014 23:13:53 +0000
I have a Max32 with Mpide 0023-linux64-20140316. I have Tools->Board->chipKIT->chipKIT MAX32 selected. I can upload and run my sketch effectively while also viewing the serial monitor. Once it stops and I try to upload again I get the following:
avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer
It's usually a bunch of the ReceiveMessages before I get the getsync message.
Sometimes this happens when I try to view the Serial Monitor.
To fix this, I disconnect the board and then reconnect and start over. Am I doing something incorrect?
Fri, 08 Aug 2014 12:42:34 +0000
I've figured this out. It seems that each time I have an uploading failure, there would remain an avrdude running in the background. When I did a 'sudo killall avrdude', the problem has gone away. I sitll havent quite figured out the proper timing of using the reset button, will need to work on it.
Fri, 08 Aug 2014 12:52:04 +0000
Yeah, avrdude is a pain like that. It doesn't time out, it just keeps running forever.
UECIDE might work better for you - it has specific code to reset the board. You can even terminate the running avrdude process with a button ;)
Also you should make sure you don't have the serial terminal open while trying to upload. MPIDE and UECIDE should both try and close it for you, but having it open will interfere with the serial communications.