Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | protecting individual pages of MC9s12xEP100 from getting erased by debugger

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

protecting individual pages of MC9s12xEP100 from getting erased by debugger - Laks...@delphi.com - Oct 30 3:39:41 2008

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 )