Brian Withun

New to CodeWarrior - unable to build Metrowerks sample project

Discussion created by Brian Withun on May 18, 2007
Latest reply on May 19, 2007 by CrasyCat
I have been unsuccessful in compiling the FFT example project.  Can anyone suggest what I did wrong?
 
I installed CodeWarrior IDE v 5.2.1174 (as shown in the Help>About box)
 
I downloaded the freescale DSPLIBUMSW.zip Assembler DSP library for the 5282
and extracted it to C:\
 
I Launched CodeWarrior
 
I opened FFT Example Project.mcp from
C:\DSPLIBUMSW\FFT_FIR_IIR_files\FFT\FFT Example Project\
 
And I received this warning:
 
Project "FFT Example Project.mcp" needs to be converted.  Some target settings are in a newer, incompatible format.  They will be initialized to the factory settings.
 
The project was last saved using newer versions of some preference panels.  The current settings in these panels will be lost.  The project iwll be backed up as "FFT Example Project.old.mcp"  Do you want to convert the project?
 
I understand this to mean that I have an older version of CodeWarrior (or at least some panels).  This didn't look like a fatal problem so I converted the project and proceeded.
 
The resulting messages are copied here.
 
The data for the "Build Extras" settings panel in target "M5282EVB External ROM" of project "FFT Example Project.mcp" has been updated to the latest version.
The data for the "Access Paths" settings panel in target "M5282EVB External ROM" of project "FFT Example Project.mcp" was in a newer format than the current IDE is using; it has been reinitialized to the factory settings.
[edited for size]
The data for the "C/C++ Warnings" settings panel in target "M5282EVB Internal ROM" of project "FFT Example Project.mcp" was in a newer format than the current IDE is using; it has been reinitialized to the factory settings.
 
Then I pressed F7 to build.  It couldn't find a few files so I added access paths to the following:
 
fft.h
fft16_emac.s
fft16_mac.S
fft16.h
fft32_emac.S
fft32_mac.S
fft32.h
 
And recompiled (F7)
 
The errors I received are below:
 
Why would it say the instruction is not legal for my current target?
 
My default target is "M5282EVB UART Debug"  The 5282 is what this code is supposed to have been written for.
 
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 403    move.l  #0x00000070,MACSR
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 407    move.l #0,ACC0
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 408    move.l  #0,ACC1
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 431    msacl.w d0.u,d4.u,<<,(a3),d5,ACC0 ;ar-br*wr -> ACC, bi -> MSW of d5
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 432    msac.w d0.l,d5.u,<<,ACC0   ;ar-br*wr-bi*wi = xr -> ACC, ai -> MSW of d7
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 433    mac.w d0.l,d4.u,<<,ACC1   ;ai+br*wi -> ACC, ar -> MSW of d2
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 434    msac.w d0.u,d5.u,<<,ACC1   ;ai+br*wi-bi*wr = xi -> ACC, br -> MSW of d4
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 435    movclr.l ACC0,d3
Error   : Instruction not legal for current target processor(s)
fft16_emac.s line 436    movclr.l ACC1,d1
Error   : Instruction not legal for current target processor(s)
[edited for size]

Outcomes