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/5507

-- gerrit

commit f8a6c9315b6b87255de34b9e33d6d3638c48f615
Author: Lars Poeschel <poeschell+open...@mailbox.org>
Date:   Mon Nov 25 10:50:08 2019 +0100

    Add atmega256rfr2.cfg target config file
    
    This adds a target config file for the ATmega256RFR2 chip from Atmel.
    It contains description for using the flash, eeprom and fuses of the
    chip.
    
    Change-Id: I72d4146d59b03620f6e00ee91bbaf141be584871
    Signed-off-by: Lars Pöschel <poeschell+open...@mailbox.org>

diff --git a/tcl/target/atmega256rfr2.cfg b/tcl/target/atmega256rfr2.cfg
new file mode 100644
index 0000000..909f8d2
--- /dev/null
+++ b/tcl/target/atmega256rfr2.cfg
@@ -0,0 +1,28 @@
+set _CHIPNAME avr
+set _ENDIAN little
+
+# jtag speed
+adapter_khz 4500
+
+reset_config srst_only
+adapter_nsrst_delay 100
+
+#jtag scan chain
+if { [info exists CPUTAPID] } {
+   set _CPUTAPID $CPUTAPID
+} else {
+   set _CPUTAPID 0x0a80203f
+}
+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
+
+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
+

-- 


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to