Currently the ADI script works and I can compile the kernel to support multicore and run the multicore demos.
Now I want to write my own program, which would be similar to mcapi_msg1.c. But I cannot compile. I tried the crosscompile tool chain bfin-(elf/uclinux/linux-uclibc)-gcc, all complainng header files missing, like mcapi.h, mcapi_test.h: No such file or directory.
Also, I attempted to change it directly and use the Makefile under ..../icc-183/example/task. It's complaining 'No rule to make target..blablabla ...../staging/usr/lib/libmcapi_coreb.a', needed by 'mcapi_msg1'.
I was wondering what's the mechanism behind the ADI script? The source files are retrieved from internet during executing the script and the generated executables are integrated into the kernel. Somehow I may prefer to separate the kernel building and testing program so that I can modify the program and ftp to the DSP without spending long time to recompile the kernel (just like the method depicted in http://blackfin.uclinux.org/doku.php?id=simple_hello_world_application_example).
I was wondering how can I achieve this? Moreover, does the multicore application require special care to compile (since one of the two programs is running on the core without OS)?