full functionality of this site and enable such things as forum posting.
Paul Drust:
Error after compile, status says "Uploading sketch...":
"avrdude: jtag3_open_common(): JTAGICE3/EDBG port names must start with "usb""
Prior to this error stopping me, it would just sit at "Uploading sketch..." and not do anything else. The Arduino would just be running whatever the last program uploaded was -- thru the Arduino IDE.
Any solution?
Thanks.
-- Paul
matt:
This uses one of the newfangled Atmel/Microchip crossovers with the new programming interface, doesn't it? I don't think I have any support for that at all yet, since I have had nothing to test it with or even have a clue how it works.
Can you use the Arduino IDE in verbose mode to capture the command that's used to upload to the board so I can look at replicating it in a suitable programmer module?
Paul Drust:
Matt,
Here's the upload output from the Arduino IDE:
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\Admin\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : usb
Using Programmer : xplainedmini_updi
Overriding Baud Rate : 115200
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
AVR Part : ATmega4809
Chip Erase delay : 0 us
PAGEL : P00
BS2 : P00
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 0
StabDelay : 0
CmdexeDelay : 0
SyncLoops : 0
ByteDelay : 0
PollIndex : 0
PollValue : 0x00
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
prodsig 0 0 0 0 no 61 61 0 0 0 0x00 0x00
fuses 0 0 0 0 no 9 0 0 0 0 0x00 0x00
fuse0 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse1 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse2 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse4 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse5 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse6 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse7 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse8 0 0 0 0 no 1 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 0 0 0x00 0x00
data 0 0 0 0 no 0 0 0 0 0 0x00 0x00
usersig 0 0 0 0 no 64 64 0 0 0 0x00 0x00
flash 0 0 0 0 no 49152 128 0 0 0 0x00 0x00
eeprom 0 0 0 0 no 256 64 0 0 0 0x00 0x00
Programmer Type : JTAGICE3_UPDI
Description : Atmel AVR XplainedMini in UPDI mode
ICE hardware version: 0
ICE firmware version: 1.19 (rel. 57)
Serial number : 9D27E8EB039A1D3B6158
Vtarget : 5.00 V
JTAG clock megaAVR/program: 0 kHz
JTAG clock megaAVR/debug: 0 kHz
JTAG clock Xmega: 0 kHz
PDI clock Xmega : 0 kHz
avrdude: Partial Family_ID returned: "mega"
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.04s
avrdude: Device signature = 0x1e9651 (probably m4809)
avrdude: erasing chip
avrdude: reading input file "C:\Users\Admin\AppData\Local\Temp\arduino_build_276455/Wifi_Basic_Test.ino.hex"
avrdude: writing flash (14108 bytes):
Writing | ################################################## | 100% 4.22s
avrdude: 14108 bytes of flash written
avrdude: reading input file "0x01"
avrdude: writing fuse2 (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of fuse2 written
avrdude: reading input file "0xC9"
avrdude: writing fuse5 (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of fuse5 written
avrdude: reading input file "0x02"
avrdude: writing fuse8 (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of fuse8 written
avrdude: reading input file "C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7/bootloaders/atmega4809_uart_bl.hex"
avrdude: writing flash (280 bytes):
Writing | ################################################## | 100% 0.12s
avrdude: 280 bytes of flash written
avrdude done. Thank you.
matt:
To be honest, I'm not entirely sure. I guess I'm going to have to install the Arduino IDE and investigate what the options are. On UECIDE I have two settings, one which gives verbose output from the commands, and one that gives verbose output from UECIDE running the commands, so you can see what is being executed. I was hoping the Arduino IDE had some thing similar.