Download *.s19 file to MC9S12XEQ512 using CodeWarrior 5.0, Hiwave.exe and P&E USB Multilink

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

Download *.s19 file to MC9S12XEQ512 using CodeWarrior 5.0, Hiwave.exe and P&E USB Multilink

跳至解决方案
5,277 次查看
keke
Contributor I

Hello!

 

I am using CW 5.0, hiwave.exe and P&E USB Multilink Interface.

 

When I`m flashing a *.elf file down to the microcontroller everything works fine.

The problem appears when trying to download a *.s19 file to the microcontroller.

The following error is issued by the software:

 

"Error while writing to 7EC000..7EC200.

Information: No memory at this address."

 

I think the problem is the way that the hiwave treats the flash memory regarding elf and s19 files.

The configuration seems to have banked addressing witch fits for elf files, but doesn't work for s19 file witch uses linear(or physical addressing).

 

What settings do I have to make in order to be able to flash the s19 file?

What do I have to change in order to have linear addressing when flashing s19 file?

Maybe i need to create a new *.fpp file?

 

Thanks!

标签 (1)
标记 (1)
0 项奖励
1 解答
1,470 次查看
CrasyCat
Specialist III

Hello

 

According to the addresses you have specified I suspect the addresses specified in the S record file are in global address space.

 

You can load a S record file containing global addresses in HI-WAVE debugger.

Please go to www.freescale.com and look for FAQ-27684.

 

CrasyCat

在原帖中查看解决方案

0 项奖励
11 回复数
1,470 次查看
zhounenghui
Contributor I

hi all

I encountered the same issue and can't find FAQ-27684 from website. would you please send me this document? thanks a Lot!

my E-mail adress is zhounenghui@catarc.ac.cn.

Zhou

0 项奖励
1,470 次查看
TICS_Fiona
NXP Employee
NXP Employee

Below is the content in FAQ-27684:

Problem:         

   I have a HCS12X/HCS12XE S-record file that contains only global addresses. Can I load it into CodeWarrior debugger?

Solution:

   The issue here is that CodeWarrior debugger does not know whether the addresses specified in a S-record file are global addresses, or logical addresses. You can inform the debugger that you loading a S-record file containing global addresses as follows:

1) Close the CodeWarrior debugger.

2) Edit your debug configuration file (usually P&E_ICD.ini). If you are not sure of the configuration file name, you should see the full name of that file in the debugger's title bar.

Alternatively, it is the name of the file you specify in the -Prod option when starting the debugger.

3) In the [HI-WAVE] section of the configuration file, add following line:

SRECISS12XGLOBALADR=1

4) Save the file and restart the debugger.

From now on, the debugger will assume all S-record files contain global addresses. If you wish to load a logical S-record, you have to first remove that line.

You can also work with two distinct .ini files, one configured for global S-records, and another one for logical S-records.

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
1,470 次查看
chethankumar
Contributor III

Hi

Can anyone tell me the link where i can find HiWave.exe  file?

Thanks and regards

Ck

0 项奖励
1,470 次查看
BlackNight
NXP Employee
NXP Employee

it's inside the prog folder of your CodeWarrior installation.

Hope this helps,

Erich


0 项奖励
1,470 次查看
chethankumar
Contributor III

Hi Erich

I searched in that but in that there is no hiwave.exe files... Is it possible to download and install directly? if so can u provide the link?

Thanks and regards

CK

0 项奖励
1,470 次查看
BlackNight
NXP Employee
NXP Employee

Hi Chethan,

for me it is here

C:\Freescale\CWS12v5.1\Prog\hiwave.exe

of course this depends where you have installed CodeWarrior for MCU5.x.

As for the download:

see the 'Downloads' page on

CodeWarrior Development Studio for HCS12(X) Microcontrollers (Classic IDE) Product Summary Page

I hope this helps,

Erich

0 项奖励
1,470 次查看
CrasyCat
Specialist III

Hello

 

How are you generating the .s19 file?

For banked application you need to have a .bbl file in your application, which will care about the generation of the .s19 file.

Do not let the linker create the .s19 file.

 

If you create your project using the wizard, you should have the appropriate .bbl file in your project (in folder prm).

 

CrasyCat

0 项奖励
1,470 次查看
keke
Contributor I

Hello!

 

First of all, i'm not using CodeWarrior as a Development Environment.

The .s19 file is generated using another compiler, namely Cosmic Compiler.

I am able to flash this .s19 file using other tools(Sw & Hw), so there is no problem regarding this .s19 file, the file is correct.

 

My goal is to be able to flash this .s19 file using HI-Wave tool.

 

Thanks!

 

0 项奖励
1,470 次查看
kef
Specialist I

There are different kinds of S2 record address encoding. Banked, linear and global. Hiwave.exe treats S2 record address as banked. And I guess Cosmic generates S2 records with global address.

 

Higher order 8 bits of banked address contain PPAGE, lower bits - CPU address.

 

Try converting your global S records to banked S records using SRecCvt utility. Though I'm not sure 100% it's possible.

0 项奖励
1,470 次查看
keke
Contributor I

Hello!

 

Thanks a lot kef.

The SRecCvt utility was extremely helpfull.

I've managed to convert my s19 file and after that I was able to flash the converted s19 file and everything was ok.

 

My direction was to make some settings to Hi-Wave tool in order to be able to flash the initial s19 file, but I didn't managed to do that.

0 项奖励
1,471 次查看
CrasyCat
Specialist III

Hello

 

According to the addresses you have specified I suspect the addresses specified in the S record file are in global address space.

 

You can load a S record file containing global addresses in HI-WAVE debugger.

Please go to www.freescale.com and look for FAQ-27684.

 

CrasyCat

0 项奖励