Optimisation of CMSIS constants for cortex M4

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

Optimisation of CMSIS constants for cortex M4

373 Views
prasannanaik
Contributor III

Hi,

I am using CMSIS library for FFT computation in LPC54607J256BD208E.

IDE: MCXpresso IDE v 10.3.1_2233

I am trying to optimize my code size to fit a bootloader along with application code.

On analysis of Map size, I found that cmsis fft constants take up a lot spcae.

ConstantsSize
twiddleCoef_204816384
twiddleCoef_rfft_409616384
twiddleCoef_rfft_20488192
twiddleCoef_10248192
armBitRevIndexTable20487616
twiddleCoef_5124096
twiddleCoef_rfft_10244096
armBitRevIndexTable10243600
twiddleCoef_2562048
twiddleCoef_rfft_5122048
Total72656

 

Is there any way to optimize these constants or is there any code optimized fft library for this microcontroller.

 

Thanks and best regards,

Prasanna

0 Kudos
1 Reply

368 Views
frank_m
Senior Contributor III

> Is there any way to optimize these constants or is there any code optimized fft library for this microcontroller.

Optimize for what ? You can either optimize for speed, for size, or a mixture (=compromise) of both.

The usage of the named pre-calculated constants for FFT is a speed optimization of that algorithm.

You can try implementing any other FFT algorithm, if you wish. But be aware of the limitations of "float" versus "double".

0 Kudos