problem when copying in RAM

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

problem when copying in RAM

跳至解决方案
1,518 次查看
alexismercier
Contributor III

hi everybody,

 

I'm trying to save some parameters in Flash memory bu I think Ihave some problems with copying in RAM ( see my attached program).

 

It seems to work but the two first digit of my numbers are invisible when I use the debugger.

 

 

thanks for help

 

Alexis MERCIER

Original Attachment has been moved to: FlashRoutines_JM60.rar.zip

标签 (1)
0 项奖励
回复
1 解答
1,278 次查看
alexismercier
Contributor III

Hi all,

I just solve the problem so i put the correct code in this discussion.It may be useful for other people.

Thanks a lot to all for your great help.

Best Regards.

Alexis MERCIER

在原帖中查看解决方案

0 项奖励
回复
10 回复数
1,279 次查看
alexismercier
Contributor III

Hi all,

I just solve the problem so i put the correct code in this discussion.It may be useful for other people.

Thanks a lot to all for your great help.

Best Regards.

Alexis MERCIER

0 项奖励
回复
1,278 次查看
weapon
Senior Contributor I

Hi, Thanks for the code.

0 项奖励
回复
1,278 次查看
alexismercier
Contributor III

You're welcome.

If you find some modifications to do please keep me informed .

Best Regards

Alexis MERCIER

0 项奖励
回复
1,278 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

I guess you didn’t select “refresh flash when halting” option.

When you debug code with hardware, go to  Hiwave debugger menu “MultilinkCyclonePro”, “Debugging Memory Map”. In the open dialog, select the memory section that need refresh, click “Modify/Details” button, in the new dialog, check “refresh flash when halting”.

1,278 次查看
alexismercier
Contributor III

I mean that i can't see the 2 first digit in the memory window , the two

last are correct. The reading (addition) is also correct

Regards

Alexis MERCIER

Le 17 juil. 2013 04:16, "Jun Zhang" <admin@community.freescale.com> a

écrit :

**

image: Freescale Community<https://community.freescale.com/index.jspa> problem when copying in RAM created by Jun

Zhang <https://community.freescale.com/people/jennie> in *8-bit

Microcontrollers* - View the full discussion<https://community.freescale.com/message/340310#340310>

0 项奖励
回复
1,278 次查看
alexismercier
Contributor III

Hi Jun Zhang ,

thanks for the speed of your answer.

refresh memory map is already checked in my parameters
as you can see there are only the two last digits of my numbers.

regards

Alexis MERCIER

screenshot program.JPG

0 项奖励
回复
1,278 次查看
weapon
Senior Contributor I

Hi,

Please close memory window in the debugger before you start the application, or else the window will read flash periodically, this operation may influence the flash programing in the application.

In addtion, did you check those values being programed are correct before they are programmed actually? I mean  those variables named carac, carac1,...in your code.

Best Regards.

Weiping

1,278 次查看
alexismercier
Contributor III

Still got the same problem after closing memory window. But the value that I get in the flashread function are correct . Is this normal ?

thanks a lot for your help

Alexis MERCIER

0 项奖励
回复
1,278 次查看
weapon
Senior Contributor I

Do you mean the value dislayed in memory window are incorrect, but the value read back from flash are correct?

0 项奖励
回复
1,278 次查看
alexismercier
Contributor III

Hi Weiping,

thanks for your help variable named carac,carac1... are correct before they are programmed I'll try to close the memory window before launching the application.

Best Regards

Alexis MERCIER.

0 项奖励
回复