Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
Tool/software: Code Composer Studio
I want to use CLB in 28379D now. I have installed CCS9.3.0.00012_win64, C2000Ware_2_01_00_00, tdm64-gcc-9.2.0, gtkwave-3.3.100-bin-win64. But when I build CLB project, there is always an error when generate the .exe and .vcd file. For example, when i build the CLB example file C:\ti\c2000\C2000Ware_2_01_00_00\driverlib\f2837xd\examples\cpu1\clb\CCS\clb_ex8_external_signal_AND_gate.projectspec, the console information is as below. Could you help check what's the reason?
**** Build of configuration Debug for project clb_ex8_external_signal_AND_gate ****
"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../clb_ex8_external_signal_AND_gate.syscfg"
Invoking: SysConfig
"C:/ti/ccs930/ccs/utils/sysconfig/sysconfig_cli.bat" -d "F2837xD" -s "C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/.metadata/product.json" -o "syscfg" "../clb_ex8_external_signal_AND_gate.syscfg"
Running script...
Validating...
Generating Code...
Writing C:\CCSworkspace\clb_ex8_external_signal_AND_gate\Debug\syscfg\clb_config.h...
Writing C:\CCSworkspace\clb_ex8_external_signal_AND_gate\Debug\syscfg\clb_config.c...
Writing C:\CCSworkspace\clb_ex8_external_signal_AND_gate\Debug\syscfg\clb.dot...
Writing C:\CCSworkspace\clb_ex8_external_signal_AND_gate\Debug\syscfg\clb_sim.cpp...
Finished building: "../clb_ex8_external_signal_AND_gate.syscfg"
Building file: "../clb_ex8_external_signal_AND_gate.c"
Invoking: C2000 Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --opt_for_speed=2 --fp_mode=strict --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/device_support/F2837xD/common/include" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/device" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/include" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="clb_ex8_external_signal_AND_gate.d_raw" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg" "../clb_ex8_external_signal_AND_gate.c"
Finished building: "../clb_ex8_external_signal_AND_gate.c"
Building file: "syscfg/clb_config.c"
Invoking: C2000 Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --opt_for_speed=2 --fp_mode=strict --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/device_support/F2837xD/common/include" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/device" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/include" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="syscfg/clb_config.d_raw" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg" --obj_directory="syscfg" "syscfg/clb_config.c"
Finished building: "syscfg/clb_config.c"
Building file: "syscfg/clb_sim.cpp"
Invoking: C2000 Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --opt_for_speed=2 --fp_mode=strict --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/device_support/F2837xD/common/include" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/device" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/include" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="syscfg/clb_sim.d_raw" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg" --obj_directory="syscfg" "syscfg/clb_sim.cpp"
Finished building: "syscfg/clb_sim.cpp"
Building file: "../device/F2837xD_CodeStartBranch.asm"
Invoking: C2000 Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --opt_for_speed=2 --fp_mode=strict --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/device_support/F2837xD/common/include" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/device" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/include" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="device/F2837xD_CodeStartBranch.d_raw" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg" --obj_directory="device" "../device/F2837xD_CodeStartBranch.asm"
Finished building: "../device/F2837xD_CodeStartBranch.asm"
Building file: "../device/device.c"
Invoking: C2000 Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --opt_for_speed=2 --fp_mode=strict --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/device_support/F2837xD/common/include" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/device" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/include" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="device/device.d_raw" --include_path="C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg" --obj_directory="device" "../device/device.c"
Finished building: "../device/device.c"
Building target: "clb_ex8_external_signal_AND_gate.out"
Invoking: C2000 Linker
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --opt_for_speed=2 --fp_mode=strict --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"clb_ex8_external_signal_AND_gate.map" --stack_size=0x200 --warn_sections -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/lib" -i"C:/ti/c2000/C2000Ware_2_01_00_00/driverlib/f2837xd/driverlib/ccs/Debug" -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="clb_ex8_external_signal_AND_gate_linkInfo.xml" --rom_model -o "clb_ex8_external_signal_AND_gate.out" "./clb_ex8_external_signal_AND_gate.obj" "./syscfg/clb_config.obj" "./syscfg/clb_sim.obj" "./device/F2837xD_CodeStartBranch.obj" "./device/device.obj" "../2837xD_RAM_lnk_cpu1.cmd" -ldriverlib.lib -llibc.a
<Linking>
Finished building target: "clb_ex8_external_signal_AND_gate.out"
mkdir "C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/simulation"
C:/TDM-GCC-64/bin/g++ -c -DCLB_SIM -IC:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc-2.3.3/src -IC:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/include -IC:/CCSworkspace/clb_ex8_external_signal_AND_gate -IC:/TDM-GCC-64/bin/include -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MFC:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/simulation/clb_sim.d -MTC:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/simulation/clb_sim.o -IC:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg -fno-threadsafe-statics -oC:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/simulation/clb_sim.o C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg/clb_sim.cpp
C:/TDM-GCC-64/bin/g++ -DCLB_SIM -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Wl,-Map,C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/simulation/simulation_output.map -LC:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc-2.3.3/build/src -oC:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/simulation/simulation_output.exe C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/simulation/clb_sim.o C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/src/CLB_FSM_SC_model.o C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/src/CLB_HLC_SC_model.o C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/src/CLB_LUT4_SC_model.o C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/src/CLB_OutputLUT_SC_model.o C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc/src/CLB_counter_SC_model.o -Wl,--start-group -lsystemc -Wl,--end-group
makefile:175: recipe for target 'post-build' failed
C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg/clb_sim.cpp: In constructor 'Top::Top(const sc_core::sc_module_name&, sc_core::sc_trace_file*)':
C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg/clb_sim.cpp:256:25: warning: 'Top::TILE1_in1_squareWave' will be initialized after [-Wreorder]
256 | squareWave TILE1_in1_squareWave;
| ^~~~~~~~~~~~~~~~~~~~
C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg/clb_sim.cpp:294:47: warning: base 'sc_core::sc_module' [-Wreorder]
294 | sc_top_clock("sc_top_clock", 10, SC_NS)
| ^
C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg/clb_sim.cpp:263:5: warning: when initialized here [-Wreorder]
263 | Top(const sc_module_name &name, sc_trace_file *_tf):
| ^~~
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/simulation/clb_sim.o: in function `__static_initialization_and_destruction_0':
C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/systemc-2.3.3/src/sysc/kernel/sc_ver.h:182: undefined reference to `sc_core::sc_api_version_2_3_3_cxx201402L<&sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_3_cxx201402L(sc_core::sc_writer_policy)'
collect2.exe: error: ld returned 1 exit status
gmake[2]: [post-build] Error 1 (ignored)
process_begin: CreateProcess(NULL, ./simulation/simulation_output.exe, ...) failed.
gmake[2]: [post-build] Error 2 (ignored)
./simulation/simulation_output.exe
makefile:175: recipe for target 'post-build' failed
C:/ti/ccs930/ccs/tools/node/node.exe "C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "C:/ti/c2000/C2000Ware_2_01_00_00/utilities/clb_tool/clb_syscfg" "C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg" "C:/CCSworkspace/clb_ex8_external_signal_AND_gate/Debug/syscfg/clb.dot"
CLB block diagram HTML was created!
CLB block diagram SVG was created!
**** Build Finished ****


