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.

AM2434: Missing TSN stack libs (LLDP) for AM243x in SDK 11.01.00

Part Number: AM2434

Hello,

on AM243X-LP with AM243x MCU+ SDK 11.01.00 and SysCfg 1.24.1 I was attempting to build "Ethernet LLDP Example" in CCS 12.18.1. Hoewever I believe the TSN stack in this version of SDK is missing some things. Here is the build log:

**** Build of configuration Release for project lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang ****

"C:\\ti\\ccs1281\\ccs\\utils\\bin\\gmake" -k -j 28 all -O 
 
Building target: "lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out"
Invoking: Arm Linker
"C:/ti/ti-cgt-armllvm_4.0.1.LTS/bin/tiarmclang.exe" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Oz -flto -DSOC_AM243X -DENET_ENABLE_PER_CPSW=1 -DPRINT_FORMAT_NO_WARNING -DSITARA -DLLDP_ENABLED -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function --include="tsn_buildconf/sitara_buildconf.h" -Wl,-m"lldp_app.Release.map" -Wl,-i"<redacted>/ti_sdk/source/kernel/freertos/lib" -Wl,-i"<redacted>/ti_sdk/source/drivers/lib" -Wl,-i"<redacted>/ti_sdk/source/board/lib" -Wl,-i"<redacted>/ti_sdk/source/networking/enet/lib" -Wl,-i"<redacted>/ti_sdk/source/networking/tsn/lib" -Wl,-i"<redacted>/ti_sdk/source/networking/tsn/tsn-stack/eval_lib" -Wl,-i"C:/ti/ti-cgt-armllvm_4.0.1.LTS/lib" -Wl,-i"<redacted>/workspace_v12/lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang/Release/syscfg" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--gen_xml_func_hash -Wl,--xml_link_info="lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang_linkInfo.xml" -Wl,--ram_model -Wl,--zero_init=on -Wl,--use_memcpy=fast -Wl,--use_memset=fast -o "lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out" "./debug_log.o" "./default_flow_cfg.o" "./default_flow_cpsw.o" "./enetapp_cpsw.o" "./syscfg/ti_dpl_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_drivers_open_close.o" "./syscfg/ti_pinmux_config.o" "./syscfg/ti_power_clock_config.o" "./syscfg/ti_board_config.o" "./syscfg/ti_board_open_close.o" "./syscfg/ti_enet_config.o" "./syscfg/ti_enet_open_close.o" "./syscfg/ti_enet_soc.o" "./syscfg/ti_enet_lwipif.o" "./lldp_init.o" "./main.o" "./tsnapp_cpsw_main.o" "./tsninit.o" "<redacted>/ti_sdk/source/networking/enet/core/examples/tsn/lldp_cpsw_app/am243x-lp/r5fss0-0_freertos/ti-arm-clang/linker.cmd"  -Wl,-lfreertos.am243x.r5f.ti-arm-clang.release.lib -Wl,-ldrivers.am243x.r5f.ti-arm-clang.release.lib -Wl,-lenet-cpsw.am243x.r5f.ti-arm-clang.release.lib -Wl,-lboard.am243x.r5f.ti-arm-clang.release.lib -Wl,-llibc.a -Wl,-llibsysbm.a -Wl,-ltsn_combase-freertos.am243x.r5f.ti-arm-clang.release.lib -Wl,-ltsn_unibase-freertos.am243x.r5f.ti-arm-clang.release.lib -Wl,-ltsn_lldp-freertos.am243x.r5f.ti-arm-clang.lib -Wl,-ltsn_uniconf-freertos.am243x.r5f.ti-arm-clang.release.lib 
makefile:162: recipe for target 'lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out' failed
error #10008-D: cannot find file "tsn_lldp-freertos.am243x.r5f.ti-arm-clang.lib"

undefined                 first referenced                        
  symbol                       in file                             
 ---------                 ----------------                        
 close_aps_dbal            .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 get_onenode_enum          .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 lldpd_deinit              .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 lldpd_init                .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 lldpd_run                 .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 lldpd_uniconf_access_mode .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 set_init_aps              .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 uc_dbal_checkdb           .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 uc_dbal_setproc           .\{CA63E617-0655-4B0F-9BB2-9FE45876A86D}
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out" not built
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out] Error 1
gmake: *** [all] Error 2
makefile:158: recipe for target 'all' failed

**** Build Finished ****

I did some digging and found source\networking\tsn\tsn-stack\tools\create_eval_libs.sh which might be able to build the tsn_lldp.*.lib but I am missing the eval_src in the tsn-stack. With more digging I was able to find https://github.com/TexasInstruments/enet-tsn-stack/tree/next which has the tsn_lldp library in eval_lib so I copy-pasted over this entire repo over tsn-stack folder in my TI SDK. However I am still getting unresolved symbols:

