problems in erasing/programming  PC9S12XEP100 Flash blocks

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

problems in erasing/programming  PC9S12XEP100 Flash blocks

2,491 Views
nader
Contributor I
hi,
i'm using EVB9S12XEP100 which contains PC9S12XEP100 with mask set 0M48H.
i have a problem with erasing/programming the flash blocks.
in True-Time when i load an abs file i have the following messeg " attempt to run or to stepan application while flash modules are selected do you want to unselect allmodules and run/step" i choose yes or no and found no difference.
the problem is: when i open the flash window and trying to erase the ALL_PPAGES it always fails. also when i try to load an abs file it always fails at the verification.
in the flash window i find that ALL_PPAGES starts at 00C0,8000 and ends at 00FF,BFFF  !!
i think this is not implemented in my device (in the datasheet i found that FLASH range ends at 7F,FFFF)
True-Time chooses mcu02D3.fpp by default as a configuration file for flashing.
summary: i think that i cannot program or erase flash blocks starts from adress FFFF.

kindly help.
Labels (1)
0 Kudos
5 Replies

487 Views
CompilerGuru
NXP Employee
NXP Employee
>i'm using EVB9S12XEP100 which contains PC9S12XEP100 with mask set 0M48H.
>i have a problem with erasing/programming the flash blocks.
>in True-Time when i load an abs file i have the following messeg " attempt to run or to stepan
>application while flash modules are selected do you want to unselect allmodules and
>run/step" i choose yes or no and found no difference.

I think (not an expert here), that this message is shown when using a special flash dialog. With the normal flashing happening when starting the debugger from CW, I never saw this message.

>the problem is: when i open the flash window and trying to erase the ALL_PPAGES it always fails.
>also when i try to load an abs file it always fails at the verification.
That does not sound good. The problem could be that you are not using the expected addresses, see below.

>in the flash window i find that ALL_PPAGES starts at 00C0,8000 and ends at 00FF,BFFF  !!
>i think this is not implemented in my device (in the datasheet i found that FLASH range ends at 7F,FFFF)

The HCS12X actually have multiple address spaces. The pdf speaks from "Global" addresses when it uses the 0x700000'G..0x7FFFFF'G area. Normally the debugger is using "logical addresses", they are built with a 16 bit offset and the PPAGE value used if the offset is in 0x8000..0xBFFF (or the content of the other page register, if in a area controlled by one).
So 0xC08000'L..0xC0BFFF'L + 0xC18000'L..0xC1BFFF'L + .. 0xFF8000'L..0xCFFFFF'L is the same memory as 0x700000'G..0x7FFFFF'G!
You may also have a look at the ...\Freescale...\Prog\hcs12xadrmap.exe program, it displays how the addresses are mapping.
Make sure you use logial addresses in the prm file too. If you enter there global address values, they wont fit into the logical ones and I would expect the validation failure you see.

>True-Time chooses mcu02D3.fpp by default as a configuration file for flashing.
>summary:
>i think that i cannot program or erase flash blocks starts from adress FFFF.

? Not sure what you mean by the last sentence. It is supposed to support to flash the whole chip....
 But 0xFFFF is a bit a unusual start address for a flash block :smileyhappy:

Daniel

0 Kudos

487 Views
nader
Contributor I
my problem is that i cannot erase the ALL_PPAGES FLASH section.....
is this a HW issue?
0 Kudos

487 Views
nader
Contributor I
thank you CrazyCat and CompilerGuru for your help.
the problem has been solved by using CodeWarrior 4.6...
thanks again.
0 Kudos

487 Views
CrasyCat
Specialist III
Hello
 
- Which version of CodeWarrior are you using?
  To retrieve that info:
    - Start CodeWarrior
    - Select Help -> About Freescale CodeWarrior
    - Click on "Install Products"
    - CodeWarrior version used is displayed on top in the Installed Products dialog.
CrasyCat
0 Kudos

487 Views
nader
Contributor I
Hi,
i'm using "HCS12X v4.5, Service Pack XEP100, build060614"
Thanks

0 Kudos