CW3.1 Debugger starts : erase only a part of Flash in HCS08GT60

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CW3.1 Debugger starts : erase only a part of Flash in HCS08GT60

3,024件の閲覧回数
jeremie_appy
Contributor I
Hi everyone,
 
I use CW 3.1 for a HCS08GT60. I want the codewarrior debugger to erase only a part of the flash when it starts. For the moment all the flash is initialized.
I need to keep some data in the flash memory.
I can not find any documentation regarding debugger commands to add?
 
I am biginner with CW:smileywink:
 
 
Does anyone can help me?
 
Thank you


J2MEJediMaster added MCU part to header


Message Edited by J2MEJediMaster on 2007-08-27 09:56 AM
ラベル(1)
タグ(1)
0 件の賞賛
返信
6 返答(返信)

1,575件の閲覧回数
CrasyCat
Specialist III
Hello
 
For HC08 CPUs this is only possible starting with CodeWarrior for MCU V6.0
Please refer to following thread for more details:
 
This is not possible with CodeWarrior for HC08 V3.1.
 
CrasyCat
0 件の賞賛
返信

1,575件の閲覧回数
jeremie_appy
Contributor I
Ok, maybe the new version of codewarrior 6.0 has on board the "Non volatile preservation" but when the debug starts, some command files are executed :
 
In first the preload.cmd.... with its ack
 
Just after the Flash are erased and programmed. Which command or program do this erasing and this programming flash?
 
Can I find a command script that modify the erasing and the programming of the Flash?
 
 
Regards,
 
 
 
0 件の賞賛
返信

1,575件の閲覧回数
CrasyCat
Specialist III
Hello
 
I do not know how you did create your project,
In fact the preload and postload command file should be empty (or at least should not include any flash programming commands if you want to preserve some range of memory.
 
If you want to stick with V3.1 you need to find the appropriate P&E commands to program a portion of flash and place them into the preload resp. postload command file.
 
I am not aware that such command exist.
 
CrasyCat
0 件の賞賛
返信

1,575件の閲覧回数
J2MEJediMaster
Specialist I
What are you trying to accomplish by only erasing a portion of Flash? If you're trying to preserve variable data, you may want to consider storing the data into EEPROM. You can prevent bulk Flash erasure by modifying the Erase_unsecure.cmd file (that's the name for HC12X, it may be slightly different for other tools). These cmd files are typically located in project's cmd directory.

---Tom
0 件の賞賛
返信

1,575件の閲覧回数
jeremie_appy
Contributor I
I am trying to preserve variable data in the Embedded Flash area (I 've no EEPROM). When you go to the true time simulation and debug, after connecting the target, all the flash is initialized. I want just to preserve several data blocks
 
It's different with the HCS08 because I have no the Erase_unsecure.cmd file in the debugger cmd file, I've just Postload.cmd, Preload.cmd, Reset.cmd and startup.cmd...
 
Thanks for your help
 
Best regards,
 
 
0 件の賞賛
返信

1,575件の閲覧回数
jeremie_appy
Contributor I
Ok, I did not see the lastest message...
 
I will see for the new version of Codewarrior 6.0
 
Thanks
 
 
0 件の賞賛
返信