-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
[Bug report] Cannot upload firmware to Arduino Leonardo. Port enumerated too quickly #691
Comments
Thanks a lot for the report.
Does it work for you? |
I did it.
are executed directly one after other (maybe 50-100ms delay) |
Please re-test the latest http://docs.platformio.org/en/latest/installation.html#development-version |
* develop: Add support for ST Nucleo L031K6 board to ARM mbed framework Fix typo Fix pylint error Update history Improve linker flags handling for mbed Update examples Improve include selection for mbed boards with a custom vendor Re-submit a package to PyPI Version bump to 2.10.0 (issues #683, #687, #688, #689, #691) Pass PlatformIO macros with version to libs Update ARM mbed framework package to v121 Typo fixes Move custom platform and board to separate page Add new ST Nucleo board Update build script for mbed framework Improve firmware uploading to Arduino Leonardo based boards // Resolve #691 Typo fix
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
avrdude: ser_open(): can't set com-state for "\.\COM9" avrdude done. Thank you. Code is not uploaded on arduino uno board. Help me |
I am having this problem in December 2019. Is there any advice on how to fix it? |
Do you mean this issue platformio/platform-atmelavr#172? |
@robertguyser |
Configuration
Operating system: Windows 7 64 bit
PlatformIO Version (
platformio --version
): 2.9.4Description of problem
Cannot upload software to Arduino Leonardo. Instead of waiting for new port, avrdude is called with old port parameter.
Steps to Reproduce
Actual Results
In device manager i see that COM7 disappears and for moment COM9 appears. SW should be uploaded to COM9.
From arduino IDE it works fine, avrdude is called with COM9 parameter.
I fixed it by modifying platformio\builder\tools\pioupload.py , function WaitForNewSerialPort. I added 1 second delay at beginning of this function, so there's time for port to enumerate, but I'm almost sure that this is not correct solution (i mean, it works, but it's just quickfix).
After this change it works fine (please look at function below)
The text was updated successfully, but these errors were encountered: