Hi Marat

My *simplistic * observations is that these are due to variations in the FPUs/ rounding error/ bias.

What codec bit are these variations in ?

IE
for codec2 1200 :
  The bit allocation is:

    Parameter                      frame 2  frame 4   Total
    -------------------------------------------------------
    Harmonic magnitudes (LSPs)      0       27        27
    Energy+Wo                       8        8        16
    Voicing (10ms update)           2        2         4
    Spare                           0        1         1
    TOTAL                          10       38        48


regards


On 19/09/2016 7:12 PM, Marat Galyamov wrote:
Hello, Glen.

In Windows I use CodeBlocks IDE with MinGW compiler, info from readme-file :

=== TDM-GCC Compiler Suite for Windows ===
--- GCC 4.6 & 4.7 Series ---
*** Standard MinGW 32-bit Edition ***


For microcontroler I use IAR IDE (iar.com) with her own compiler.
I experiment with STM32F746-Discovery board.


In CodeBlocks IDE I switched off optimization. 

In IAR IDE I have turned on optimization in Mdeium level.
I left settings of a linker by default, but I have increased the sizes of a stack and heap.

 STM32F746NG has single precision FPU.

I made a screenshot - compared two output files, version from PC and version from STM32.
All incoincident bytes differ on one value.

Sorry for my english.

Суббота, 17 сентября 2016, 1:57 +03:00 от glen english <g...@cortexrf.com.au>:

Hi Merit

you could be looking at the difference in the floating point units
between the processors- the F7 and the F4 have slightly different versions.

What compiler- linker processor flags have you used -?

If you use the F4 processor flags you may almost certainly get a
different / wrong result..

In addition to very subtle differences, some of the F7s have double
precision FPUs instead of single precision FPUs

do you have doubles forced to floats ?

have you a verification method / check in place to ensure you are not
blowing/ overwriting memory somewhere ?


g




On 17/09/2016 6:38 AM, Marat Galyamov wrote:
>
> Hello.
> I try to use the Codec2 on the STM32F746 microcontroller. For a start,
> I took files of the codec and collected the project for the PC in the
> CodeBlocks IDE with the compiler GCC.
>
> Coding and decoding of the raw-file took place successfully, the
> regenerated file has high quality.
>
> Then I collected the project in the IAR IDE (for STM32F746-Discovery
> board) and added
>



------------------------------------------------------------------------------
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2



------------------------------------------------------------------------------


_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2




------------------------------------------------------------------------------
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to