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!
解決済! 解決策の投稿を見る。
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
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
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!
-----------------------------------------------------------------------------------------------------------------------
Hi
Can anyone tell me the link where i can find HiWave.exe file?
Thanks and regards
Ck
it's inside the prog folder of your CodeWarrior installation.
Hope this helps,
Erich
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
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
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
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!
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.
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.
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