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

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

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

Jump to solution
1,247 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
894 Views
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.

View solution in original post

0 Kudos
Reply
3 Replies
895 Views
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 Kudos
Reply
894 Views
utwig
Contributor III

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

Thank you!

0 Kudos
Reply
894 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

you are welcome!

0 Kudos
Reply