I have a trivial DSP program :-
int main( int argc, char* argv[] )
{
volatile int *ptr = (int*) SHARED_MEM ;
int value = 0 ;
for(;;){
if( value != *ptr ){
value = *ptr ;
value *= 2 ;
*ptr = value ;
}
}
return 0 ;
}
I want to load this onto the DSP core of a C6A816x from the ARM9 core.
I used the following compile options :-
cl6x --abi=eabi -k dspboot.c -z -i ../ti-ezsdk_dm816x-evm_5_01_01_80/cgt6x_7_2_2/lib/ --dynamic=exe --retain_Ipc_ResetVector -m DspBoot.map -o DspBoot.exe
I copy the resultant file, DspBoot.exe to the ARM9 Linux filesystem, I load the syslink module and attempt to run the DSP program using:
./procmgrapp_debug 0 /home/root/dm816x-evm/syslink/DspBoot.exe 0