Hi Stefan,

I'm surprised that a 120MHz CPU is struggling, as we only used a 
fraction (maybe 50%) of the 168MHz ST32F4.

Nothing special for the STM32F4, I re-organised some C code, used single 
prec trig functions (cosf, sinf etc)  and that is now all part of the 
regular Codec 2 code in the src directory that runs on all platforms. 
Didn't even end up using the STM fft library as in my unit tests it was 
slower than kiss fft (although I may have screwed up there).

You can see the gcc options in codec2-dev/stm32/Makefile.

Sue you have hard float enabled for your uC?

- David

On 09/03/15 18:26, Stefan Ereth wrote:
> Hi all,
>
> I'm trying to port codec2 to a Freescale microcontroller. This board has 120 
> MHz CPU and a floating point unit. At the moment I would need 110% CPU speed 
> for decoding codec2 in real time. In the YouTube Video "Embedding Codec 2: 
> open source speech coding on a low-cost microcontroller" David Rowe presented 
> an implementation on a STM32F4 with encoding and decoding in real-time. He 
> mentioned that some optimizations are needed for this processing speed. I 
> couldn't find something like that in the stm32 folder, but some switches over 
> defines for calculations in time- or frequency-domain in the processing 
> chain. Also the filter length could be reduced for low perfomance cpus.
>
> Are there optimised settings for microcontrollers?
> Do you use arm_math.h for arm specific sin/cos/fft functions?
>
>
> Thanks in advance,
> Stefan
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to