Cosmic compiler for s12 producing RAM section in S19 file.

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

Cosmic compiler for s12 producing RAM section in S19 file.

571 Views
sreedharannandu
Contributor I

Hi All,

 

I am using the Cosmic compiler 4.8.9 for S12G128 freesclae micro.I have my own linker script and batch file to build the s19 record.

The problem i am having is RAM addresses are generated in the s19 file generated though i dont have any RAM data auto intialization enabled..

 

I tried using possible options in chex utility to suppress RAM address but i  just cant't stop it in s19 file.

How can i suppress this? Why is the linker populating RAM address section in s19 file?

 

I have attached the linker file and batch file for reference.Please clarify it.

 

Shown below is the s19 record.Highlighted in RED is the RAM address!!!!. But why?

 

S00B0000546573742E7831324B

 

S2240020000100000000000000000000000000000000000000020000000000000000000000B8

 

S20C0020200000000000000000B3

 

S21B00C00087C7CE202820026C318E202825F9CF400016C01720FE0BE8

 

S21700C0171BF1EC1980CEC02AC60A180231710431F920FEF0

 

S21800C02A0300000000000000000000000000000000000000FA

 

S22400FF80C016C016C016C016C016C016C016C016C016C016C016C016C016C016C016C016FC

 

S22400FFA0C016C016C016C016C016C016C016C016C016C016C016C016C016C016C016C016DC

 

S22400FFC0C016C016C016C016C016C016C016C016C016C016C016C016C016C016C016C016BC

 

S22400FFE0C016C016C016C016C016C016C016C016C016C016C016C016C016C016C016C000B2

 

S804FFFFFFFE

 

 

 

 

Regards,

Nandu

Original Attachment has been moved to: Test.zip

Labels (1)
0 Kudos
1 Reply

278 Views
MJW
NXP Employee
NXP Employee

Hello Nandu,

please check your map-file (Test.map). It says there is 40 bytes of global data declared in main.o which has initial values assigned.

If you comment this (or remove the assignment) in main.c:

volatile unsigned char data_global[20]={0x01};

volatile unsigned char data_static[20]={0x02};

then the RAM entries in the s-record file should be gone.


Hope that helps.


MJW

0 Kudos