Other Parts Discussed in Thread: OMAPL138
Tool/software: Code Composer Studio
Hi, Recently I purchased LCDK C6748 evaluation board for evaluating the DSP using the latest processor SDK. I installed CCS v10 and processor SDK for C6748/OMAP_L138. I configured the CCS to detect the processor SDK and this is done successfully.
I created a new CCS project for target C6748.
Below is the code in the main.c
#include <stdio.h> #include <ti/board/board.h> static void initBoard(); /** * main.c */ int main(void) { initBoard(); printf("Hello world\n"); return 0; } void initBoard() { Board_initCfg boardCfg; boardCfg = BOARD_INIT_PINMUX_CONFIG|BOARD_INIT_MODULE_CLOCK|BOARD_INIT_UART_STDIO; Board_init(boardCfg); }
In the main code, I am using the Board_init function. This is a function from board library of C6748. When I tried to build this, linker was complaining that Board_init could not be resolved.
To resolve this, I added the library "C:\ti\pdk_omapl138_1_0_11\packages\ti\board\lib\lcdkOMAPL138\c674\release\ti.board.ae674" to the library file path in Linker options.
But the linker is now complaining missing definitions of other SDK related functions from other libraries.
Is there any standard way to link all the required libraries to the project. In a sample project by TI, I noticed that libraries are linked as
${COM_TI_BIOS_LIBRARIES}
${COM_TI_PDK_LIBRARIES}
${COM_TI_EDMA3_LLD_LIBRARIES}
${COM_TI_IPC_LIBRARIES}
${COM_TI_NDK_LIBRARIES}
${COM_TI_UIA_LIBRARIES}
in linker options. Adding these variables in my project doesn't make any difference.
Could you please guide me in using the Processor SDK libraries in the right way?