From: Spencer Oliver Date: Mon, 24 May 2010 10:43:09 +0000 (+0100) Subject: cfg: add pic32 virtual banks X-Git-Tag: v0.5.0-rc1~663 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94dc7c0a939c042c71767b5cbdc1e1327ccecbea;p=openocd cfg: add pic32 virtual banks make use of the new virtual bank flash driver. Signed-off-by: Spencer Oliver --- 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