Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread David Rowe
Hi Sam, If you build the codec2/stm32 code, you will create libcodec2.a There are also many unit test programs, some of them might be close to a minimal codec 2 demo, and can run on a Discovery card. - David On 3/11/19 12:13 pm, Sam Shoja wrote: > Dear David, > > The reason I was using https:/

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Sam Shoja
Dear Bruce, Yes, we have considered using FPU of our MCU. I had got a successful build for codec2 as a pre-assembled library ; however it seems I was working on a wrong code. On Sat, Nov 2, 2019, 20:04 Bruce Perens via Freetel-codec2 < freetel-codec2@lists.sourceforge.net> wrote: > You know floa

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Bruce Perens via Freetel-codec2
You know floating point is required, right? On Sat, Nov 2, 2019 at 3:03 PM Sam Shoja wrote: > Hi All Codec2 developers! > I am trying to port Codec2 on Cypress PSOC 6 with 288KB of RAM and 100MHz > clock on Arm cortex M4; however, it seems codec2 is running out of memory > on this MCU. I was won

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Sam Shoja
Dear David, The reason I was using https://github.com/piratfm/codec2_m4f instead of https://github.com/drowe67/codec2 was to have a clean and minimal code for the core of Codec2 on Cortex M4. Actually, first I tried to port from https://github.com/drowe67/codec2 but it turned out there are some ma

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread David Rowe
Use https://github.com/drowe67/codec2 On the SM1000 we also place constant tables in flash, so they won't be loaded into RAM. The SM1000 actually runs the full FreeDV stack - so there is a modem and FEC in there too, plus speech I/O drivers with large buffers. If you just want the speech codec,

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Steve
https://github.com/drowe67/codec2 On Sat, Nov 2, 2019 at 6:05 PM Sam Shoja wrote: > > Dear Don, Dear Ammar, > > That's a great news. It means 288KB ram and 100MHz clock would be enough. The > code I was running on the MCU was base on the rate of 2500. This can be the > reason and it seems I nee

Re: [Freetel-codec2] Hi All Codec2 developers!

2019-11-02 Thread Steve
On Sat, Nov 2, 2019 at 5:00 PM Sam Shoja wrote: > > I am wondering which MCU from STM32F family is being used in SM1000. > STM32F405VGT6 168 MHz Floating Point https://www.mouser.com/ProductDetail/STMicroelectronics/STM32F405VGT6?qs=Z8%252BeY1k3TIJiWie7HpfDCQ%3D%3D&gclid=EAIaIQobChMI7LuLpNHM5QIV

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Sam Shoja
Dear Don, Dear Ammar, That's a great news. It means 288KB ram and 100MHz clock would be enough. The code I was running on the MCU was base on the rate of 2500. This can be the reason and it seems I need to change it to slower bit rates; however, As far I looked through the source code, ( https://g

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Don
The CPU on the SM1000 is an STM32F405 with 192k of SRAM. It will not hold a full Codec2 build with all of the modes enabled! If you look at stm32/CMakeLists.txt in tge source you will see this: add_definitions(-DFREEDV_MODE_EN_DEFAULT=0 -DFREEDV_MODE_1600_EN=1 -DFREEDV_MODE_700D_EN=1 -DCODEC2_MO

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Ammar Ahmad Khan
That should be available in its datasheet. But when I ran only the encoding part on a DSP kit, it took around 200KB. On Sun, Nov 3, 2019 at 3:13 AM Sam Shoja wrote: > Dear Ammar, > > Codec2 in the project SM1000 is implemented on STM32F MCU family, which > have between 96KB and 386KB of Ram and

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Sam Shoja
Dear Ammar, Codec2 in the project SM1000 is implemented on STM32F MCU family, which have between 96KB and 386KB of Ram and CPU clock of 96MHz to 180MHz. The question can be, does SM1000 have external RAM? If no, how much Ram does the MCU have inside? On Sat, Nov 2, 2019 at 3:06 PM Ammar Ahmad Kha

Re: [Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Ammar Ahmad Khan
Hi there Sam. I think your properties are not enough . I tried this on DSP DSK6713 Kit also. I came to conclusion that it will require something with minimum 1GB RAM with a good speed. And If you want real time action, using interrupts is an option On Sun, Nov 3, 2019 at 3:03 AM Sam Shoja wrote:

Re: [Freetel-codec2] Hi All Codec2 developers!

2019-11-02 Thread Ammar Ahmad Khan
Hello Sam. I think these are not enough . I tried it on DSP Kit 713 also. I came to conclusion that it will require something with minimum 1GB RAM with a good speed. And If you want real time action, you have to use interrupts On Sun, Nov 3, 2019 at 3:00 AM Sam Shoja wrote: > I am trying to port

[Freetel-codec2] Minimum RAM and CPU clock for Codec2

2019-11-02 Thread Sam Shoja
Hi All Codec2 developers! I am trying to port Codec2 on Cypress PSOC 6 with 288KB of RAM and 100MHz clock on Arm cortex M4; however, it seems codec2 is running out of memory on this MCU. I was wondering what the minimum requirement of RAM and CPU are for codec2? On the project SM1000 it was mention

[Freetel-codec2] Hi All Codec2 developers!

2019-11-02 Thread Sam Shoja
I am trying to port Codec2 on Cypress PSOC 6 with 288KB of RAM and 100MHz clock on Arm cortex M4; however, it seems codec2 is running out of memory on this MCU. I was wondering what the minimum requirement of RAM and CPU are for codec2? On the project SM1000 it was mentioned that the MCU is STM32F