This is an automated email from Gerrit. Lars Poeschel (poeschell+open...@mailbox.org) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/5886
-- gerrit commit 5956bba9e7b0a55c959309d9bf603f66668b6313 Author: Lars Pöschel <poesc...@lemonage.de> Date: Mon Oct 26 14:43:22 2020 +0100 Add atmega2564rfr2.cfg target config file This adds a target config file for the ATmega256RFR2 chip from Atmel. It contains description for using the flash, eeprom, fuses and user signature of the chip. Change-Id: Iefd2e4f7f1acd032ea7ae3db3268b37d47790c54 Signed-off-by: Lars Pöschel <poeschell+open...@mailbox.org> diff --git a/src/flash/nor/avrf.c b/src/flash/nor/avrf.c index 5668408..d48bb01 100644 --- a/src/flash/nor/avrf.c +++ b/src/flash/nor/avrf.c @@ -70,6 +70,7 @@ static const struct avrf_type avft_chips_info[] = { {"atmega128", 0x9702, 256, 512, 8, 512, 0}, {"atmega128rfa1", 0xa701, 128, 512, 8, 512, 3}, {"atmega256rfr2", 0xa802, 256, 1024, 8, 1024, 3}, + {"atmega2564rfr2", 0xa803, 256, 1024, 8, 1024, 3}, {"at90can128", 0x9781, 256, 512, 8, 512, 0}, {"at90usb128", 0x9782, 256, 512, 8, 512, 0}, {"atmega164p", 0x940a, 128, 128, 4, 128, 0}, diff --git a/tcl/target/atmega2564rfr2.cfg b/tcl/target/atmega2564rfr2.cfg new file mode 100644 index 0000000..34143b8 --- /dev/null +++ b/tcl/target/atmega2564rfr2.cfg @@ -0,0 +1,30 @@ +set _CHIPNAME avr +set _ENDIAN little + +# jtag speed +adapter speed 4500 + +reset_config srst_only +adapter_nsrst_delay 100 + +#jtag scan chain +if { [info exists CPUTAPID] } { + set _CPUTAPID $CPUTAPID +} else { + set _CPUTAPID 0x0a80303f +} +jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID + +set _TARGETNAME $_CHIPNAME.cpu +target create $_TARGETNAME avr -endian $_ENDIAN -chain-position $_TARGETNAME + +set _FLASHNAME $_CHIPNAME.flash +set _FLASHNAMEEEPROM $_CHIPNAME.eeprom +set _FLASHNAMEFUSES $_CHIPNAME.fuses +set _FLASHNAMEUSER_SIG $_CHIPNAME.user_signature + +flash bank $_FLASHNAME avr 0 0x40000 0 0 $_TARGETNAME 0 +flash bank $_FLASHNAMEEEPROM avr_eeprom 0 0x2000 0 0 $_TARGETNAME 0 +flash bank $_FLASHNAMEFUSES avr_fuses 0 0x3 0 0 $_TARGETNAME 0 +flash bank $_FLASHNAMEUSER_SIG avr_user_signature 0 0x3072 0 0 $_TARGETNAME 0 + -- _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel