Part Number: AM6548
Other Parts Discussed in Thread: TMDX654IDKEVM
Tool/software: TI C/C++ Compiler
Hi all,
I am attempting build the CAN-ETH gateway example from CCS by creating a project and importing the source and build files. The project will be tested on the TMDX654IDKEVM, and the purpose is to get it running from CCS to make development of this simpler. At the moment I am quite stuck and was hoping someone could provide some assistance to make this work.
The following 2 error codes I am finding trouble resolving:
1) symbol "Osal_free" redefined: first defined in "./gateway_osal.obj"; redefined in "./utils_prf.obj" null: symbol "Osal_free" redefined: first defined in "./gateway_osal.obj"; redefined in "./utils_prf.obj"
2) unresolved symbol Board_init, first referenced in ./gateway_main.obj gatewayapp
There are plenty other errors as well as expected, but all are of the same for as the abovementioned. See the text file of the Console Build Log:
**** Build of configuration Debug for project gatewayapp **** "C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 4 all -O Building target: "gatewayapp.out" Invoking: ARM Linker "C:/ti/ti-cgt-arm_18.1.5.LTS/bin/armcl" --code_state=32 --define=SOC_AM65XX -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"gatewayapp.map" -i"C:/ti/pdk_am65xx_1_0_4/packages/ti/osal/lib/tirtos/am65xx/r5f/release" -i"C:/ti/ti-cgt-arm_18.1.5.LTS/lib" -i"C:/ti/ti-cgt-arm_18.1.5.LTS/include" --priority --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="gatewayapp_linkInfo.xml" --rom_model -o "gatewayapp.out" "./gateway_app.obj" "./gateway_main.obj" "./gateway_osal.obj" "./network_api.obj" "./utils_prf.obj" "../linker_r5.lds" -l"configPkg/linker.cmd" -llibc.a <Linking> error #10056: symbol "Osal_TaskCreate" redefined: first defined in "./gateway_osal.obj"; redefined in "./utils_prf.obj" error #10056: symbol "Osal_malloc" redefined: first defined in "./gateway_osal.obj"; redefined in "./utils_prf.obj" error #10056: symbol "Osal_free" redefined: first defined in "./gateway_osal.obj"; redefined in "./utils_prf.obj" error #10056: symbol "Osal_TaskCreate_v2" redefined: first defined in "./gateway_osal.obj"; redefined in "./utils_prf.obj" error #10056: symbol "Osal_TaskSleep" redefined: first defined in "./gateway_osal.obj"; redefined in "./utils_prf.obj" undefined first referenced symbol in file --------- ---------------- Board_init ./gateway_main.obj EMAC_socGetInitCfg ./gateway_main.obj EMAC_socSetInitCfg ./gateway_main.obj HwiP_Params_init ./gateway_app.obj HwiP_clearInterrupt ./gateway_app.obj HwiP_create ./gateway_app.obj HwiP_disable ./utils_prf.obj HwiP_restore ./utils_prf.obj MCAN_addStdMsgIDFilter ./gateway_app.obj MCAN_clearIntrStatus ./gateway_app.obj MCAN_clearNewDataStatus ./gateway_app.obj MCAN_config ./gateway_app.obj MCAN_enableIntr ./gateway_app.obj MCAN_enableIntrLine ./gateway_app.obj MCAN_getEndianVal ./gateway_app.obj MCAN_getErrCounters ./gateway_app.obj MCAN_getIntrStatus ./gateway_app.obj MCAN_getNewDataStatus ./gateway_app.obj MCAN_getOpMode ./gateway_app.obj MCAN_getProtocolStatus ./gateway_app.obj MCAN_getRevisionId ./gateway_app.obj MCAN_init ./gateway_app.obj MCAN_isFDOpEnable ./gateway_app.obj MCAN_isMemInitDone ./gateway_app.obj MCAN_msgRAMConfig ./gateway_app.obj MCAN_readMsgRam ./gateway_app.obj MCAN_selectIntrLine ./gateway_app.obj MCAN_setBitTime ./gateway_app.obj MCAN_setExtIDAndMask ./gateway_app.obj MCAN_setOpMode ./gateway_app.obj MCAN_txBufAddReq ./gateway_app.obj MCAN_txBufTransIntrEnable ./gateway_app.obj MCAN_writeMsgRam ./gateway_app.obj NimuEmacInitFxn ./gateway_main.obj UART_printf ./utils_prf.obj error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "gatewayapp.out" not built >> Compilation failure makefile:145: recipe for target 'gatewayapp.out' failed gmake[1]: *** [gatewayapp.out] Error 1 makefile:141: recipe for target 'all' failed gmake: *** [all] Error 2 **** Build Finished ****
I am not very sure as to what the cause of these errors might be, as all my header files seems to included correctly and contains the necessary declarations as well. Does seems as if the ARM linker is not linking the correct libraries (if linking any at all). However I am confused to what exact libraries to link it to:
The includes path can also be seenbelow:
I would greatly appreciate any assistance or advise as to what the cause of these problems might be, so that I can get these errors fixed. The complete project is also attached in the following .zip file if you would wish to try an reproduce the error: gatewayapp_test.zip
The following is true for my project:
- CCS: v9.1.0.00010
- Processor SDK RTOS for AM65xx v5.03.00.07
- SYS/BIOS v6.75.02.00
- NDK v3.40.01.01
- XDCTools v3.51.01.18_core
Any assistance or advise is greatly appreciated! Please let me know if any other info is required.
Kind regards,
Johnny