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

Unable to upload to Nano_Every #6

Closed
chrisinabox opened this issue Sep 29, 2020 · 1 comment
Closed

Unable to upload to Nano_Every #6

chrisinabox opened this issue Sep 29, 2020 · 1 comment

Comments

@chrisinabox
Copy link

chrisinabox commented Sep 29, 2020

I have been having persistent issues uploading to the Nano_Every from PIO with the atmelmegaavr platform (sample verbose at bottom).

It seems to be that the upload hangs as it forces a board reset and then waits for the upload port which I don't think is needed (I am no expert here). I have not had these issues with the Arduino IDE which is using the same version of avrdude (at this moment in time on my machine) so am fairly certain it's due to how PIO is handling uploads to this board.

I have managed to successfully program the board by modifying the nano_every.json so these two lines are false:
"require_upload_port": false,
"wait_for_upload_port": false

Verbose output for non modified json is consistently as follows:

<lambda>(["upload"], [".pio\build\nano_every\firmware.hex"])
AVAILABLE: jtag2updi
CURRENT: upload_protocol = jtag2updi
BeforeUpload(["upload"], [".pio\build\nano_every\firmware.hex"])
Auto-detected: COM23
Forcing reset using 1200bps open/close on port COM23
Waiting for the new upload port...
avrdude -v -p atmega4809 -C C:\Users\nocma4\.platformio\packages\tool-avrdude-megaavr\avrdude.conf -c jtag2updi -D -V -b 115200 -e -P "COM23" -U flash:w:.pio\build\nano_every\firmware.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\nocma4\.platformio\packages\tool-avrdude-megaavr\avrdude.conf"

         Using Port                    : COM23
         Using Programmer              : jtag2updi
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "\\.\COM23": Access is denied.



avrdude done.  Thank you.

*** [upload] Error 1
@chrisinabox
Copy link
Author

My mistake - only "wait_for_upload_port": false. The other line causes it to fail for somewhat obvious reasons.

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