View Full Version : Codewarrior and FIR filters
heathkit
07-21-04, 10:38 PM
I'm trying to use Codewarrior to implement an FIR filter on the Isopod. However, the firCreate function is trying to allocate external memory. I've modified it so it only tries to allocate from internal memory. However, it can never allocate enough memory for the FIR structure, even when I'm only using, say, 4 taps.
Any ideas? Anyone have a good sample linker.cmd for this?
nmitech
07-22-04, 12:14 PM
Just emailed you the link.cmd file of IsoMax for your reference.
heathkit
07-24-04, 10:47 AM
Well, for anyone who uses CodeWarrior and is interested, I found the problem.
There is no linker.cmd file provided by the SDK that allows the use of dynamic memory when writing to flash. I ended up setting the parameters that "mem.h" needs in the const.h file.
Of course, after two days of messing with this, I finally read the part in the manual that says you can use fir filters with static memory by using FIRInitialize instead of FIRCreate. Oh well.
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.