Hi,
I am using gcc to build my C-project for the MPC5606S-processor.
To gcc there is build flag -mcpu, my question is which value I shall give it?
Is it enough with -mcpu=powerpc?
Best Regards,
Anders
Hello Anders,
correct parameter for MPC5606S is -mcpu=e200z0 (which is type of core used in the microcontroller)
Regards,
Martin
Hello Martin,
e200z0 does not work with my compiler, gcc version 4.1.2. In the gcc manual "Using the GNU Compiler Collection" the following values are stated as vallid, but I can not find anywhere (on NXP site) how mpc5606S is mapped to any of the following values
Supported values for cpu type are ‘401’, ‘403’, ‘405’,‘405fp’, ‘440’, ‘440fp’, ‘464’, ‘464fp’, ‘476’, ‘476fp’, ‘505’, ‘601’, ‘602’, ‘603’, ‘603e’, ‘604’, ‘604e’, ‘620’, ‘630’, ‘740’, ‘7400’, ‘7450’, ‘750’, ‘801’, ‘821’, ‘823’, ‘860’, ‘970’, ‘8540’, ‘a2’, ‘e300c2’, ‘e300c3’, ‘e500mc’, ‘e500mc64’, ‘e5500’, ‘e6500’, ‘ec603e’, ‘G3’, ‘G4’, ‘G5’, ‘titan’, ‘power3’, ‘power4’, ‘power5’, ‘power5+’, ‘power6’, ‘power6x’, ‘power7’, ‘power8’, ‘power9’, ‘powerpc’, ‘powerpc64’, ‘powerpc64le’, and ‘rs64’.
My best guess for now is powerpc.
Best Regards,
Anders
Hello Anders,
it looks like you do not use GCC which supports this microcontroller. For MPC microcontrollers, you cannot use general gcc compiler. NXP provides modified gcc compiler with VLE support.
Please check the link below:
https://www.nxp.com/lgfiles/updates/S32DS/S32DS_PA_2017.R1_GCC.tar
For more information you can also check this URL:
Hope it helps.
Regards,
Martin
Hello Martin,
Thank you for the information and the links!
Now I understand how to handle the VLE instruction set in the MPC5606S processor, which is the new thing in my project compared to other projects within my company.
Best Regards,
Anders