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

can't upload code to "leonardo" #266

Open
AMoktar opened this issue Oct 17, 2021 · 0 comments
Open

can't upload code to "leonardo" #266

AMoktar opened this issue Oct 17, 2021 · 0 comments

Comments

@AMoktar
Copy link

AMoktar commented Oct 17, 2021

while uploading via arduino ide works fine with the same leonardo device , I'm getting this error with PlatformIO

Linking .pio\build\leonardo\firmware.elf
Checking size .pio\build\leonardo\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  20.8% (used 533 bytes from 2560 bytes)
Flash: [===       ]  28.2% (used 8084 bytes from 28672 bytes)
Building .pio\build\leonardo\firmware.hex
Configuring upload protocol...
AVAILABLE: avr109
CURRENT: upload_protocol = avr109
Looking for upload port...
Use manually specified: COM10
Forcing reset using 1200bps open/close on port COM10
Waiting for the new upload port...
Uploading .pio\build\leonardo\firmware.hex
avrdude: ser_open(): can't open device "\\.\COM9": The system cannot find the file specified.



avrdude done.  Thank you.

*** [upload] Error 1
======================================================================================= [FAILED] Took 19.93 seconds =======================================================================================
The terminal process "C:\Users\AMoktar\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--environment', 'leonardo'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

platform.ini

[env:leonardo]
platform = atmelavr
board = leonardo
framework = arduino
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

No branches or pull requests

1 participant