S19 and phy files

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

S19 and phy files

Jump to solution
3,748 Views
SSK
Contributor I

Hello Forum members,

 

I am using CodeWarrior 5.7 with MC9S12A128 processor. When I build my project I find two output files in the bin folder - s19 and phy alongwith abs and map files. Can anyone tell the difference between the two s19 and phy files? When to use s19 and when to use phy file?

 

I am using P & E BDM multilink debugger to download the out file to target. When I use s19 file with BDM multilink, it gives some memory error but works fine with phy file. What is the reason for this?

 

I have an old s19 file but not the phy file and want to use this s19 to download to target using BDM multilink but as s19 is not accepted by BDM, I am unable to download the same? How should I proceed?

 

Your earliest help in this regard will be highly appreciated. Thanks in advance.

Labels (1)
Tags (1)
0 Kudos
1 Solution
1,227 Views
kef
Specialist I

S19 file contains S records with "logical" or "banked" addresses. S2 record address in such format is PPAGE * 0x10000 + 16bits CPU address.

Phy  file contains S records with "physical" or "linear" addresses. Linear S2 address is PPAGE * 0x4000 + CPU address mod 0x4000

 

You can convert S records from one format to another. You may look at Freescale web for SRecCvt utility or at www.pemicro.com for Log2Phy utility.

View solution in original post

0 Kudos
5 Replies
1,228 Views
kef
Specialist I

S19 file contains S records with "logical" or "banked" addresses. S2 record address in such format is PPAGE * 0x10000 + 16bits CPU address.

Phy  file contains S records with "physical" or "linear" addresses. Linear S2 address is PPAGE * 0x4000 + CPU address mod 0x4000

 

You can convert S records from one format to another. You may look at Freescale web for SRecCvt utility or at www.pemicro.com for Log2Phy utility.

0 Kudos
1,227 Views
SSK
Contributor I

Thanks kef for your reply.

 

I will use the log2phy utility to convert s19 file.

 

Can I use s19 directly with BDM multilink? or BDM only accepts phy format?

 

What setup is needed if s19 is to be used without converting to another format?

 

Thanks in advance.

0 Kudos
1,227 Views
kef
Specialist I

BDM multilink can't download S records, it's just a hardware that is often used to connect PC to target MCU.  In you starting post by "P & E BDM multilink debugger" did you mean Codewarrior Hiwave debugger and P&E Multilink hardware? Because it depends what debugger software you are using. You could use NoICE debugger (www.noicedebugger.com) with Multilink.

 

NoICE simply allows you to check/uncheck in load file dialog "S2 records have linear addresses" checkbox.

 

In Hiwave it is more difficult. FAQ-27684 is for S12X MCU's. It is almost the same for non-X S12, but you should use in step 3 different ini file string

 

SRECISHCS12LINEARADR=1

 

instead of

 

SRECISS12XGLOBALADR=1

 

 

 http://www.freescale.com/webapp/sps/utils/SingleFaq.jsp?FAQ-27684.xml

 

0 Kudos
1,227 Views
SSK
Contributor I

Hello Kef,

 

Thanks for your clarification.

 

Normally I am using Codewarrior Hiwave debugger and P&E Multilink hardware but in one case I have only s19 file which I need to program to MC9S12A128 using BDM multilink. Here I have to use the conversion utility to get phy file and use with BDM. Am I correct?

0 Kudos
1,227 Views
kef
Specialist I

Hiwave debugger uses banked/paged S records by default. To load linear/physical S records you need either to 1) convert from linear to banked format or to 2) follow FAQ from above, of course using SRECISHCS12LINEARADR=1 string instead of specified in the FAQ.

0 Kudos