This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Undefined Symbol "HOSTwrite" in Projekt "Hello World" für SYS/BIOS TI AM3359 on BeagleBone Board

Other Parts Discussed in Thread: AM3359, SYSBIOS, AM3352

Hi ,

I'm trying to setup SYS/BIOS on the BeagleBone Board. I am using the provided SYS/BIOS example. I have the newest set of SYS/BIOS installations:

bios_6_34_01_14 / ipc_1_25_00_04 / xdais_7_21_01_07 / xdctools_3_24_03_33

I have created a RTSC platform file for the BeagleBone according the memory definitions of the AM3359.cmd file.

I can compile/link the SYS/BIOS example "Hello World" for a generic C6000 DSP without problems. Can anybody help ? Which library is missing the "HOSTwrite" definition - or what include path is missing in my project file ?

Klaus

 

**** Build of configuration Debug for project test1 ****

 

C:\ti\ccsv5\utils\bin\gmake -k all

'Building file: ../hello.cfg'

'Invoking: XDCtools'

"C:/ti/xdctools_3_24_03_33/xs" --xdcpath="C:/ti/bios_6_34_01_14/packages;C:/ti/ipc_1_25_00_04/packages;C:/ti/ccsv5/ccs_base;C:/Documents and Settings/wz97mr/myRepository/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p BeagleBone -r debug -c "C:/ti/ccsv5/tools/compiler/tms470_4.9.5" --compileOptions "-g --optimize_with_debug" "../hello.cfg"

making package.mak (because of package.bld) ...

generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...

configuring hello.xea8fnv from package/cfg/hello_pea8fnv.cfg ...

Warning: xdc.cfg.INCOMPATIBLE_TARGET_VERSION: current target 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,5] is not compatible with targets used to build the following packages; package ti.sysbios.family.arm [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/family/arm/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.hal [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/hal/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.family.arm.a8 [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/family/arm/a8/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.knl [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/knl/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.heaps [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/heaps/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.gates [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/gates/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.family.arm.exc [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/family/arm/exc/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.family.arm.a8.intcps [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/family/arm/a8/intcps/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.xdcruntime [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/xdcruntime/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.timers.dmtimer [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/timers/dmtimer/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.family.arm.a8.ti81xx [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/family/arm/a8/ti81xx/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

; package ti.sysbios.utils [in C:/ti/bios_6_34_01_14/packages/ti/sysbios/utils/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,5.0,1]

 

clea8fnv package/cfg/hello_pea8fnv.c ...

'Finished building: ../hello.cfg'

' '

'Building file: ../hello.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7A8 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --define=am3359 --define=am3352 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="hello.pp" --cmd_file="./configPkg/compiler.opt"  "../hello.c"

'Finished building: ../hello.c'

' '

'Building target: test1.out'

'Invoking: ARM Linker'

"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7A8 --code_state=32 --abi=eabi -me -g --define=am3359 --define=am3352 --diag_warning=225 --display_error_number -z --stack_size=0x800 -m"test1.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/lib" -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --reread_libs --warn_sections --display_error_number --rom_model -o "test1.out" -l"./configPkg/linker.cmd"  "./hello.obj" -l"libc.a"

<Linking>

 

undefined             first referenced                                                                                          

  symbol                   in file                                                                                              

 ---------             ----------------                                                                                          

 HOSTwrite             C:\WorkspaceBeagleBone\test1\Debug\configPkg\package\cfg\hello_pea8fnv.oea8fnv                           

 IND_CALL              C:\ti\xdctools_3_24_03_33\packages\ti\targets\arm\rtsarm\lib\auto_init.aea8fnv<auto_init.oea8fnv>        

 __TI_decompress_none                                                                                                           

 __TI_decompress_rle24                                                                                                           

 __TI_zero_init                                                                                                                 

 __aeabi_uidivmod      C:\ti\bios_6_34_01_14\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.aea8fnv<BIOS.obj>             

 __aeabi_uldivmod      C:\ti\bios_6_34_01_14\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.aea8fnv<BIOS.obj>             

 _args_main            C:\ti\xdctools_3_24_03_33\packages\ti\targets\arm\rtsarm\lib\boot.aea8fnv<boot.oea8fnv>                  

 _nop                  C:\WorkspaceBeagleBone\test1\Debug\configPkg\package\cfg\hello_pea8fnv.oea8fnv                           

 _register_lock        C:\WorkspaceBeagleBone\test1\Debug\configPkg\package\cfg\hello_pea8fnv.oea8fnv                           

 _register_unlock      C:\WorkspaceBeagleBone\test1\Debug\configPkg\package\cfg\hello_pea8fnv.oea8fnv                           

 abort                 C:\ti\xdctools_3_24_03_33\packages\ti\targets\arm\rtsarm\lib\ti.targets.arm.rtsarm.aea8fnv<System.oea8fnv>

atexit                C:\ti\xdctools_3_24_03_33\packages\ti\targets\arm\rtsarm\lib\ti.targets.arm.rtsarm.aea8fnv<System.oea8fnv>

copy_in               C:\ti\xdctools_3_24_03_33\packages\ti\targets\arm\rtsarm\lib\auto_init.aea8fnv<auto_init.oea8fnv>        

 exit                  C:\ti\xdctools_3_24_03_33\packages\ti\targets\arm\rtsarm\lib\ti.targets.arm.rtsarm.aea8fnv<System.oea8fnv>

main_func_sp          C:\ti\xdctools_3_24_03_33\packages\ti\targets\arm\rtsarm\lib\boot.aea8fnv<boot.oea8fnv>                  

 memcpy                C:\WorkspaceBeagleBone\test1\Debug\configPkg\package\cfg\hello_pea8fnv.oea8fnv                           

 memset                C:\WorkspaceBeagleBone\test1\Debug\configPkg\package\cfg\hello_pea8fnv.oea8fnv                           

 strlen                C:\ti\bios_6_34_01_14\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.aea8fnv<BIOS.obj>             

 

 

>> Compilation failure

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "test1.out" not built

gmake: *** [test1.out] Error 1

gmake: Target `all' not remade because of errors.

 

**** Build Finished ****

  • I could solve the problem. The included "rtsv7A8_A_le_n_eabi.lib" in the compiler path was only 1KB big. Usually the lib has an appr 14MB size. It seems, as if the library was not build correctly. The fact, that the compiler could find the file prevented, that the lib was rebuilt correctly again. After deleting the lib, the compiler could rebuilt it correctly and the linker was able to find all necessary packages.

    Klaus