About MC9S12DP512,How to conversion between global address and logical address?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About MC9S12DP512,How to conversion between global address and logical address?

789 Views
yongpanan
Contributor II

The PPAGE between $20-$3F .And If i want to erase the flash except the $3F page. what should i do for it?

besides,How to conversion between global address and logical address?

0 Kudos
Reply
1 Reply

696 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Yongpan.

CW for HCS12(x) debugger defined FLASH and EEPROM in blocks. User can control FLASH/EEPROM programming with the pre-defined block, but can't with user defined block.

To check the pre-defined flash block in debugger, we need connect board with CW, then launch debugger .

In debugger command window, input FLASH command

>> FLASH

then you will see flash blocks as below for example:
   0  FLASH_4000        4000 -  7FFF   Programmed - Unselected
   1  FLASH_C000        C000 -  FFFF   Programmed - Unselected
   2  ALL_PPAGES      E08000 -FFBFFF   Programmed - Unselected
   3  EEPROM_C00         C00 -   FFF   Blank - Unselected
   4  ALL_EPAGES      FC0800 -FF0BFF   Blank - Unselected
   5  EEPROM_800         800 -   BFF   Blank - Unselected
   6  FLASH_8000        8000 -  BFFF   Programmed - Unselected

Above is all the debugger pre-defined blocks we can use later.

 Go to File->Configuration…->Load->Advanced… and select the items  you don't want to erease, then OK's, then save configuration ("File->Save Configuration")
 Close the debugger, and start a new debugger session.

Thus next time you launch debugger, then selected block will not be erased.

Regarding to How to conversion between global address and logical address, there is Hcs12xadmap tool integrated as a component in CW debugger

pastedImage_487.png

we can use it to calculate the conversion.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply