Hello, I have an OMAP5910 OSK board with C55 dsp and ARM9 processor. I just want to use speex as a simple application on the platform in order to check dsp's working well or not. First, I found speex's source codes include "ti/speex_C55_test" directory so I thought speex could run on my platform well. Second, I open "Code Composer Studio" and then open the project file in the ti/speex_C55_test directory, build it. At last I got "speex_C55_test.out" file in ti/speex_C55_test. 001. How can I test speex_C55_test.out or the program? 002. I found the line "bitsFile = "c:\\speextrunktest\\samples\\malebits.dat";" in ti/testenc-TI-C5x.c file. Does it mean that if I want to run the program on dsp chip, it must have filesystem to support it? So, my ultimate question is >> How I can use speex as a simple application on C55 dsp chip without filesystem? I'm totally newbie at OMAP board and codec. If my questions are silly, forgive me~ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20060721/c5ff2622/attachment.html
Jean-Marc Valin
2006-Jul-21 02:14 UTC
{DÉSACTIVÉ} [Speex-dev] Using Speex on OMAP5910 OSK board
> I have an OMAP5910 OSK board with C55 dsp and ARM9 processor. I just > want to use speex as a simple application on the platform in order to > check dsp's working well or not.Wouldn't computing a sine wave be much easier? ;-)> 001. How can I test speex_C55_test.out or the program?Can't help here. Read the manual for your tools.> > 002. I found the line "bitsFile = "c:\\speextrunktest\\samples\ > \malebits.dat";" in ti/testenc-TI-C5x.c file. Does it mean that if I > want to run the program on dsp chip, it must have filesystem to > support it?No. It means you need a filesystem to test Speex with this particular example. The libspeex library is pretty much pure "math code", with almost no dependencies.> >> How I can use speex as a simple application on C55 dsp chip without > filesystem?You'll need to write your own application based on the sample code and find somewhere to send the result (or discard it, but that isn't very useful). Jean-Marc
Jim Crichton
2006-Jul-23 03:34 UTC
Re: {DÉSACTIVÉ} [Speex-dev] Using Speex onOMAP5910 OSK board
>> 001. How can I test speex_C55_test.out or the program? > > Can't help here. Read the manual for your tools. >> >> 002. I found the line "bitsFile = "c:\\speextrunktest\\samples\ >> \malebits.dat";" in ti/testenc-TI-C5x.c file. Does it mean that if I >> want to run the program on dsp chip, it must have filesystem to >> support it? > > No. It means you need a filesystem to test Speex with this particular > example. The libspeex library is pretty much pure "math code", with > almost no dependencies. > >> >> How I can use speex as a simple application on C55 dsp chip without >> filesystem? > > You'll need to write your own application based on the sample code and > find somewhere to send the result (or discard it, but that isn't very > useful).The C55 build provided with Speex is configured to run in the TI C55x simulator (the README file says this). To run it on a real hardware platform, you would need to add some method of getting audio samples and data into and out of the program. If you planned to use file I/O, then you would need a file system. On an OMAP, there should be some mechanism for communicating between the ARM and the DSP, and you would probably use that mechanism to pass the audio and compressed data. The easiest way to get started is to find an example program that was provided with your board (hopefully one that does audio processing), and modify this to add the main loop from testenc_TI_C5x.c. This will take some work. But, like Jean-Marc said, if all you are trying to do is prove that the DSP is working, you could pick something much simpler than Speex to do this. - Jim