problem when copying in RAM

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

problem when copying in RAM

Jump to solution
1,804 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
1,564 Views
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

View solution in original post

0 Kudos
Reply
10 Replies
1,565 Views
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 Kudos
Reply
1,564 Views
weapon
Senior Contributor I

Hi, Thanks for the code.

0 Kudos
Reply
1,564 Views
alexismercier
Contributor III

You're welcome.

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

Best Regards

Alexis MERCIER

0 Kudos
Reply
1,564 Views
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,564 Views
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 Kudos
Reply
1,564 Views
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 Kudos
Reply
1,564 Views
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,564 Views
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 Kudos
Reply
1,564 Views
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 Kudos
Reply
1,564 Views
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 Kudos
Reply