Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
Daniele, how did you go with your port ? I know alot more about it than 3 weeks ago and might be able to assist / comment with useful outcomes regards glen On 29/08/2016 11:44 PM, Daniele Barzotti wrote: > Hi, -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
> ...without examining the entire source base, you know which > are the parts not related to the encoder? I never tested it yet, but I thought it might give you a head start on which code does encode and which does decode. My goal is to make a mode 1300 dynamic library. Although this is for mode 1300 only (I'm building a 1300 only application). I have yet to compare output to make sure they are the same. https://github.com/k5okc/vocoder1300 73/steve -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
I've just spent a few weeks ploughing through the source code in order to port it to different hardware and I have only just begun to scratch the surface. What you want to do Daniele is not a trivial task and will take considerable time. Good luck. Regards Eric On 2016-08-30 09:07, Daniele Barzotti wrote: > Hi Glen, > > thanks for your suggestions. > Unfortunatelly I cannot avoid to use FreeRTOS because the project is > based entirely on it. > I'm developing on an DMR radio option board and I have to interface it > with the radio, so a lot of code is already written. > > Now I will made a try. > Just to know, without to examinate the entire sorce base, you know which > are the parts not related to the encoder? > > Thanks, > Daniele. > > Il 29/08/2016 23:29, glen english ha scritto: > Hi Daniele I looked at the AT32UC3B0512 manuals I think you will would be > able to run CODEC2 on the versions with the hardware FPU, there is enough > horsepower I think, but you may need to spend time on generating compiler > optimizations. And not waste ANY memory, and if you try and run freeRTOS, > which I am well familiar with, this will probably consume up the valuable > memory you need. I would recommend you try without the RTOS, and really, if > the codec is all you are running, there is no benefit, only disadvantage. It > is certainly worth a shot if you want to learn a few things. Might depend on > how well the compiler mates to the CPU. Hence the need to examine the > generated assembler. regards On 29/08/2016 11:44 PM, Daniele Barzotti wrote: > Hi, First of all, I'm new to codec2. I'm developing on a proprietary board > based on ATMEL AT32UC3B0512, a 8MByte Spansion Flash and FreeRTOS. What I > need to do is to store 8 hours of voice into the flash. My input stream is a > PCM 16 bit 8Khz and I got 20 dword (1 frame) every 2.5 msec. Here I have to compress it to a 2 kilobit/second stream. (So here I need only the encoder part) I added the codec2 source to my project and it compile with no problems but, when I run, it hangs on codec2_create(). I tried to create the CODEC2 structure on the stack but with no success. My question is: someone known if is possible to run codec2 into a 32-bit RISC? Thanks in advance, Daniele. -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2 [1] Links: -- [1] https://lists.sourceforge.net/lists/listinfo/freetel-codec2 -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
Hi Glen, you're right, I will do! :-) Thanks a lot! Cheers, Daniele. Il 30/08/2016 09:19, glen english ha scritto: > Hi Daniele > > You should read it all to understand which bits you need. > > You will need to understand it sufficiently to have a good chance of > success. > > There will be no spare MIPS or RAM to do anything else, I suspect. > > cheers > > > On 30/08/2016 5:07 PM, Daniele Barzotti wrote: >> Hi Glen, >> >> thanks for your suggestions. >> Unfortunatelly I cannot avoid to use FreeRTOS because the project is >> based entirely on it. >> I'm developing on an DMR radio option board and I have to interface it >> with the radio, so a lot of code is already written. >> >> Now I will made a try. >> Just to know, without to examinate the entire sorce base, you know which >> are the parts not related to the encoder? >> >> Thanks, >> Daniele. >> >> >> Il 29/08/2016 23:29, glen english ha scritto: >>> Hi Daniele >>> >>> I looked at the AT32UC3B0512 manuals >>> >>> I think you will would be able to run CODEC2 on the versions with the >>> hardware FPU, there is enough horsepower I think, but you may need to >>> spend time on generating compiler optimizations. And not waste ANY >>> memory, and if you try and run freeRTOS, which I am well familiar with, >>> this will probably consume up the valuable memory you need. I would >>> recommend you try without the RTOS, and really, if the codec is all you >>> are running, there is no benefit, only disadvantage. >>> >>> It is certainly worth a shot if you want to learn a few things. Might >>> depend on how well the compiler mates to the CPU. Hence the need to >>> examine the generated assembler. >>> >>> >>> regards >>> >>> >>> >>> On 29/08/2016 11:44 PM, Daniele Barzotti wrote: Hi, First of all, I'm new to codec2. I'm developing on a proprietary board based on ATMEL AT32UC3B0512, a 8MByte Spansion Flash and FreeRTOS. What I need to do is to store 8 hours of voice into the flash. My input stream is a PCM 16 bit 8Khz and I got 20 dword (1 frame) every 2.5 msec. Here I have to compress it to a 2 kilobit/second stream. (So here I need only the encoder part) I added the codec2 source to my project and it compile with no problems but, when I run, it hangs on codec2_create(). I tried to create the CODEC2 structure on the stack but with no success. My question is: someone known if is possible to run codec2 into a 32-bit RISC? Thanks in advance, Daniele. >> >> -- >> ___ >> Freetel-codec2 mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/freetel-codec2 >> > > > > -- > ___ > Freetel-codec2 mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 > -- --- Daniele Barzotti Software/Firmware Developer Mail : [email protected] Skype: dbarzo ([email protected]) LinkedIn : it.linkedin.com/in/dbarzo Twitter : twitter.com/DanieleBarzo EuroCom Telecomunicazioni Srl Via Carpegna, 9 Riccione 47838 RN Italia. T:+39.0541.694212F:+39.0541.694211 www.eurocomtel.com Motorola Solutions Channel Partner Eurocom Telecomunicazioni Srl Sede Legale ed Amministrativa: Via Carpegna, 9 Riccione 47838 RN Italia, T.: +39.0541.694212 F.: +39.0541.694211 @: [email protected] Capitale Sociale: € 41.316,55 I.V. Codice Fiscale e P.IVA: 02067170403 Registro Imprese Rimini: 11886 REA Rimini: 237428 RISERVATEZZA / CONFIDENTIALITY Le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alla Società sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell'art. 616 c.p. , che ai sensi del D. Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di informarci immediatamente per telefono allo 0541.694212 oppure inviando un messaggio all'indirizzo: [email protected]. In caso di ricezione mancata o incompleta, telefonare al numero +39.0541.694212. Prima di stampare questa pagina verifica che sia necessario. Proteggiamo l'Ambiente -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
Hi Daniele You should read it all to understand which bits you need. You will need to understand it sufficiently to have a good chance of success. There will be no spare MIPS or RAM to do anything else, I suspect. cheers On 30/08/2016 5:07 PM, Daniele Barzotti wrote: > Hi Glen, > > thanks for your suggestions. > Unfortunatelly I cannot avoid to use FreeRTOS because the project is > based entirely on it. > I'm developing on an DMR radio option board and I have to interface it > with the radio, so a lot of code is already written. > > Now I will made a try. > Just to know, without to examinate the entire sorce base, you know which > are the parts not related to the encoder? > > Thanks, > Daniele. > > > Il 29/08/2016 23:29, glen english ha scritto: >> Hi Daniele >> >> I looked at the AT32UC3B0512 manuals >> >> I think you will would be able to run CODEC2 on the versions with the >> hardware FPU, there is enough horsepower I think, but you may need to >> spend time on generating compiler optimizations. And not waste ANY >> memory, and if you try and run freeRTOS, which I am well familiar with, >> this will probably consume up the valuable memory you need. I would >> recommend you try without the RTOS, and really, if the codec is all you >> are running, there is no benefit, only disadvantage. >> >> It is certainly worth a shot if you want to learn a few things. Might >> depend on how well the compiler mates to the CPU. Hence the need to >> examine the generated assembler. >> >> >> regards >> >> >> >> On 29/08/2016 11:44 PM, Daniele Barzotti wrote: >>> Hi, >>> >>> First of all, I'm new to codec2. >>> >>> I'm developing on a proprietary board based on ATMEL AT32UC3B0512, a >>> 8MByte Spansion Flash and FreeRTOS. >>> >>> What I need to do is to store 8 hours of voice into the flash. >>> My input stream is a PCM 16 bit 8Khz and I got 20 dword (1 frame) every >>> 2.5 msec. >>> Here I have to compress it to a 2 kilobit/second stream. (So here I need >>> only the encoder part) >>> >>> I added the codec2 source to my project and it compile with no problems >>> but, when I run, it hangs on codec2_create(). >>> >>> I tried to create the CODEC2 structure on the stack but with no success. >>> >>> My question is: someone known if is possible to run codec2 into a 32-bit >>> RISC? >>> >>> Thanks in advance, >>> Daniele. >>> > > -- > ___ > Freetel-codec2 mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 > -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
Hi Glen, thanks for your suggestions. Unfortunatelly I cannot avoid to use FreeRTOS because the project is based entirely on it. I'm developing on an DMR radio option board and I have to interface it with the radio, so a lot of code is already written. Now I will made a try. Just to know, without to examinate the entire sorce base, you know which are the parts not related to the encoder? Thanks, Daniele. Il 29/08/2016 23:29, glen english ha scritto: > Hi Daniele > > I looked at the AT32UC3B0512 manuals > > I think you will would be able to run CODEC2 on the versions with the > hardware FPU, there is enough horsepower I think, but you may need to > spend time on generating compiler optimizations. And not waste ANY > memory, and if you try and run freeRTOS, which I am well familiar with, > this will probably consume up the valuable memory you need. I would > recommend you try without the RTOS, and really, if the codec is all you > are running, there is no benefit, only disadvantage. > > It is certainly worth a shot if you want to learn a few things. Might > depend on how well the compiler mates to the CPU. Hence the need to > examine the generated assembler. > > > regards > > > > On 29/08/2016 11:44 PM, Daniele Barzotti wrote: >> Hi, >> >> First of all, I'm new to codec2. >> >> I'm developing on a proprietary board based on ATMEL AT32UC3B0512, a >> 8MByte Spansion Flash and FreeRTOS. >> >> What I need to do is to store 8 hours of voice into the flash. >> My input stream is a PCM 16 bit 8Khz and I got 20 dword (1 frame) every >> 2.5 msec. >> Here I have to compress it to a 2 kilobit/second stream. (So here I need >> only the encoder part) >> >> I added the codec2 source to my project and it compile with no problems >> but, when I run, it hangs on codec2_create(). >> >> I tried to create the CODEC2 structure on the stack but with no success. >> >> My question is: someone known if is possible to run codec2 into a 32-bit >> RISC? >> >> Thanks in advance, >> Daniele. >> -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
If you comment out all the "mode 1200" stuff, you will save beaucoup bytes. -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
Hi Daniele I looked at the AT32UC3B0512 manuals I think you will would be able to run CODEC2 on the versions with the hardware FPU, there is enough horsepower I think, but you may need to spend time on generating compiler optimizations. And not waste ANY memory, and if you try and run freeRTOS, which I am well familiar with, this will probably consume up the valuable memory you need. I would recommend you try without the RTOS, and really, if the codec is all you are running, there is no benefit, only disadvantage. It is certainly worth a shot if you want to learn a few things. Might depend on how well the compiler mates to the CPU. Hence the need to examine the generated assembler. regards On 29/08/2016 11:44 PM, Daniele Barzotti wrote: > Hi, > > First of all, I'm new to codec2. > > I'm developing on a proprietary board based on ATMEL AT32UC3B0512, a > 8MByte Spansion Flash and FreeRTOS. > > What I need to do is to store 8 hours of voice into the flash. > My input stream is a PCM 16 bit 8Khz and I got 20 dword (1 frame) every > 2.5 msec. > Here I have to compress it to a 2 kilobit/second stream. (So here I need > only the encoder part) > > I added the codec2 source to my project and it compile with no problems > but, when I run, it hangs on codec2_create(). > > I tried to create the CODEC2 structure on the stack but with no success. > > My question is: someone known if is possible to run codec2 into a 32-bit > RISC? > > Thanks in advance, > Daniele. > > -- > ___ > Freetel-codec2 mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 > -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
I use the codec on STM32F4/F7 - I had problems in case of initialization of the codec, in case of function invocation of codec2_samples_per_frame(codec2); The problem was solved by increase in the size of a stack and heap in settings of the project. Regards, Marat. > > >Hi, > >First of all, I'm new to codec2. > >I'm developing on a proprietary board based on ATMEL AT32UC3B0512, a >8MByte Spansion Flash and FreeRTOS. > >What I need to do is to store 8 hours of voice into the flash. >My input stream is a PCM 16 bit 8Khz and I got 20 dword (1 frame) every >2.5 msec. >Here I have to compress it to a 2 kilobit/second stream. (So here I need >only the encoder part) > >I added the codec2 source to my project and it compile with no problems >but, when I run, it hangs on codec2_create(). > >I tried to create the CODEC2 structure on the stack but with no success. > >My question is: someone known if is possible to run codec2 into a 32-bit >RISC? > >Thanks in advance, >Daniele. > >-- >___ >Freetel-codec2 mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/freetel-codec2 -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
Check the memory requirements of the codec _ create() , because it requires a good amount of heap memory... On 29 Aug 2016 4:01 p.m., "Daniele Barzotti" < [email protected]> wrote: > Hi, > > First of all, I'm new to codec2. > > I'm developing on a proprietary board based on ATMEL AT32UC3B0512, a > 8MByte Spansion Flash and FreeRTOS. > > What I need to do is to store 8 hours of voice into the flash. > My input stream is a PCM 16 bit 8Khz and I got 20 dword (1 frame) every > 2.5 msec. > Here I have to compress it to a 2 kilobit/second stream. (So here I need > only the encoder part) > > I added the codec2 source to my project and it compile with no problems > but, when I run, it hangs on codec2_create(). > > I tried to create the CODEC2 structure on the stack but with no success. > > My question is: someone known if is possible to run codec2 into a 32-bit > RISC? > > Thanks in advance, > Daniele. > > > -- > ___ > Freetel-codec2 mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 > -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Re: [Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
You need hardware floating point. On Mon, Aug 29, 2016 at 6:44 AM, Daniele Barzotti < [email protected]> wrote: > Hi, > > First of all, I'm new to codec2. > > I'm developing on a proprietary board based on ATMEL AT32UC3B0512, a > 8MByte Spansion Flash and FreeRTOS. > > What I need to do is to store 8 hours of voice into the flash. > My input stream is a PCM 16 bit 8Khz and I got 20 dword (1 frame) every > 2.5 msec. > Here I have to compress it to a 2 kilobit/second stream. (So here I need > only the encoder part) > > I added the codec2 source to my project and it compile with no problems > but, when I run, it hangs on codec2_create(). > > I tried to create the CODEC2 structure on the stack but with no success. > > My question is: someone known if is possible to run codec2 into a 32-bit > RISC? > > Thanks in advance, > Daniele. > > > -- > ___ > Freetel-codec2 mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 > -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
[Freetel-codec2] Using codec2 on ATMEL 32-bit RISC microcontroller
Hi, First of all, I'm new to codec2. I'm developing on a proprietary board based on ATMEL AT32UC3B0512, a 8MByte Spansion Flash and FreeRTOS. What I need to do is to store 8 hours of voice into the flash. My input stream is a PCM 16 bit 8Khz and I got 20 dword (1 frame) every 2.5 msec. Here I have to compress it to a 2 kilobit/second stream. (So here I need only the encoder part) I added the codec2 source to my project and it compile with no problems but, when I run, it hangs on codec2_create(). I tried to create the CODEC2 structure on the stack but with no success. My question is: someone known if is possible to run codec2 into a 32-bit RISC? Thanks in advance, Daniele. -- ___ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
