data window and memory not updating in flash memory area using e128

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

data window and memory not updating in flash memory area using e128

Jump to solution
2,623 Views
e_taylor
Contributor III
hello:
 
another newbie question.
 
i have some default data values that are hard coded as dc.w in my main.asm orged @ $4000. when i use the debugger the code (default values) show in the data window and in the memory window at $4000 after the chip is flashed.
 
in my project code there is an user modify and save back to flash. when i reprogram the flash i don't see the changes in either the data of memory windows although they are set to periodical refresh and readily show changes in ram. manually refreshing has no effect. if i set PPAGE to $3e to move the $4000 data to the paged memory area the changes show correctly there at $8000. should i not see the changed data in the data and memory windows?
 
puzzled but trying???
 
 
thanks in advance
 
ed
 
Labels (1)
Tags (1)
0 Kudos
1 Solution
1,190 Views
CrasyCat
Specialist III
0 Kudos
5 Replies
1,190 Views
rexliao_tw
Contributor I

Dear Sir,

The correct answer link is broken.

Could you kindly help to get below information?

=================================================

Following Thread might answer your question:

http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&message.id=7599&query.id=15158...

0 Kudos
1,190 Views
CompilerGuru
NXP Employee
NXP Employee
Not sure which connection/pod and which CW version you are using, but just a guess,
is there a menu entry to setup the target memory? I think for some connection there is one and it contains
a setting to enable/disbale the reading of the content when suspended.

Daniel
0 Kudos
1,190 Views
e_taylor
Contributor III
hello daniel:
 
thanks for your response!
 
i'm using cw4.6 with a cyclone pro bdm interface on an e128 target. in the data window i see the default values assigned in the main.asm code. it is orged @ 0x4000. when i look in the memory window at 0x4000 the values are as expected.
 
FlashOperatingVariables  equ *
FDeltaTemp dc.w 30  ;rate of rise to detect diesel ignition (degrees c)
FDeltaTime dc.w 10  ;interval of rate or rise detection (seconds)
FPrePurge dc.w 10  ;glow pulg cool off (seconds)
FPreGlowHeat dc.w 10  ;glow pulg warm up time (seconds)
of note: in the data window which is set to hex format and periodical mode. if i look in the ram area at some counters that run from an interrupt they are not refreshing. if i halt the processor and then run again the values contuinue to change as expected.
 
in my program i have an editing module to change the various parameters through an sci port. when i change the values and save them back to flash the data window does not show the new values although they are changed for sure. this is the same with the memory window (viewing 0x4000) unless i set PPAGE to 0x3E and look at 0x8000 where the updated data shows correctly.  i have verified the change as the editing module moves the flash to ram and then edits the ram values. to second verify i connected an old tech arts bdm pod and looked in the flash area and indeed the changes are there.
 
probably a minor point, but i'm trying to learn as much as possible.
 
thanks again.
 
 
regards,
 
ed
0 Kudos
1,191 Views
CrasyCat
Specialist III
0 Kudos
1,190 Views
e_taylor
Contributor III
hi CrasyCat:
 
thanks for your reply! it worked perfectlt!
 
 
best regards,
 
ed
0 Kudos