FFT on MCF5485

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

FFT on MCF5485

1,586 Views
JShilinski
Contributor II
Hey guys, I'm trying to get the freescale FFT (included as the attachment) to work on the MCF5485 using CW 7.0.

The issue I have is the source code (written in assembly) doesn't compile. I attached the compile errors via a screen shot. The only file I included in the project was the one attached, DSP32.s. (renamed to DPS.txt because the forums won't let me attach the *.s file)

Does anyone have any idea how to get this FFT to work on the target platform?

-Jay


Labels (1)
0 Kudos
Reply
1 Reply

833 Views
SimonMarsden_de
Contributor II
Hello Jay

Getting this file to assemble with CodeWarrior should be quite easy. You need to do four things:

(1) Add this as the first line:
    .option processor=mcf5485

(2) Comment out the following line:
;;;        .name   "dsp32.s"


(3) Change the lines which use EQU to use .equ instead (note the leading '.'), e.g:

    CACR    .equ    $002

(4) For lines which use indexed addressing, you must explicitly specify the index length (always long for ColdFire), e.g. change

        lea    (a0,d1),a2  ----->  lea    (a0,d1.l),a2


(There are about 8 lines like this)


Hope this helps


Simon

0 Kudos
Reply