Skip to main content
Zhang Lei
Associate II
November 27, 2017
Solved

error: unrecognized argument in option '-mcpu=e200zx'

  • November 27, 2017
  • 2 replies
  • 1344 views
Posted on November 27, 2017 at 01:24

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 Options

ppc-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.o

mkdir -p build/obj

mkdir -p build/lst

Compiling boot.s

ppc-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 titan

ppc-freevle-eabi-gcc: error: unrecognized command line option '-mnew-mnemonics'

make: *** [build/obj/boot.o] Error 1

08:20:10 Build Finished (took 4s.59ms)

#e200zx
    This topic has been closed for replies.
    Best answer by Erwan YVIN
    Posted on November 27, 2017 at 10:04

    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

    0690X00000608xoQAA.png

      Best regards

                 Erwan

    2 replies

    Tesla DeLorean
    Guru
    November 27, 2017
    Posted on November 27, 2017 at 01:47

    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.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    November 27, 2017
    Posted on November 27, 2017 at 10:04

    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

    0690X00000608xoQAA.png

      Best regards

                 Erwan