[Freetel-codec2] Codec2 in real time on STM32

2023-11-20 Thread Jan Ropek
Hello, my goal was to get Codec2 (encoding and decoding) working on STM32F446 running on 180MHz. So, I created a new project for Nucleo with F446RE and added Codec2 libraries to it. I compile with GCC (using STM32CubeIDE - based on Eclipse). I have GCC optimization turned off and encoding and

Re: [Freetel-codec2] Codec2 in real time on STM32

2023-11-20 Thread glen english LIST
Hi Jan Just adding to the other two very good replies My experience with codec2 with STM32F4/F7 At O0, the performance may be down to 50% of -O2, and also, with O0, its likely the compiler is not exploiting any hardware speedups as with GCC there are some (invisible)  ties between -O level,

Re: [Freetel-codec2] Codec2 in real time on STM32

2023-11-20 Thread david
Hi Jan, We run Codec 2 half duplex (along with a bunch of other modem and FEC code) on a 180 MHz stm32 and it works just fine in real time. So your expectations are quite realistic. The build system we use for the stm32 is in codec2/stm32/CMakeLists.txt, including C compiler flags (looks like

Re: [Freetel-codec2] Codec2 in real time on STM32

2023-11-20 Thread Mooneer Salem
Hi Jan, In the Codec2 library, there are some flags that are turned on in order to get it to function on the SM1000 (which also uses a STM32F4 series MCU). You can find out more at https://github.com/drowe67/codec2/blob/main/stm32/CMakeLists.txt but the important ones are as follows:

Re: [Freetel-codec2] STM32 freeDV cost benchmarks

2023-11-20 Thread Mooneer Salem
Hi Glen, I seem to remember that there was a previous project that implemented it on a FPGA, but I can't recall specifics at the moment. FWIW, on ezDV (ESP32-S3 but should perform similarly to the STM32F4 on the SM1000), 700D TX took something like ~90ms per 160ms frame while RX using real-only

[Freetel-codec2] STM32 freeDV cost benchmarks

2023-11-20 Thread glen english LIST
Hi Mooneer I am preparing to implement FreeDV on an FPGA. Is there a location in the repo somewhere, or does anyone have , anecdotally a feeling of, the major workloads / major consumers of processor time on the STM32 FreeDV port. regards ___

Re: [Freetel-codec2] STM32 freeDV cost benchmarks

2023-11-20 Thread glen english LIST
Hi Mooneer thanks for the comments. The FDIV on the ESP32-S3 is very slow I think 80 cycles, but of course one should always use RECIPS  and a MUL. Integer div is a couple of cycles IIRC. I'll start and see what jams it all up . regards, On 21/11/2023 4:01 pm, Mooneer Salem wrote: Hi