Avr dude error when trying to upload code to nano every

HI
I get the following error when trying to upload code to a nano every:
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): timeout/error communicating with programmer (status -1)
Failed uploading: uploading error: exit status 1

I get this error or variations of it when using Arduino version 1.8.19 or the new Arduino version 2.0 stable release. If i upload some simple code first such as the Blink example (which works), then i can upload more complex code. However it is a little bit "hit and miss". I have tried the same code with other boards and every thing works fine.

I also get the following error but it then still uploads successfully:
vrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description

I'm on mxlinux 21, user added to dialout group, registers Emulation is set to "None (ATMEGA4809)".

Anyone have any ideas on this. Any help is much appreciated.

Cheers.

are you printing to serial in your code?

Hi,
And thanks for the reply.

Yes there are some serial prints but only for debugging purposes when connected to a PC but they do remain in the code. The serial prints are via the USB port. Is that what you mean? However when it actually uploads these work and don't seem to cause any issues.

Any help is much appreciated.

Cheers.

This is normal.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.