AnsweredAssumed Answered

Assembler not legal in CodeWarrior

Question asked by Sijia Hao on Aug 29, 2016
Latest reply on Aug 30, 2016 by Martin Kovar

Hello,

 

I have a problem when compiling assembler files using mwasmeppc.exe, this is the error message:

 

* Compiling s -> o
*
### mwasmeppc.exe Assembler:
#    File: ..\output\obj\cstartup.s
# ---------------------------------
#      88:   e_and2i. r3,0xFFF@l
#   Error:   ^^^^^^^^
#   Instruction not legal for current target processor(s)
### mwasmeppc.exe Assembler:
#      99:   sub r4,r3
#   Error:       ^^^^^
#   Not enough arguments for simplified mnemonic sub
### mwasmeppc.exe Assembler:
#     114:   e_or2i r31,0x4002
#   Error:   ^^^^^^
#   Instruction not legal for current target processor(s)

 

Some commands( e_and2i.  sub  e_or2i) can not be recognized, but this file cstartup.s works with other compiler(Greenhills, Windriver, etc)

 

CodeWarrior version: for MPC55xxMPC56xx v2.10.

MCU: XPC560XB

the cpu type is -proc Zen

 

I don't know if I miss some compiler options, or I need to include some compiler files?

 

Best regards,

Sijia

Outcomes