Other Parts Discussed in Thread: SYSBIOS
Forgive me - I am beginning to feel a bit stupid .. but, after some days now of going through manuals, experimenting with CCS, and so on, I still cannot find a clear explanation of how to use the DSP from a program running under linux on the ARM side. Basically we would like to be able to farm out some intensive algorithm processing to the DSP from inside a program running in linux. It is not a video codec problem so the canned solutions for graphics don't really apply. And after several days of trying to figure out what is going on I am still confused .. There are _some_ unofficial examples for the older DSP/BIOS - but I see everywhere recommendations to use SYSBIOS. And I have thus far failed to even understand these simple things:
1. How to load and execute code on the DSP from linux - obviously this must be done at a lower level than clicking "Run" in CCS (which will not be running on the target ..). Ie. we need to run this either as a library call from our code (prefered) or a system() call on a external executable and receive the result of calculations.
2. In order to do this is it necessary to _already_ have booted SYSBIOS on the DSP? If so, how is this accomplished?
3. If #2 is necessary, again - how to then execute code from the linux side? And, ultimately, is it possible to call from a running process on the linux side to execute arbitrary code or will it be necessary to use a system call to execute a separate process to be loaded on the DSP?
The sort of answer I am trying to work out is in the form of low level specific instructions that will execute the code on the DSP - working out the build is not so much of a puzzle; what to do with the executable is the problem. I have no problem with the linux side, getting the necessary modules built and loaded, etc. and can probably deduce from the TI tools how to compile code for the DSP - I just don't understand how to get code _onto_ the DSP, execute it and read the result.
There seem to be some limited examples for this sort of thing using the older DSPBIOS/dspbridge (and maybe we will simply have to go that route) but I can find little of immediate practical use or clarification for SYSBIOS. I have gone over the SYSBIOS and SYSLINK guides, quickstarts, attempted from CCS, etc .. all week - it is _still_ not clear and I'm running up against time at this point ...
Thanks very much in advance for any help, clues, links, etc.