"C:/ti/ti-cgt-armllvm_4.0.1.LTS/bin/tiarmclang.exe" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Oz -flto -DSOC_AM243X -DENET_ENABLE_PER_CPSW=1 -DPRINT_FORMAT_NO_WARNING -DSITARA -DLLDP_ENABLED -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function --include="tsn_buildconf/sitara_buildconf.h" -Wl,-m"lldp_app.Release.map" -Wl,-i"<redacted>/lib/ti_sdk/source/kernel/freertos/lib" -Wl,-i"<redacted>/lib/ti_sdk/source/drivers/lib" -Wl,-i"<redacted>/lib/ti_sdk/source/board/lib" -Wl,-i"<redacted>/lib/ti_sdk/source/networking/enet/lib" -Wl,-i"<redacted>/lib/ti_sdk/source/networking/tsn/lib" -Wl,-i"<redacted>/lib/ti_sdk/source/networking/tsn/tsn-stack/eval_lib" -Wl,-i"C:/ti/ti-cgt-armllvm_4.0.1.LTS/lib" -Wl,-i"<redacted>/lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang/Release/syscfg" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--gen_xml_func_hash -Wl,--xml_link_info="lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang_linkInfo.xml" -Wl,--ram_model -Wl,--zero_init=on -Wl,--use_memcpy=fast -Wl,--use_memset=fast -o "lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out" "./debug_log.o" "./default_flow_cfg.o" "./default_flow_cpsw.o" "./enetapp_cpsw.o" "./syscfg/ti_dpl_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_drivers_open_close.o" "./syscfg/ti_pinmux_config.o" "./syscfg/ti_power_clock_config.o" "./syscfg/ti_board_config.o" "./syscfg/ti_board_open_close.o" "./syscfg/ti_enet_config.o" "./syscfg/ti_enet_open_close.o" "./syscfg/ti_enet_soc.o" "./syscfg/ti_enet_lwipif.o" "./lldp_init.o" "./main.o" "./tsnapp_cpsw_main.o" "./tsninit.o" "<redacted>/ti_sdk/source/networking/enet/core/examples/tsn/lldp_cpsw_app/am243x-lp/r5fss0-0_freertos/ti-arm-clang/linker.cmd"  -Wl,-lfreertos.am243x.r5f.ti-arm-clang.release.lib -Wl,-ldrivers.am243x.r5f.ti-arm-clang.release.lib -Wl,-lenet-cpsw.am243x.r5f.ti-arm-clang.release.lib -Wl,-lboard.am243x.r5f.ti-arm-clang.release.lib -Wl,-llibc.a -Wl,-llibsysbm.a -Wl,-ltsn_combase-freertos.am243x.r5f.ti-arm-clang.release.lib -Wl,-ltsn_unibase-freertos.am243x.r5f.ti-arm-clang.release.lib -Wl,-ltsn_lldp-freertos.am243x.r5f.ti-arm-clang.lib -Wl,-ltsn_uniconf-freertos.am243x.r5f.ti-arm-clang.release.lib 
makefile:162: recipe for target 'lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out' failed
 
 undefined        first referenced                        
  symbol              in file                             
 ---------        ----------------                        
 close_aps_dbal   .\{63CB9DEA-B309-4EB6-9D23-13F5FF37F6F5}
 get_onenode_enum .\{63CB9DEA-B309-4EB6-9D23-13F5FF37F6F5}
 set_init_aps     .\{63CB9DEA-B309-4EB6-9D23-13F5FF37F6F5}
 uc_dbal_checkdb  .\{63CB9DEA-B309-4EB6-9D23-13F5FF37F6F5}
 uc_dbal_setproc  .\{63CB9DEA-B309-4EB6-9D23-13F5FF37F6F5}
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "lldp_app_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out" not built

Thank you for any help,
Vaclav

  • Hi Vaclav,

    I apologise for the trouble caused here. The support for LLDP examples has been redacted from MCU_PLUS_SDK 10_01_00 due to changes in the TSN stack support structure. So, the latest SDK which supports LLDP example on AM243x platform is MCU_PLUS_SDK_10_00_00. Please let us know if you have requirement which needs support for this example on later releases. I will investigate the possibility for support structure. 

    Thanks and regards,
    Teja.

  • Heya Teja,

    I apologize for missing your reply, it somehow slipped through my inbox. We had a discussion with visiting TI sales experts about this, and I will attempt to downgrade SDK to 10_00_00 or, at least, the TSN stack part. If I can get our prototype working with it, we might be interested in requesting "reviving" it in the next SDK if possible, but I have to test it first.

    Vaclav

  • Hi Vaclav,

    I have to check with the feasibility of reviving it back if that is needed, but as a heads up, it was done due to some licensing agreement. I would have to run this internally before committing the feasibility. Please let me know the results on your side, and we can work things around to enable you with LLDP libraries as needed.

    Thanks and regards,
    Teja.