From 94dc7c0a939c042c71767b5cbdc1e1327ccecbea Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Mon, 24 May 2010 11:43:09 +0100 Subject: [PATCH] cfg: add pic32 virtual banks make use of the new virtual bank flash driver. Signed-off-by: Spencer Oliver --- tcl/target/pic32mx.cfg | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5