Open duchieu91 opened 3 days ago
I have defined EMBEDDED and set up the hardware FPU on STM32F4, but this does not seem to resolve the issue.
Hi @duchieu91 - yes the output of the decoder looks buggy. Some thoughts:
Thanks for answer, but I have successfully built the Codec2 project for STM32F4 as per the provided instructions, although I do not have the S1000 hardware available. After building, I extracted the libcodec2.a library and used it in a separate project, where I only call the codec2_encode() and codec2_decode() functions on kit stm32f4.
Could the manual linking process be screwing stuff up? There are some other flags enabled when we build the SM1000, too, so it might be worth (double) checking https://github.com/drowe67/codec2/blob/main/stm32/CMakeLists.txt if you haven't already.
I have been testing Codec2 on STM32F4 and Linux platforms. When I perform encoding, the output file is similar on both platforms (STM32F4 and Linux), and the encoded file looks as expected. However, when I attempt to decode the encoded file, the results are different between the two platforms.
On Linux, the decoding produces the correct output, but when decoding on STM32F4, the result is raw data with significant discrepancies and errors, as shown in the attached image. The decoded file on STM32F4 is far from what was expected, and it contains a lot of noise and incorrect values.
I suspect there might be some difference in the decoding process or how the data is handled on STM32F4, but I have not been able to identify the cause. Any help or suggestions on resolving this issue would be greatly appreciated.