New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stk500v2_command(): command failed #238

mpd-dude opened this Issue Jun 16, 2015 · 2 comments


None yet
2 participants

mpd-dude commented Jun 16, 2015

Hi all,

when I perform a "platformio run --target upload"

the following error messages appeards:
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: stk500v2_command(): command failed
avrdude done. Thank you.
scons: *** [upload] Error 255

Inside my "platformio.ini" file I have
platform = atmelavr
framework = arduino
board = megaatmega2560

I am using an Arduino MEGA 2560 under Win7.

A simple "platformio run" runs without any problems and compilation seems ok.

The same sketch can be uploaded using the Arduino IDE without any problems.

I am a bit stuck here. Any hints are appreceated.



This comment has been minimized.


ivankravets commented Jun 17, 2015

Thanks for the report!

Please try development version

Did it help you?

@ivankravets ivankravets added this to the 2.1.2 milestone Jun 17, 2015

@ivankravets ivankravets added the bug label Jun 17, 2015

@ivankravets ivankravets self-assigned this Jun 17, 2015

@ivankravets ivankravets modified the milestones: 2.2.0, 2.1.2 Jun 17, 2015


This comment has been minimized.

mpd-dude commented Jun 17, 2015

Thanks a lot for the quick reply and the fix!

Yes, it fixed the problem and uploading is working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment