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
Solved! Go to Solution.
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
Hi, Thanks for the code.
You're welcome.
If you find some modifications to do please keep me informed .
Best Regards
Alexis MERCIER
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”.
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>
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
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
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
Do you mean the value dislayed in memory window are incorrect, but the value read back from flash are correct?
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.