AnsweredAssumed Answered

I use CodeWarrior5.1/5.2 for HCS12(X). When I use the MCU named MC9S12XET256,the S19 file generated by CW can't show the machine code(hex) in RAM.I modify the PRM file to make the program stored in RAM,because I want the bootloader program run in RAM.when

Question asked by sadwinds 文 on Nov 17, 2017
Latest reply on Nov 28, 2017 by ZhangJennie

I do the following configure in PRM file:

/* non-paged RAM */
// RAM = READ_WRITE DATA_NEAR 0x2000 TO 0x3FFF;
RAM = READ_WRITE DATA_NEAR 0x2000 TO 0x2FFF; //正常RAM使用
RAM_VAR = READ_ONLY DATA_NEAR IBCC_NEAR 0x3000 TO 0x3FFF;

 

 

PLACEMENT 
     _PRESTART, 
     STARTUP, 
    ROM_VAR, 
    STRINGS,
    VIRTUAL_TABLE_SEGMENT, 
     //.ostext, /* eventually OSEK code */
     DEFAULT_ROM,
     NON_BANKED,
     COPY

               INTO RAM_VAR;

 

Thus all the machine code of this program will be stored in RAM_VAR,but I can't see the hex data in S19 file.

I have do this thing in MC9S12DP512 and MC9S12P64 before,it have no such problem.

Please tell me the solution,thank you!

Attachments

Outcomes