How to make Library using CW2.10(for MPC56XX)

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

How to make Library using CW2.10(for MPC56XX)

Jump to solution
1,747 Views
Luke_Chun
NXP Employee
NXP Employee

Dear Team

 

May I ask about the CW2.10 for MPC56XX?

 

How to make Library using CW2.10(for MPC56XX)?

I tried to follow using S08 or S12's community guidance but it is not working for CW2.10.

I think that I took some mistake but I did not find the root cause.

I wish to find some reference / example for it.

 

Thank you.

 

0 Kudos
Reply
1 Solution
1,740 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Luke,

If you want to generate a library, please create the project for library by File->New-> Empty Project. Then open Target Settings by 'ALT'+'F7' key and set the linker as 'PowerPC EABI' on 'Target Settings' panel. Also change the 'Project Type' as 'Library' on the 'EPPC Target' panel and type the name for output library.

You can refer to the projects under the directory below. These projects are used to generate runtime libraries for MPC5:

c:\Program Files (x86)\Freescale\CW for MPC55xx and MPC56xx 2.10\PowerPC_EABI_Support\Runtime\Project\

Regards

Lukas

 

View solution in original post

0 Kudos
Reply
4 Replies
1,741 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Luke,

If you want to generate a library, please create the project for library by File->New-> Empty Project. Then open Target Settings by 'ALT'+'F7' key and set the linker as 'PowerPC EABI' on 'Target Settings' panel. Also change the 'Project Type' as 'Library' on the 'EPPC Target' panel and type the name for output library.

You can refer to the projects under the directory below. These projects are used to generate runtime libraries for MPC5:

c:\Program Files (x86)\Freescale\CW for MPC55xx and MPC56xx 2.10\PowerPC_EABI_Support\Runtime\Project\

Regards

Lukas

 

0 Kudos
Reply
1,731 Views
Luke_Chun
NXP Employee
NXP Employee

Hello Lukas

 

Thanks for your reply.

May I ask one more question?

 

I made Library but I have one more question.

 

I wish to locate the dedicated area about Library.

I tried to use some pragma function like below.

The function of same code file is possible to locate on my dedicated area.

However, the library function is not located on my dedicated area.

 

 

 

for your understanding, I have attached project...

I wish to locate the function and library into 0x31000.

Luke_Chun_3-1666147134585.png

 

I tried to do like below.

Luke_Chun_0-1666146739892.png

 

 

However, only function of same file is located on 0x31000...

Luke_Chun_1-1666146840622.png

Luke_Chun_2-1666147107598.png

 

how to locate the library into 0x31000?

 

Thank you.

 

 

 

 

0 Kudos
Reply
1,714 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Luke,

I found quick solution in AN4497:

lukaszadrapa_0-1666334656797.png

 

I did quick test in your project, so I added this to the linker file:

GROUP : {
.libcode (VLECODE) LOAD (0x00031000) : {
test.a (.text)
}
.libconst:
{
test.a (.rodata)
}
} > CCPBL_HAE_SECURITY_LIBRARY_Section

And here's the result:

lukaszadrapa_1-1666334773060.png

Regards

Lukas

1,704 Views
Luke_Chun
NXP Employee
NXP Employee

Hi Lukas

 

Thanks for your support.

It is correct what I am needed!!

 

Thank you.

0 Kudos
Reply