Skip to content
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

Error flashing pro micro on windows #60

Closed
Micro-Biology opened this issue Jan 4, 2019 · 19 comments · Fixed by #135
Closed

Error flashing pro micro on windows #60

Micro-Biology opened this issue Jan 4, 2019 · 19 comments · Fixed by #135

Comments

@Micro-Biology
Copy link

Micro-Biology commented Jan 4, 2019

Issue occurs whilst using qmk toolbox on windows 8.1 enterprise edition.

Possibly related to this issue #42.

avrdude.exe -p atmega32u4 -c avr109 -U flash:w:"<hex-file-location>\macro12_default.hex":i -P <qmk-install-location>\QMK\QMK Toolbox\0.0.9\avrdude.exe: option requires an argument -- P Usage: avrdude.exe [options]

I assume it its just a error and it should be this or something similar:
avrdude.exe -p atmega32u4 -c avr109 -U flash:w:"<hex-file-location>\macro12_default.hex":i -P "<qmk-install-location>\QMK\QMK Toolbox\0.0.9\avrdude.exe"

@gwerbin
Copy link

gwerbin commented Feb 10, 2019

Same error, looks like some things got mixed up in the most recent release (which is now over a year old).

@Micro-Biology
Copy link
Author

Does anyone know how to use an older version? (or a new version with this fixed?)

@gwerbin
Copy link

gwerbin commented Mar 5, 2019

@Micro-Biology download it from the Releases page in this repository.

@BramVer
Copy link

BramVer commented Mar 7, 2019

@drashna Updated the .exe in the latest release as said here

@Micro-Biology
Copy link
Author

I've also updated the exe in the 0.9 release with the most recent version.

Unfortunately I'm already on this release, I did try reinstalling, still has the bug.
I think its just missing some quotations for the install location, my coding is very limited (especially on windows) or I'd attempt to fix it myself.

@BramVer
Copy link

BramVer commented Mar 13, 2019

The same problem here, couldn't get any release to work anymore, both on a win 8.1 VM or a win 8.1 dedicated machine.
I know a buddy with a Macbook and that one works fine though.

@drashna
Copy link
Member

drashna commented May 20, 2019

on a newly downloaded version, does this still happen?
(eg, redownload 0.0.9)

@kncarrier28
Copy link

kncarrier28 commented May 25, 2019

I just downloaded and get the same error. It's saying that the -P flag is given with no arguments. This flag is supposed to have the serial port for the device, so I'd guess that issue is with pulling in that serial port.
@drashna

@drashna
Copy link
Member

drashna commented Oct 1, 2019

This may be fixed now?

@whitehot6er
Copy link

I just downloaded v 0.0.14 on Win 10 yesterday (11/22/19) and encountered the same problem. Using version 0.0.13 I was able to successfully flash my pro micro.

@yanfali
Copy link

yanfali commented Nov 24, 2019

I just downloaded v 0.0.14 on Win 10 yesterday (11/22/19) and encountered the same problem. Using version 0.0.13 I was able to successfully flash my pro micro.

If you've upgraded windows recently it may have uninstalled the drivers. They do this on every major upgrade. Try reinstalling using zadig.

@fauxpark
Copy link
Member

Zadig won't help, Caterina is driverless.

I don't see any changes between 0.0.13 and 0.0.14 that would affect the behaviour of avrdude (barely anything on the Windows side of things was touched). It is probably just a coincidence that downgrading worked - this particular error seems to be somewhat of a race condition related to the appearance of the COM port and the USB device providing it.

@fauxpark
Copy link
Member

So as it turns out, there was a change that affected avrdude (more specifically, the COM port detection) after all. My bad. The PR linked above will fix this; for now just use the previous version.

@louia
Copy link

louia commented Apr 27, 2021

Not fixed for me, it just doesnt work with pro micro and QMK Toolbox 0.0.21 and avrdude 6..3

@fauxpark
Copy link
Member

Could you post a screenshot?

@louia
Copy link

louia commented Apr 27, 2021

Yes, absolutly. My pro Micro is new, its the first time with QMK.

image

@fauxpark
Copy link
Member

Have a look in Device Manager (hit View->Devices by container, and Show hidden devices). Uninstall any devices under the COM12 device, and tick the "uninstall driver" checkbox if there is one. Then try again.

@marcoklein
Copy link

Got the exact same error. Same versions as @louia - works if i execute the command manually and append com7 in my case for the port:

avrdude.exe -p atmega32u4 -c avr109 -U flash:w:"C:\Users\Marco\Documents\GitHub\qmk_firmware\crkbd_rev1_legacy_default.hex":i -P com7

(Note the com7 after the -P)

image

Error:
image

@N0c7u4
Copy link

N0c7u4 commented Jul 27, 2022

se ha solucionado el error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.