How to include unused rtshc12.c.o (ansixbi.lib) and rtsxgate.cxgate.o (ansi_xgi.lib) functions into object code?

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

How to include unused rtshc12.c.o (ansixbi.lib) and rtsxgate.cxgate.o (ansi_xgi.lib) functions into object code?

跳至解决方案
988 次查看
utwig
Contributor III

Hi,

 

I am working with a MC9S12XEP100 multiple application image bootloader project. In the future I might want to use more functions from the ansixbi.lib and ansi_xgi.lib libraries. However, my bootloader cannot update that part of the code.

 

Is there a way to:

1) Force all/part of unused functions of ansixbi.lib and ansi_xgi.lib libraries to be placed in the object code?

OR

2) Place ansixbi.lib and ansi_xgi.lib functions to another segment than the default NON_BANKED segment?

 

I had similar problems regarding datapage.c, but it was possible to include all of its functions by adding to the prm file:

ENTRIES

     datapage.c.o:*

END


BR,

Timo

标签 (1)
0 项奖励
1 解答
635 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

regarding to your questions:

1. you can add the unused function to ENTRIES section in prm file:

ENTRIES

     function_name

END


2. user need to modify lib source code. Not possible with only lib file.

在原帖中查看解决方案

0 项奖励
3 回复数
636 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

regarding to your questions:

1. you can add the unused function to ENTRIES section in prm file:

ENTRIES

     function_name

END


2. user need to modify lib source code. Not possible with only lib file.

0 项奖励
635 次查看
utwig
Contributor III

Ah, that's true. I can add every function from the libraries to the ENTRIES.

Thank you!

0 项奖励
635 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

you are welcome!

0 项奖励