Assembler not legal in CodeWarrior

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

Assembler not legal in CodeWarrior

581 Views
sijiahao
Contributor III

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

Labels (1)
0 Kudos
1 Reply

474 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

I have already answered your question in this thread:

https://community.nxp.com/thread/433463 

Regards,

Martin

0 Kudos