can CodeWarrior read S19 files for programming?

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

can CodeWarrior read S19 files for programming?

跳至解决方案
4,701 次查看
rlw
Contributor I
Currently using a P&E Multilink 12 USB directly with CodeWarrior.

The development module from our client *had* calibrations in it, byt I accidently erased them. The client can give us an S19 file, but we do not have any way to program the S12X other than via CodeWarrior.

I am unable to find anyway that CW can read the S19 file and program it into the S12X.

The only other software I have found is P&E's PROGR12Z program, but that will cost us extra moeny the client is unwilling to reimburse us for.

The only remaining alternative is to wait for the client to send us another module.

Is there a way to get CodeWarrior to read and program from the S19 file?

Is there another (low cost) solution?
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,831 次查看
CrasyCat
Specialist III
Hello
 
CodeWarrior debugger is able to program S19 file.
 
Main issue here is how are destination address specified in the S19 file?
Are there specified using logical or global addresses?
 
Basically you can load a S19 file into the target CPU using the debugger File -> Load Application menu.
The loader assumes that the addresses within the S record file are logical (i.e. <BankNbr><offset>. So if the S19 file includes logical addresses, jut use File -> Load Application and browse for the s record file.
 
If the S record contains global addresses, you have to add following environment variable to your Debug project file (*.ini file):
     SRECISS12XGLOBALADR=1
This environment variable must be added to the [HI-WAVE] section in the Debug Project file.
 
If the S record contains linear addresses, you have to add following environment variable to your Debug project file (*.ini file):
     SRECISHCS12LINEARADR=1
This environment variable must be added to the [HI-WAVE] section in the Debug Project file.
 
Note that all addresses within a S record file should be either logical, linear or global. You cannot have a mix.
 
Additionally I assume you need to load the S19 file AND your application. Am I right?
 
Then I would recommend you to use "P&E Multilink/Cyclone Pro" -> "Flash" to load the S 19.
Make sure to Enable only flash blocks where you want to load your S record and press "Load".
 
I hope this helps a little bit and is not too confusing :smileyhappy: 
 
CrasyCat

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,832 次查看
CrasyCat
Specialist III
Hello
 
CodeWarrior debugger is able to program S19 file.
 
Main issue here is how are destination address specified in the S19 file?
Are there specified using logical or global addresses?
 
Basically you can load a S19 file into the target CPU using the debugger File -> Load Application menu.
The loader assumes that the addresses within the S record file are logical (i.e. <BankNbr><offset>. So if the S19 file includes logical addresses, jut use File -> Load Application and browse for the s record file.
 
If the S record contains global addresses, you have to add following environment variable to your Debug project file (*.ini file):
     SRECISS12XGLOBALADR=1
This environment variable must be added to the [HI-WAVE] section in the Debug Project file.
 
If the S record contains linear addresses, you have to add following environment variable to your Debug project file (*.ini file):
     SRECISHCS12LINEARADR=1
This environment variable must be added to the [HI-WAVE] section in the Debug Project file.
 
Note that all addresses within a S record file should be either logical, linear or global. You cannot have a mix.
 
Additionally I assume you need to load the S19 file AND your application. Am I right?
 
Then I would recommend you to use "P&E Multilink/Cyclone Pro" -> "Flash" to load the S 19.
Make sure to Enable only flash blocks where you want to load your S record and press "Load".
 
I hope this helps a little bit and is not too confusing :smileyhappy: 
 
CrasyCat
0 项奖励
回复
1,831 次查看
isionous
Contributor III

CrasyCat Wrote:

 

If the S record contains global addresses, you have to add following environment variable to your Debug project file (*.ini file):

 

SRECISS12XGLOBALADR=1

 

This environment variable must be added to the [HI-WAVE] section in the Debug Project file.
---
Is there a corresponding command to put in the Hiwave command window to switch between global addressing (SRECISS12XGLOBALADR=1) and nonglobal addressing (SRECISS12XGLOBALADR=0) in the same session?
0 项奖励
回复
1,831 次查看
CrasyCat
Specialist III

Hello

 

No. The debug session will accept either S records with global addresses or S records with logical addresses.

 

You cannot switch between different format within one session.

 

CrasyCat

0 项奖励
回复