From: Spencer Oliver Date: Mon, 12 Mar 2012 20:11:29 +0000 (+0000) Subject: cfg: correct pic32mx config typo's X-Git-Tag: v0.6.0-rc1~191 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35e7377160f75761ddab00c2a8e06d5cccf8f729;p=openocd cfg: correct pic32mx config typo's Change-Id: Ibe5b6b0efefc7cfc75d789eb7e9c7ee239526ae2 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/508 Tested-by: jenkins --- diff --git a/tcl/target/pic32mx.cfg b/tcl/target/pic32mx.cfg index 5e64cb84..598c905c 100644 --- a/tcl/target/pic32mx.cfg +++ b/tcl/target/pic32mx.cfg @@ -40,7 +40,7 @@ target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_TARGETNAM # global _PIC32MX_DATASIZE -global _PIC32MX_PROGSIZE +global _WORKAREASIZE set _PIC32MX_DATASIZE 0x800 set _PIC32MX_PROGSIZE [expr ($_WORKAREASIZE - $_PIC32MX_DATASIZE)] @@ -52,16 +52,16 @@ $_TARGETNAME configure -event reset-init { # global _PIC32MX_DATASIZE - global _PIC32MX_PROGSIZE + global _WORKAREASIZE # BMXCON mww 0xbf882000 0x001f0040 - # BMXDKPBA: 2k kernel data @ 0xa0000800 + # BMXDKPBA: 2k kernel data @ 0xa0000000 mww 0xbf882010 $_PIC32MX_DATASIZE - # BMXDUDBA: 16k kernel program @ 0xa0000800 - mww 0xbf882020 $_PIC32MX_PROGSIZE - # BMXDUPBA: 0k user program - mww 0xbf882030 $_PIC32MX_PROGSIZE + # BMXDUDBA: 14k kernel program @ 0xa0000800 - (BMXDUDBA - BMXDKPBA) + mww 0xbf882020 $_WORKAREASIZE + # BMXDUPBA: 0k user program - (BMXDUPBA - BMXDUDBA) + mww 0xbf882030 $_WORKAREASIZE } set _FLASHNAME $_CHIPNAME.flash0