code worrior 5.1 can not initialize DFLASH variable

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

code worrior 5.1 can not initialize DFLASH variable

610 Views
zhaoning
Contributor II

Hi all,

In our old project, we use code worrior 4.7 to do a project. But when we use it in code worrior 5.1 ,we find out that it can not initialize variables in DFLASH. The following picture is the window in hivave 4.7. I found that the variable Product_ID had a correct init value. and DFLASH is programmed.pastedImage_1.png

but when I use the same program in code worrior 5.1 , I found that the ProdctID did not init as what I want.See picture below.

pastedImage_2.png

Does anybody have the same issue ?   MCU is 9s12p128. The project is attached. 

Labels (1)
0 Kudos
3 Replies

420 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello zhao ning ,

I using the simulation mode test your project, the Product_ID can init,  what about on your side?

I will find a board to have a try.

pastedImage_1.png

BR

Alice

0 Kudos

420 Views
zhaoning
Contributor II

Hi!

Thanks for your help.

We have found out how this issue come from.

In CW5.1 IDE, the default prm file as below.

pastedImage_1.png

,but the Mcu02e9.fpp file in CWS12v5.1\Prog\fpp is like below.

pastedImage_2.png

And we don't know why this happens.

As we replace this file as in CW4.7 in CWS12v4.7\Prog\fpp is like below,

pastedImage_3.png

Things turns to be OK. As we download the same program to the mcu, we read the correct value .

0 Kudos

420 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi zhao ning,

Thanks for your sharing.

BR

Alice

0 Kudos