FFT on MCF5485

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FFT on MCF5485

1,878 次查看
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 回复

1,125 次查看
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 项奖励
回复