I can build and upload sketches to the new NANO-EVERY board via the Arduino IDE.
It looks as if the IDE uses avrdude to program mega4809 chip via the SAMD11 USB-Serial chip using the UPDI protocol.
Forcing reset using 1200bps open/close on port COM39 C:\Users\David Prentice\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino16/bin/avrdude -CC:\Users\David Prentice\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino16/etc/avrdude.conf -v -patmega4809 -cjtag2updi -PCOM39 -b115200 -e -D -Uflash:w:C:\Users\DAVIDP~1\AppData\Local\Temp\arduino_build_577104/I2CexpDiag.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m {upload.extra_files} avrdude: Version 6.3-20171130 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "C:\Users\David Prentice\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino16/etc/avrdude.conf" Using Port : COM39 Using Programmer : jtag2updi Overriding Baud Rate : 115200 JTAG ICE mkII sign-on message: Communications protocol version: 1 M_MCU: boot-loader FW version: 1 firmware version: 6.00 hardware version: 1 S_MCU: boot-loader FW version: 1 firmware version: 6.00 hardware version: 1 Serial number: 00:00:00:00:00:00 Device ID: JTAGICE mkII 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 : JTAGMKII_PDI Description : JTAGv2 to UPDI bridge M_MCU hardware version: 1 M_MCU firmware version: 6.00 S_MCU hardware version: 1 S_MCU firmware version: 6.00 Serial number: 00:00:00:00:00:00 Vtarget : 5.0 V avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description avrdude: AVR device initialized and ready to accept instructions
I would expect to manually press a Reset button and use:
avrdude -c jtag2updi -p ATmega4809 -P com39
Note that I use the same "avrdude.exe" that comes with the new "megaAVR Core" for m4809 chips.
There does not seem to be an avrdude command to Force reset using 1200bps open/close on port COM39
Obviously I can stick with Arduino IDE but I would like to flash the NANO-EVERY via AS7 or CodeVision.
Normally you just use the appropriate avrdude command via the Tools Menu or batch file.
David.