Using EWL with the GNU toolchain for QorIQ P2

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

Using EWL with the GNU toolchain for QorIQ P2

579 Views
azdem
Contributor I

Hi dear SW experts,

  

regarding our project requirements, we need to use the GNU toolchain for a bare metal embedded design with QorIQ P2010.

However, for a simple Hello World application with printf(), the code size is over 3 MB, if generated by the GNU toolchain from the latest Linux SDK version v1.5 (powerpc-fsl_networking-linux-gnuspe-*).

On the other hand, if the same code/functionality gets built on CW for PA 10.3.3. using the EWL it is around 150KB. As far as I understand the cause of the difference is that, the GNU toolchain uses an inefficient generic libc, which is not thought for bare metal embedded applications.

So, I would like to use the EWL. Am I allowed to use the EWL with GNU toolchain? How can I use it? Has anyone tried that?

For example, the inline assembly notations seem to be different, so that the CW generated init files do not work with GCC right away. What other kinds of incompatibility issues may I have? 

Best regards

Labels (1)
0 Kudos
1 Reply

338 Views
yipingwang
NXP TechSupport
NXP TechSupport

You could change the build Toolchain to GNU GCC Toolchain from Project->Properties->C/C++ Build->Tool Chain Editor, change the toolchain as "PowerPC EABI e500v2 C ToolChain Release".

In addition, please open the panel Project->Properties->C/C++ Build->Build Variables, and define PAGccEabiE500v2Dir as C:\Program Files\Freescale\CW_PA_v10.3.3\Cross_Tools\gcc-4.7.2-Ee500v2-eabispe\bin.


In CW 10.3.3, e500mc default bareboard projects use GNU GCC as the default compiler, please create a sample project for P4080DS following new project wizards, and refer to this sample project to deploy yours.

0 Kudos