-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Nano Every on linux: "avrdude: jtagmkII_getsync(): sign-on command: status -1" when uploading sketches #124
Comments
Hi @chconnor , |
@chconnor We have the same issue. We made a small python script to be executed before attempting to upgrade firmware. This script performs the baud rate "handshake" and also makes sure to enable hupcl as it is needed for arduino reset. It seems the Arduino IDE is also supposed to do this, but for some reason it does not work properly. Perhaps this is explained by @facchinm . #!/usr/bin/python3
# Run this script to reset the Arduino Nano Every
# eg. sudo python3 mcu_reset.py
#
# Note: You must install pyserial first; i.e. sudo pip3 pyserial
import serial
import os, sys
# total arguments
n = len(sys.argv)
if n >= 2:
port = sys.argv[1]
else:
port = '/dev/ttyACM0'
print("Port: {}".format(port))
#re-enable hupcl temporarily (necessary for arduino reset using serial port)
os.system('sudo /bin/stty -F {} hupcl'.format(port))
try:
#perform Arduino Nano Every reset "handshake"
ser = serial.Serial()
ser.baudrate = 1200
ser.port = port
ser.open()
ser.close()
except serial.SerialException:
print("Error: serial.SerialException")
exit() |
Hi, Arduion IDE: It is really annoying, is there any solution coming? Also, when the error message starts appearing: Is there any way to abort the upload without closing the IDE? Thanks for all the great Arduino stuff - I am a supporter from day 1! |
Hi, Hi, Below is the output from an attempt to upload blink, (attached my conf file). I am at a loss, and there seems to be no way to abort the uploading process, which is really painful... Any help would be greatly appreciated, my project is being killed by these delays... And now I fear that the board is burning up... for blink (my config file is attached)à
|
This is an ongoing issue and quite painful. I learned that setting the serial monitor to 1200 baud, BEFORE UPLOADING, will mostly make the upload work. After the upload works once, the serial monitor can be set to anything and the upload will continue to work, as long as the Nano Every is not powered off. I am not sure what happens if the reset button is pressed, though. It would be nice if someone were to integrate this workaround into the the Arduino IDE (I am using version 2.3.2 , on Ubuntu 22.04.04) Cheers, |
Hello, |
For me resetting the arduino remotely helped. This short script helped me reset Nano Every ( https://stackoverflow.com/a/55985897/468921 )
|
How are people programming their Nano Every boards? How can this not be fixed after 18 months? I'm a brand new Arduino user, but a highly experienced engineer, so not a "newbie". I'm suffering with the same issues here with my very first Arduino board which, unfortunately, is a Nano Every. I can't go to another board, this is replacing a Nano in an existing project and I need the extra memory of the Every. Environment is Windows 10 Pro, IDE 2.3.2. I tried IDE 2.0.2 but had the same problem. The IDE automatically detects the board and will read board info. At this point I'm dead in the water. This seems ridiculous, Arduino development is supposed to be "easy". Is there no work-around for this issue? Is there a separate UPDI programmer I can use with the IDE? Perhaps this one? FWIW, with the verbose option turned on here is the IDE output:
|
FWIW, all my problems with -1 have been that another program is using the COM port. It seems, atleast on Linux, that only one program can access the special USB com port at a time. I know you're using windows, but try to look if you can somehow find some other program that's using the COM port. is it possible there's two versions of the software running? Check out also process list and systray. Try uninstalling IDE and going with CLI. Or try uninstalling CLI and going with IDE. Also, it's not a bad idea to use another computer to program the Arduino. Maybe an old laptop or an rPi? Just install CLI and use RDP. |
There are no other programs using the COM port in question. If there was a
conflict then how would the IDE automatically detect the presence of the
board, and how would it be able to read the board info?
…On Sun, Aug 25, 2024 at 5:06 PM Antti Rytsölä ***@***.***> wrote:
Overriding Baud Rate : 115200
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
FWIW, all my problems with -1 have been that another program is using the
COM port. It seems, atleast on Linux, that only one program can access the
special USB com port at a time.
I know you're using windows, but try to look if you can somehow find some
other program that's using the COM port. is it possible there's two
versions of the software running? Check out also process list and systray.
Try uninstalling IDE and going with CLI. Or try uninstalling CLI and going
with IDE.
Also, it's not a bad idea to use another computer to program the Arduino.
Maybe an old laptop? You just install CLI and use RDP.
—
Reply to this email directly, view it on GitHub
<#124 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX4YGS6X5X7HLAD3AO3GEQDZTJBOPAVCNFSM6AAAAAASML52J2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYHE4TGNZTGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I just tried using IDE 2.3.2 on a fully up to date Linux Mint build. I got the same exact behavior as on Windows. Board was auto-detected. Board info could be read. Upload fails with same exact error messages. |
There is a work around!
…On Mon, 26 Aug 2024, 00:11 w-u-2-o, ***@***.***> wrote:
I just tried using IDE 2.3.2 on a fully up to date Linux Mint build. I got
the same exact behavior as on Windows. Board was auto-detected. Board info
could be read. Upload fails with same exact error messages.
—
Reply to this email directly, view it on GitHub
<#124 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOUDF3OTT7VA2XZPW2H4GDZTJJC7AVCNFSM6AAAAAASML52J2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBZGAYTGNRUHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
In the ide, open the aerial monitor and set it to 1200 baud.
Then connect the nano every.
Open the serial monitor.
Then upload your sketch.
It should work fine!
…On Mon, 26 Aug 2024, 00:16 Grateful Frog, ***@***.***> wrote:
There is a work around!
On Mon, 26 Aug 2024, 00:11 w-u-2-o, ***@***.***> wrote:
> I just tried using IDE 2.3.2 on a fully up to date Linux Mint build. I
> got the same exact behavior as on Windows. Board was auto-detected. Board
> info could be read. Upload fails with same exact error messages.
>
> —
> Reply to this email directly, view it on GitHub
> <#124 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAOUDF3OTT7VA2XZPW2H4GDZTJJC7AVCNFSM6AAAAAASML52J2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBZGAYTGNRUHE>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
That work-around does not work for Windows. Apparently that is a Linux work-around only. So I proceeded to try this on the Linux machine I had set up in addition to Windows, as already noted above. The instructions are not complete. You can't open the serial monitor and set it to 1200 without first connecting the board. So I did that. Then I disconnected and reconnected the board with the serial monitor already open and set to1200. After that it took 2 tries to upload the sketch. The first try failed about halfway through. The second try appeared to be successful. |
Sorry for the bad info on the work around. I wasn't in front of my machine.
On Linux that fix works nearly 100% of the time.
I have no idea about development on windows as I seek to be fully open
source and haven't developed on windows in 30 years...
There must be a solution though because the nano every is a very popular
board.
I hope you find one!
Cheers,
Bob
…On Mon, Aug 26, 2024, 03:47 w-u-2-o ***@***.***> wrote:
That work-around does not work for Windows. Apparently that is a Linux
work-around only. So I proceeded to try this on the Linux machine I had set
up in addition to Windows, as already noted above.
The instructions are not complete. You can't open the serial monitor and
set it to 1200 without first connecting the board. So I did that. Then I
disconnected and reconnected the board with the serial monitor already open
and set to1200.
After that it took 2 tries to upload the sketch. The first try failed
about halfway through. The second try appeared to be successful.
—
Reply to this email directly, view it on GitHub
<#124 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOUDFY54HKLAHAC4NLRSY3ZTKCMXAVCNFSM6AAAAAASML52J2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBZGE2DCOBWGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Following up on this: right now it appears that there is some issue with my Windows machine. Linux works perfectly on a separate machine. I'm thinking it is some USB hardware limitation rather than a problem with Windows or drivers. Final update (problem solved): testing on another Win10 machine was successful. Redoubling efforts on the first Win10 machine one of the initially suggested changes (from the Arduino Forum) turned out to be a bad move. Reversing that change, plus whatever else I did prior to doing that, fixed the problem. |
Hello -- with IDE 2.0.2 or 1.8.19 running on Kubuntu Linux 22.04 I am unable to upload sketches to the Nano Every.
It gives many errors like this:
avrdude: jtagmkII_getsync(): sign-on command: status -1
...eventually followed by:
The same sketch/board/USB cable/USB port combination works fine in Windows 10 on IDE 2.0.2.
I have found, in Linux, that if I change the Serial monitor to 1200 baud (from the default of 9600), and then upload the sketch, it works. After that I can upload the sketch at any baud rate, including 9600 baud, until the board is power cycled.
I was told this was the place to report this issue. Let me know if I can provide any other information.
Verbose console output, in case it's useful:
I also tried with MegaCoreX on IDE 1.8.19. Same behavior -- although one difference is that 1.8.19 remembers the last baud rate (2.0.2 reverts to 9600 every time). If I just open the serial monitor window (already at 1200), but don't change baud, that's enough to "fix" it and make it work.
The text was updated successfully, but these errors were encountered: