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.

TMS320F280039C: 关于C2000Ware_MotorControl_SDK_5_00_00_00库中例程pto_pulsegen无法生成VCD文件

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

 你好,我的配置如下

Version:  Version: 12.5.0.00007 

C:C:\ti\c2000\C2000Ware_MotorControl_SDK_5_00_00_00\solutions\boostxl_posmgr\f28003x\ccs例程

导入到工作区间中,编译发现无法生成VCD仿真文件,但是SVG文件和syscfg文件都可以正常打开(且导入C:\ti\c2000\C2000Ware_5_00_00_00\driverlib\f28003x\examples\clb库内的CLB例程我是可以正常生成VCD文件的)   我自己分析的是,图三中的内容应该是不对的,需要更改但是我也不知道怎么改的,

我希望你们的技术人员能够试着导入这个例程,看看是否可以生成VCD仿真文件(因为其他库中的CLB例程我可以正常生成VCD文件,只有MotorControlSDK中的不可以,所以我想看一下是不是这个SDK本身就是不可以的)

  •  这个是编译之后的console窗口显示的

  • 你好,你发的连接我看了,我的问题和他这个不一样的,他这个报g++错误,可能是路径名称过长导致的,而我这边并没有报g++警告。

    另外我上面也已经说了,导入其他sdk库中的CLB例程都是可以正常生成VCD文件的,只有motorcontrolSDK中的那个例程无法生成

    这样从一个侧面可以说明我的仿真软件安装应该是没有问题的,

    我希望您这边可以在你那边导入一下这个例程,看看是否可以正常生成VCD文件,因为我看这个例程中的post build中的内容很奇怪,感谢

  • 你好,在吗?可以帮忙导入一下那个例程试一下吗?

  • 你指的是svg文件吧?

    我这边是有的:

  • svg文件我这边也有的,我现在想学习这个例程,所以需要用到VCD仿真文件,看仿真波形的

  • 我刚把路径和Build->variables中的变量GENERATE-DIAGRAM=1,我看了一下感觉还是post-build中的问题,但我不会解决

    **** Clean-only build of configuration F28003x_RAM for project pto_pulsegen_demo_f28003x ****
    
    "C:\\ti\\ccs1250\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O 
     
    DEL /F  "syscfg\board.h" "syscfg\board.cmd.genlibs" "syscfg\pinmux.csv" "syscfg\c2000ware_libraries.cmd.genlibs" "syscfg\c2000ware_libraries.h" "syscfg\clocktree.h"  "syscfg\board.c" "syscfg\board.opt" "syscfg\c2000ware_libraries.opt" "syscfg\c2000ware_libraries.c"  "pto_pulsegen_demo_f28003x.out" 
    DEL /F "device\device.obj" "device\f28003x_codestartbranch.obj" "source\pto_pulsegen_main.obj" "source\pulsegen.obj" "syscfg\board.obj" "syscfg\c2000ware_libraries.obj" 
    DEL /F "device\device.d" "source\pto_pulsegen_main.d" "source\pulsegen.d" "syscfg\board.d" "syscfg\c2000ware_libraries.d" 
    DEL /F "device\f28003x_codestartbranch.d" 
    RMDIR /S/Q  "syscfg\" 
    找不到 D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\device\f28003x_codestartbranch.d
    Finished clean
     
    
    **** Build Finished ****
    
    **** Build of configuration F28003x_RAM for project pto_pulsegen_demo_f28003x ****
    
    "C:\\ti\\ccs1250\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../source/pulsegen_f28003x.syscfg"
    Invoking: SysConfig
    "C:/ti/ccs1250/ccs/utils/sysconfig_1.18.0/sysconfig_cli.bat" -s "C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/.metadata/sdk.json" -d "F28003x" --script "D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/source/pulsegen_f28003x.syscfg" -o "syscfg" --package 100PZ --part F28003x_100PZ --compiler ccs
    Running script...
    Validating...
    Generating Code (pulsegen_f28003x.syscfg)...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\board.c...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\board.h...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\board.cmd.genlibs...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\board.opt...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\pinmux.csv...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\c2000ware_libraries.cmd.genlibs...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\c2000ware_libraries.opt...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\c2000ware_libraries.c...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\c2000ware_libraries.h...
    Writing D:\TI\Project\TMS320F280039C\pto_pulsegen_demo_f28003x\F28003x_RAM\syscfg\clocktree.h...
    Finished building: "../source/pulsegen_f28003x.syscfg"
     
    Building file: "../device/f28003x_codestartbranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcrc -O1 --opt_for_speed=5 --fp_mode=relaxed --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x" --include_path="C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/driverlib/f28003x/driverlib" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/device" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/include" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_libproj_f28003x/include" --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=CPU1 --define=_LAUNCHXL_F280039C --define=_F28003x --define=DEBUG --float_operations_allowed=32 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ramfunc=on --preproc_with_compile --preproc_dependency="device/f28003x_codestartbranch.d_raw" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg" --obj_directory="device" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/c2000ware_libraries.opt"  "../device/f28003x_codestartbranch.asm"
    Finished building: "../device/f28003x_codestartbranch.asm"
     
    Building file: "../source/pulsegen.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcrc -O1 --opt_for_speed=5 --fp_mode=relaxed --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x" --include_path="C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/driverlib/f28003x/driverlib" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/device" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/include" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_libproj_f28003x/include" --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=CPU1 --define=_LAUNCHXL_F280039C --define=_F28003x --define=DEBUG --float_operations_allowed=32 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ramfunc=on --preproc_with_compile --preproc_dependency="source/pulsegen.d_raw" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg" --obj_directory="source" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/c2000ware_libraries.opt"  "../source/pulsegen.c"
    Finished building: "../source/pulsegen.c"
     
    Building file: "syscfg/board.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcrc -O1 --opt_for_speed=5 --fp_mode=relaxed --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x" --include_path="C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/driverlib/f28003x/driverlib" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/device" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/include" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_libproj_f28003x/include" --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=CPU1 --define=_LAUNCHXL_F280039C --define=_F28003x --define=DEBUG --float_operations_allowed=32 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ramfunc=on --preproc_with_compile --preproc_dependency="syscfg/board.d_raw" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg" --obj_directory="syscfg" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/c2000ware_libraries.opt"  "syscfg/board.c"
    Finished building: "syscfg/board.c"
     
    Building file: "syscfg/c2000ware_libraries.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcrc -O1 --opt_for_speed=5 --fp_mode=relaxed --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x" --include_path="C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/driverlib/f28003x/driverlib" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/device" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/include" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_libproj_f28003x/include" --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=CPU1 --define=_LAUNCHXL_F280039C --define=_F28003x --define=DEBUG --float_operations_allowed=32 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ramfunc=on --preproc_with_compile --preproc_dependency="syscfg/c2000ware_libraries.d_raw" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg" --obj_directory="syscfg" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/c2000ware_libraries.opt"  "syscfg/c2000ware_libraries.c"
    Finished building: "syscfg/c2000ware_libraries.c"
     
    Building file: "../device/device.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcrc -O1 --opt_for_speed=5 --fp_mode=relaxed --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x" --include_path="C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/driverlib/f28003x/driverlib" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/device" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/include" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_libproj_f28003x/include" --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=CPU1 --define=_LAUNCHXL_F280039C --define=_F28003x --define=DEBUG --float_operations_allowed=32 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ramfunc=on --preproc_with_compile --preproc_dependency="device/device.d_raw" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg" --obj_directory="device" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/c2000ware_libraries.opt"  "../device/device.c"
    Finished building: "../device/device.c"
     
    Building file: "../source/pto_pulsegen_main.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcrc -O1 --opt_for_speed=5 --fp_mode=relaxed --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x" --include_path="C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/driverlib/f28003x/driverlib" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/device" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/include" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_libproj_f28003x/include" --include_path="C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=CPU1 --define=_LAUNCHXL_F280039C --define=_F28003x --define=DEBUG --float_operations_allowed=32 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ramfunc=on --preproc_with_compile --preproc_dependency="source/pto_pulsegen_main.d_raw" --include_path="D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg" --obj_directory="source" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/c2000ware_libraries.opt"  "../source/pto_pulsegen_main.c"
    Finished building: "../source/pto_pulsegen_main.c"
     
    Building target: "pto_pulsegen_demo_f28003x.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcrc -O1 --opt_for_speed=5 --fp_mode=relaxed --define=CPU1 --define=_LAUNCHXL_F280039C --define=_F28003x --define=DEBUG --float_operations_allowed=32 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ramfunc=on -z -m"pto_pulsegen_demo_f28003x.map" --heap_size=0x200 --stack_size=0x3F8 --warn_sections -i"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"D:/TI/Project/TMS320F280039C/pto_pulsegen_libproj_f28003x/lib" -i"C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/driverlib/f28003x/driverlib/ccs/Debug/" -i"C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="pto_pulsegen_demo_f28003x_linkInfo.xml" --entry_point=code_start --rom_model -o "pto_pulsegen_demo_f28003x.out" "./device/device.obj" "./device/f28003x_codestartbranch.obj" "./source/pto_pulsegen_main.obj" "./source/pulsegen.obj" "./syscfg/board.obj" "./syscfg/c2000ware_libraries.obj" "../cmd/pto_28003x_ram_lnk.cmd"  -lpto_pulsegen_f28003x.lib -ldriverlib.lib -llibc.a 
    <Linking>
    Finished building target: "pto_pulsegen_demo_f28003x.out"
     
    echo ========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) =============
    ========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) =============
    if 1 == 1  mkdir "D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/diagrams"
    makefile:167: recipe for target 'post-build' failed
    子目录或文件 D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/diagrams 已经存在。
    gmake[2]: [post-build] Error 1 (ignored)
    if 1 == 1  C:/ti/ccs1250/ccs/tools/node/node.exe "C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/driverlib/.meta/generate_diagrams.js" "C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware" "D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/diagrams" "D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg"
    Output file: adc
    No input file!
    Output file: epwm
    No input file!
    Output file: clb
    No input file!
    if 1 == 1  C:/ti/ccs1250/ccs/tools/node/node.exe "C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js"  "C:/ti/c2000/C2000Ware_MotorControl_SDK_5_00_00_00/c2000ware/utilities/clb_tool/clb_syscfg/" "D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg" "D:/TI/Project/TMS320F280039C/pto_pulsegen_demo_f28003x/F28003x_RAM/syscfg/clb.dot"
    No CLB dot file!
     
    
    **** Build Finished ****
    

  • 你好,你那边可以生成VCD仿真文件吗

  • post build 中的第一句话应该是指的这个选项,但是我这边勾选了这个选项还是没有VCD文件,你那边可以试一下看有没有。

  • 你说的这个我看到post build内容的时候也去libproj工程中勾选了,但是并没有生成VCD文件

    你有没有留意到console中的内容,这里说的是没有dot文件,而dot文件时syscfg tool生成的,只有它才能生成VCD文件,

  • 这里其实有两个工程,一个是demo,一个是libproj,如果我直接编译demo工程,那么我会得到和你一样的结果,如果我直接编译libproj工程,我这里是有dot文件的,但是同样没有cvd文件。看了下我的console,感觉syscfg工具缺少了将dot文件转化到vcd文件这一步。

    我咨询下相关资深工程师后回复您。

  • 你好,我同样去看了一下libproj工程下的文件,发现我也是有dot文件生成的,但是也是没有VCD文件生成,其实我认为VCD文件应该是在libproj工程中生成,而demo工程只是负责调用而已。

    为了尽快解决这个问题,我再英文论坛也进行了提问,可以在移步到下面一起讨论

    TMS320F280039C: pto_pulsegen_demo_f28003x can't generate VCD file - C2000 microcontrollers forum - C2000Tm︎ microcontrollers - TI E2E support forums

  • 好的,还请关注那边的回复。我这边也会继续关注该问题。这个帖子我就先关闭了。

  • 嗯好的,非常感谢,希望你能关注一下这个问题,一起把它解决

  • Ben

    我今早看了一下你们那边的英文社区论坛,他们好像并没有提供支持,我还是希望你能跟一下这个问题,想要把这个问题尽快解决

  • 英文论坛那边由于与我们这边有时差,所以回复会有延迟。感谢您的耐心。