2017-11-26 04:24 PM
I use the SPC5 Studio 5.6 to open an old project and get the following error.
08:20:06 **** Build of configuration Default for project BZW111A_CAT_MHE_Gamma ****
make all Compiler Optionsppc-freevle-eabi-gcc -c -mcpu=e200zx -meabi -msdata=none -mnew-mnemonics -mregnames -mvle -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mno-spe -msoft-float -ffunction-sections -fdata-sections -fno-common -Wall -Wextra -Wstrict-prototypes -Wa,-alms=build/lst/ -DPPC_USE_VLE=1 -MD -MP -MF .dep/build.d -I. -I./components/spc560pxx_platform_component_rla/lib/include -I./components/spc560pxx_irq_component_rla/lib/include -I./components/eeprom_emulation_driver/lib/include -I./components/spc560pxx_platform_component_rla/cfg -I./components/spc560pxx_irq_component_rla/cfg -I./components/eeprom_emulation_driver/cfg -I./source/ -I./source/Config/ -I./source/Driver/ -I./source/Driver/Input/ -I./source/Driver/Input/Analog/ -I./source/Driver/Motor/ -I./source/Driver/Output/ -I./source/Driver/Output/State/ -I./source/Driver/Protection/ -I./source/Library/ -I./source/Library/Filter/ -I./source/Library/Sensor/ -I./source/SPC560P50/ -I./components main.c -o main.omkdir -p build/obj
mkdir -p build/lstCompiling boot.sppc-freevle-eabi-gcc:error
: unrecognized argument in option '-mcpu=e200zx'ppc-freevle-eabi-gcc: note: valid arguments to '-mcpu=' 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 8540 8548 860 970 G3 G4 G5 a2 cell e200z0 e200z2 e200z3 e200z4 e200z6 e200z7 e300c2 e300c3 e500mc e500mc64 e5500 e6500 ec603e native power3 power4 power5 power5+ power6 power6x power7 power8 powerpc powerpc64 rs64 titanppc-freevle-eabi-gcc: error: unrecognized command line option '-mnew-mnemonics'make: *** [build/obj/boot.o] Error 108:20:10 Build Finished (took 4s.59ms)
#e200zxSolved! Go to Solution.
2017-11-27 01:04 AM
Hello Zhang ,
-mcpu=e200zx is for hightec compiler
-mcpu=e200z0 (or e200z4) shoudl be for the free compiler.
I think that you should use the free compiler.
Do you use SPC5Studio components ?
If yes , your configuration.xml is in ''dirty'' state, go back to your platform component choose , Save and regenerate
Best regards
Erwan
2017-11-26 04:47 PM
So pick the e200z part most closely matching what you're building for, likely a newer version of compiler handling more variants. Or go dig up an older version of compiler contemporaneous with the project.
2017-11-27 01:04 AM
Hello Zhang ,
-mcpu=e200zx is for hightec compiler
-mcpu=e200z0 (or e200z4) shoudl be for the free compiler.
I think that you should use the free compiler.
Do you use SPC5Studio components ?
If yes , your configuration.xml is in ''dirty'' state, go back to your platform component choose , Save and regenerate
Best regards
Erwan