Hello Marat, I just tested a patch from Danilo that replaced the complex FFT with a real one. I used the codec2-dev/octave/pl2.m utility to compare and plot the decoded speech output files from the before/after versions of the code. As he reported with a similar Python utility - just one LSB difference, which is fine.
It's a good idea to have support (i.e semi-hosting) for processing files of samples on your target hardware that can then be compared on a Host PC. I compared the difference over a 30 second speech file, codec2-dev/raw/hts.raw. Cheers, David On 19/09/16 18:42, 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 > <mailto: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