GNU Toolchain for P1013 processor

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

GNU Toolchain for P1013 processor

1,730 Views
anuraggupta
Contributor I

Hi, I have to compile my C files for the Freescale Processor P1013 using the GNU Toolchain. What cpu options in gcc support the P1013 processor? If I have to build the toolchain, what steps do I need to follow and what options do I need to use? Thanks.

Labels (1)
0 Kudos
Reply
3 Replies

1,495 Views
bpe
NXP Employee
NXP Employee

Suggested course of actions:

1. Download and install NXP QorIQ SDK:

   http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-proce...

2. Follow  steps described at the URL below to build and install the toolchain:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-16DBC8E2-9A18-4867-9B...

3. Do `echo $CC` after sourcing the "environment-setup-ppce500v2" script

to see valid compiler flags for your processor or look at the script

itself.

Notes:

1. P1013 is a subset of P1022. Use "p1022ds" as <machine>.

2. Your processor is  built around e500v2 core. Specify where appropriate.

  

  


Have a great day,
Platon

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

0 Kudos
Reply

1,495 Views
anuraggupta
Contributor I

Hi Platon,

Can you please explain why do I need the Linux SDK ? Can't I can follow the steps listed by GNU for building gcc on an Ubuntu PC and get it to do cross compilation for P1013?

Thanks,
Anurag,

0 Kudos
Reply

1,495 Views
bpe
NXP Employee
NXP Employee

Please keep in mind that GNU tools are GNU, not NXP software.

I described above what NXP  recommends. The SDK provides

you a verified toolchain and an automated build

procedure. You can do everything from scratch, following generic

GNU build instructions, but if you encounter any problem, either

during build or using the tools you generated to compile other code,

our first recommendation will be to resort to the SDK.

0 Kudos
Reply