FFT on MCF5485

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FFT on MCF5485

1,555件の閲覧回数
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


ラベル(1)
0 件の賞賛
返信
1 返信

802件の閲覧回数
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 件の賞賛
返信