www.ti.com
Output
buffer
Memory
region
1. Write to DSP memory (data to be scaled)
using PROC_Write()
Application
thread
Input
buffer
5. Read from DSP memory (scaled data)
using PROC_Read ()
GPP
DSP
MSG
2. Send scaling factor
MSG
TSK
3. Scale data
4. Scaled data available
6. Verify data
4.4.1 Invoking the Application
READWRITE Sample
Figure 4-5. Data and Message Flow in the Sample Application – READWRITE
Parameter
Example Value
Absolute path of DSP executable
windows\readwrite.out
DSP address
2414804992
Buffer size
1024
Number of iterations
10000
The sample can be executed for infinite iterations by specifying the number of iterations as 0.
The DSP address mentioned above is for the DaVinci platform. This needs to be specified as a valid DSP
address for all platforms. The following example initiates the readwrite sample application to run for 4000
iterations with each transferring a buffer of size 1024 bytes.
Windows CE>s readwritegpp.exe windows\readwrite.out 2414804992 1024 4000
Figure 4-6
shows the snapshot of the Platform Builder IDE where the readwritegpp.exe is being executed
for 1000 iterations.
SPRUEW0 – March 2007
Sample Applications
17
Submit Documentation Feedback