When I run this command and many variations on the file paths I get this error.
avrdude: Version 7.3
Copyright the AVRDUDE authors;
see https://github.com/avrdudes/avrdude/blob/main/AUTHORS
System wide configuration file is c:\MyFolder\avrdude.conf
Using port : com13
Using programmer : jtag2updi
Programmer baud rate : 115200
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 1 of 10: sign-on command: status -1
I can upload from the IDE easily so I know the port number is correct and the cable and board are good. I have tried things like resetting the board, and rebooting. I am looking for any ideas of what might be going wrong.
avrdude: Version 7.3
Copyright the AVRDUDE authors;
see https://github.com/avrdudes/avrdude/blob/main/AUTHORS
System wide configuration file is c:\Orthos\avrdude.conf
Using port : com13
Using programmer : jtag2updi
Programmer baud rate : 115200
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 1 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 2 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 3 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 4 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 5 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 6 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 7 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 8 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 9 of 10: sign-on command: status -1
avrdude jtagmkII_recv_frame() error: timeout
avrdude jtagmkII_getsync() warning: attempt 10 of 10: sign-on command: status -1
avrdude jtagmkII_getsync() error: timeout/error communicating with programmer (status -1)
avrdude main() error: unable to open port com13 for programmer jtag2updi
Possible candidate serial ports are:
-P COM1
-P COM7
-P COM8
-P COM13 or -P usb:2341:0058
Note that above ports might not be connected to a target board or an AVR programmer.
Also note there may be other direct serial ports not listed above.
avrdude done. Thank you.
When you upload using the IDE, do you see a line like "Resetting board with baud rate 1200 bps"? You will need to have verbose output during upload enabled.
Yes, and I can access the com port with the mode command. I have tried mode and can open the port. It does not seem to help.
>mode com13: baud=12
Default to 7 data bits.
Default to even parity.
Status for device COM13:
------------------------
Baud: 1200
Parity: Even
Data Bits: 7
Stop Bits: 1
Timeout: ON
XON/XOFF: OFF
CTS handshaking: OFF
DSR handshaking: OFF
DSR sensitivity: OFF
DTR circuit: OFF
RTS circuit: OFF
Are you sure about that baud? I'd have to put my jtag2updi board back together again to check but I thought it used a much slower speed. Just for fun, try running the avrdude command without specifying the baud and see what happens.
Please disable verbose output during compilation and enable verbose output during upload and perform an upload using the IDE. Post the output here (please use code tags).
Are you sure about that baud? I'd have to put my jtag2updi board back together again to check but I thought it used a much slower speed. Just for fun, try running the avrdude command without specifying the baud and see what happens.
Compiling it with 6.3.1 and the config file also fails in the same way. I really think the issue is the reset that the IDE performs just before uploading the code.
Performing 1200-bps touch reset on serial port COM13
Google is failing me at finding out how to replicate this command.
You can mark your post #15 as the solution by clicking the little check box under that post. It might help others that encounter the same problem to know that there was a solution.
FYI, when using AVRDUDE 7.3, you can simply add an -r flag to the avrdude command and it will perform the "1200 bps touch" for you without any need to implement your own separate touch system:
FYI, when using AVRDUDE 7.3, you can simply add an -r flag to the avrdude command and it will perform the "1200 bps touch" for you without any need to implement your own separate touch system: