code worrior 5.1 can not initialize DFLASH variable

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

code worrior 5.1 can not initialize DFLASH variable

1,350 次查看
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. 

标签 (1)
0 项奖励
回复
3 回复数

1,160 次查看
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 项奖励
回复

1,160 次查看
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 项奖励
回复

1,160 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi zhao ning,

Thanks for your sharing.

BR

Alice

0 项奖励
回复