TPMS S19 file generation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

TPMS S19 file generation

跳至解决方案
1,140 次查看
mhusthutchinson
Contributor I

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

标记 (1)
0 项奖励
回复
1 解答
938 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Romain.

Could you please check if you can refer this document to use FILL command to implement your code:

https://community.nxp.com/docs/DOC-101437 


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

3 回复数
939 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Romain.

Could you please check if you can refer this document to use FILL command to implement your code:

https://community.nxp.com/docs/DOC-101437 


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

938 次查看
mhusthutchinson
Contributor I

Hi Jennie,

Thank you for this document it is very easy to understand how to fill my code.

Best regards,

Romain

0 项奖励
回复
938 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Romain.

Good to know it helps. Don't hesitate contact us.

Have a nice day,

Jennie.

0 项奖励
回复