#
global _PIC32MX_DATASIZE
-global _PIC32MX_PROGSIZE
+global _WORKAREASIZE
set _PIC32MX_DATASIZE 0x800
set _PIC32MX_PROGSIZE [expr ($_WORKAREASIZE - $_PIC32MX_DATASIZE)]
#
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