summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tcl/target/pic32mx.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/tcl/target/pic32mx.cfg b/tcl/target/pic32mx.cfg
index 0b99cdb4..202668b8 100644
--- a/tcl/target/pic32mx.cfg
+++ b/tcl/target/pic32mx.cfg
@@ -69,8 +69,15 @@ $_TARGETNAME configure -event reset-init {
set _FLASHNAME $_CHIPNAME.flash0
flash bank $_FLASHNAME pic32mx 0x1fc00000 0 0 0 $_TARGETNAME
+# add virtual banks for kseg0 and kseg1
+flash bank vbank0 virtual 0xbfc00000 0 0 0 $_TARGETNAME $_FLASHNAME
+flash bank vbank1 virtual 0x9fc00000 0 0 0 $_TARGETNAME $_FLASHNAME
+
set _FLASHNAME $_CHIPNAME.flash1
flash bank $_FLASHNAME pic32mx 0x1d000000 0 0 0 $_TARGETNAME
+# add virtual banks for kseg0 and kseg1
+flash bank vbank2 virtual 0xbd000000 0 0 0 $_TARGETNAME $_FLASHNAME
+flash bank vbank3 virtual 0x9d000000 0 0 0 $_TARGETNAME $_FLASHNAME
# For more information about the configuration files, take a look at:
# openocd.texi