MCLIB Pictus problem

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

MCLIB Pictus problem

784 Views
GoJuve
Contributor I

I've downloaded the MCLIB Pictus library for a motor control application with MPC5604P microcontroller. When I try to compile my CW project with the library (mclib_Pictus.a), I have 2 errors (and 1 warning):

"

No linker command file input for section '.vletext' in file 'GFLIB_Sin.o'.
Output section '.vletext' will be created.


Link Error   : Small data sections must have their own output sections specified in the linker command file.
No linker command file output section '.PPC.EMB.sdata0'.


Link failed.
"

 
How can I avoid this problem?
Thank you.



Labels (1)
0 Kudos
2 Replies

328 Views
stanish
NXP Employee
NXP Employee

Hi GoJuve,

 

Accoding to your description it seems you are using a wrong library.

.vletext is a section used by GreenHills compiler. Could you try to add the CodeWarrior MCLIB into your project instead of GHS one?

 

When you install MCLIB there are 3 directories (cw, ghs, diab)

Please use one of the libraries from cw directory:

 

MCLIB_MPC560xP_v0.xx.PPCEABI.V.SC.a (for signed char lib)

MCLIB_MPC560xP_v0.xx.PPCEABI.V.UC.a (for unsigned char lib)

 

Stanish

 

0 Kudos

328 Views
CrasyCat
Specialist III

Hello

 

In order to prevent the message around Small data sections, there are 2 solutions:

 

  1- Disable usage of small data in the project.

     If you are using CW for MCU V10.x, this is done as follows:

           - Open project properties dialog (select Project > Properties).

           - Go to C/C++ Build > Settings > Tool Settings > PowerPC CPU panel.

           - Set Small Data and Small data2 to 0

           - Click OK to save the changes.

    If you are using V2.x, this is done as follows:

         - Open target Settings dialog (Press ALT + F7)

         - Go to Target > EPPC Target panel

         - set Small data and Small Data2 to 0

         - Click on OK to save the changes.

 

  2- Explicitly place Small Data Sections in your application linker command file.

       Edit the .lcf file and add the section .PPC.EMB.sdata0 and .PPC.EMB.sbss0 to one of the

      output sections.

 

In order to remove the warning around vletext, in one of the output section in your .lcf file.

 

CrasyCat

0 Kudos