Below is a modification of the wiki link: http://wiki.davincidsp.com/index.php/How_to_build_an_ARM/DSP_Hello_World_program_on_the_DaVinci_EVM Hopefully will help someone as a number of changes from online information were needed to build DSPLink on Windows. Am sure there are other ways but this seems to work. Kev
Building DSPLink/DSP Library & Sample Binaries in Windows (OMAP-L137)
Note: Below has not been tested yet but does result in the expected binary output generation. The creation of the below c:\dvevm_1_20 subdirectory is purely arbitrary and may be anything desired, used since following wiki example.
At first, create a directory: ‘C:\dvevm_1_20 and copy the dsplink folder from your linux to your windows host (you may already have it on your windows system as well but best to make a copy), i.e. C:\dvevm_1_20\ dsplink-1_61_03-prebuilt\packages\dsplink.
From now on, we work on the windows host. You need to install
- the Code Composer Studio test version
- Perl in C:\Perl
- MinGW in C:\Mingw [3]
Copy C:\Mingw\mingw32-make.exe to gmake.exe so your Mingw can understand the gmake command.
Create the folder C:\ti-tools\bios,
- copy the contents of C:\CCStudio_v3.3\bios_5_33_05 into C:\ti-tools\bios and
- the folder C:\CCStudio_v3.3\C6000 into C:\ti-tools so is a C:\ti-tools\C6000 folder.
Create multiple batch files in the C:\dvevm_1_20 directory and modify accordingly:
setpath.bat (each set is all on one line):
set DSPMAKE_Makefile=Makefile
set DSPLINK=C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink
set PATH=C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Mingw\bin
set C6X_C_DIR=C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\export\INCLUDE\DspBios\OMAPL1XX\internal
config.bat (each command is all on one line):
cd C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\etc\host\scripts\msdos
dsplinkcfg --platform=OMAPL1XX --nodsp=1 --dspcfg_0=OMAPL1XXGEMSHMEM --dspos_0=DSPBIOS5XX --gppos=MVL5G --comps=ponslrm --legacy=1
buildSampleDebug.bat (each command is all on one line):
cd C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\src\samples
copy C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\export\BIN\DspBios\OMAPL1XX\OMAPL1XXGEM_0\DEBUG\*.lib C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\BUILD\OMAPL1XXGEM_0\EXPORT\DEBUG
gmake -s debug
buildSampleRelease.bat (each command is all on one line):
cd C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\src\samples
copy C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\export\BIN\DspBios\OMAPL1XX\OMAPL1XXGEM_0\RELEASE\*.lib C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\BUILD\OMAPL1XXGEM_0\EXPORT\RELEASE
gmake -s release
buildDSPDebug.bat (each command is all on one line): cd C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\src gmake -s debug buildDSPRelease.bat (each command is all on one line):
cd C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\src gmake -s release
In order to setup for building the examples or libraries run the following once:
setpath
config
Now each time wish to build the samples run:
setpath
buildSampleDebug or buildSampleRelease depending upon type desired.
The .out file for each will be in:
C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\BUILD\OMAPL1XXGEM_0\EXPORT\DEBUG
Or
C:\dvevm_1_20\dsplink-1_61_03-prebuilt\packages\dsplink\dsp\BUILD\OMAPL1XXGEM_0\EXPORT\RELEASE
In order to build the DSP libraries:
setpath
buildDSPDebug or buildDSPRelease depending upon type desired.
Note: The copy command in the ‘buildSample…’ is not needed if a full build of the DSP libraries is done first. The rebuild automatically places the updated libraries in the proper directory. When copied from Linux the ‘dsplink’ prebuilt image does not have the libaries initally there.