AnsweredAssumed Answered

TPMS S19 file generation

Question asked by MHUST HUTCHINSON on Nov 27, 2017
Latest reply on Nov 30, 2017 by ZhangJennie

Hey,

 

I don't find undo CodeWarrior 10.7 for TPMS how to complete unused bytes of a section to a padding (by example 0xDEAD for my segment "ROM")

 

Here my linker file:

/** This is a linker parameter file for the fxth870000 */

NAMES END /** CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */

SEGMENTS /** Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
PARAM_TPMS = READ_WRITE 0x0050 TO 0x0083;
PARAM_BOOT = READ_WRITE 0x0084 TO 0x008D; /** Reserved for bootloader */
PARAM_FIRMWARE = READ_WRITE 0x008E TO 0x008F; /** Reserved for firmware */
Z_RAM = READ_WRITE 0x0090 TO 0x00FF;
MY_STACK = READ_WRITE 0x0100 TO 0x019F; /** Size = 0xA0 = 160 bytes */
RAM = READ_WRITE 0x01A0 TO 0x028F;
ROM_TPMS_CRC = READ_ONLY 0xC000 TO 0xC001; /** TPMS application CRC */
ROM = READ_ONLY 0xC002 TO 0xD7DF; /** TPMS application code */
ROM_TPMS_ISR = READ_ONLY 0xD7E0 TO 0xD7FF; /** TPMS application ISR table */
ROM_BOOT_APPL = READ_ONLY 0xD800 TO 0xDFDF; /** Reserved for bootloader code */
ROM_BOOT_ISR = READ_ONLY 0xDFE0 TO 0xDFFF; /** Reserved for bootloader ISR table */
END


PLACEMENT /** Here all predefined and user segments are placed into the SEGMENTS defined above. */

DEFAULT_RAM, /** non-zero page variables */
INTO RAM;

_PRESTART, /** startup code */
STARTUP, /** startup data structures */
ROM_VAR, /** constant variables */
STRINGS, /** string literals */
VIRTUAL_TABLE_SEGMENT, /** C++ virtual table segment */
DEFAULT_ROM,
COPY /** copy down information: how to initialize variables */
INTO ROM;

APPL_TPMS_CRC INTO ROM_TPMS_CRC;
APPL_TPMS_ISR_HANDLER INTO ROM_BOOT_ISR;

_DATA_ZEROPAGE, /** zero page variables */
MY_ZEROPAGE INTO Z_RAM;

/** Stack location */
SSTACK INTO MY_STACK;

/** PARAM registers */
TPMS_GLOBAL_RAM INTO PARAM_TPMS;
BOOT_GLOBAL_RAM INTO PARAM_BOOT;
FIRMWARE_GLOBAL_RAM INTO PARAM_FIRMWARE;

END

 

 

Thank you for your help,

Best regards,

Romain

Outcomes