tcl/target: Add LPC4357 config
[fw/openocd] / tcl / target / lpc4350.cfg
index fae54f7763ebe38b23f519dc831754e451fa3a21..4e23ffb0dd8111a53467f12789fbab7eceae9023 100644 (file)
@@ -51,6 +51,15 @@ if { [using_jtag] } {
        target create $_CHIPNAME.m0 cortex_m -chain-position $_CHIPNAME.m0
 }
 
+# LPC4350 has 96+32 KB SRAM
+if { [info exists WORKAREASIZE] } {
+       set _WORKAREASIZE $WORKAREASIZE
+} else {
+       set _WORKAREASIZE 0x20000
+}
+$_CHIPNAME.m4 configure -work-area-phys 0x10000000 \
+                       -work-area-size $_WORKAREASIZE -work-area-backup 0
+
 if {![using_hla]} {
    # on this CPU we should use VECTRESET to perform a soft reset and
    # manually reset the periphery