Hi all,
I have been working on code warrior 4.6 for the target MC9S12XEP100 . From the FLASH
dialog I see only four block entries as below
Block Module Name Address Range Status
0 FLASH_4000 4000 - 7FFF Programmed - Unselected
1 FLASH_8000 8000 - BFFF Programmed - Unselected
2 FLASH_C000 C000 - FFFF Programmed - Unselected
3 ALL_PPAGES C08000 -FFBFFF Programmed - Unselected
My interest is to load the boot code into FLASH_8000 and FLASH_C000
load some libaries into PAGE C0 to PAGE CF
load the appl code into FLASH_4000 and PAGE D0 to PAGE FC
My interest is to protect the previously programmed pages from getting erases when I load
each codeset through the debugger.
For ex, to protect the boot code (in FLASH_8000 and FLASH_C000 ),
I have placed the command
NVMAEFSKIPSELECTION=FLASH AEFSKIPERASING 1 2 in the appl project .ini file. Then, when i
load the appl project, still the debugger erases all pages including FLASH_8000 and
FLASH_C000.
Now, if I change the command
NVMAEFSKIPSELECTION=FLASH AEFSKIPERASING 1 2 3, then FLASH_8000 and FLASH_C000 are not
erased.
However, with this option I see that my appl doesnot work anymore, as the pages don't seem
to be erased properly before being programmed.
I understand that since ALL_PAGES covers the whole memory range, if not included in the
AEFSKIPERASING, it erases the whole memory block.
But, however I need to erase few selected pages in ALL_PPAGES as my application/libraris
are going to reside there.
Is there a way to selectively protect each page from automatic erasure by the debugger for
MC9S12EP100?
thanks in advance,
Lak
------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )