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.

[参考译文] TMS320F28388D:适用于 Linux 上 F28388D 的 CCS v12 - SysConfig 为 Windows 生成 sw_prioritized_isr_levels.h

Guru**** 1566915 points
Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1365237/tms320f28388d-ccs-v12-for-f28388d-on-linux---sysconfig-generates-sw_prioritized_isr_levels-h-for-windows

器件型号:TMS320F28388D
主题中讨论的其他器件:C2000WARESysConfig

以下是配置:

CCS 版本:12

C2000Ware 版本:5.0.0.00

SysConfig 版本:1.16.2


我正在为我的组织开展一个构建完善的 Windows 项目。 但当我尝试在 Ubuntu 上执行相同操作时、编译器会 在 include 指令中生成 sw_prioritized_isr_levels.h 文件、其中包含基于 windows 的路径分隔符。

下面是代码片段:

// Include the header file with software interrupt prioritization logic
//
#include "device_support\f2838x\common\include\sw_interrupt_prioritization_logic.h"

#ifdef __cplusplus
}
#endif /* extern "C" */

#endif // eof
这会导致在 Ubuntu 操作系统上构建失败、并显示以下错误:
Building file: "syscfg/sw_prioritized_defaultisr.c"
Invoking: C2000 Compiler
"/home/rohit/ti/ccs1271/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -O2 --opt_for_speed=2 --fp_mode=relaxed --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/lib" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/FreeRTOS" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/BootloaderAPI" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/device" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Controls/ControlAlgos" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src" --include_path="/home/rohit/ti/ccs1271/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/device_support/f2838x/common/include" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/driverlib/f2838x/driverlib/" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/libraries/math/FPUfastRTS/c28/examples/common/f2838x/" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/libraries/math/FPUfastRTS/c28/examples/common/" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/libraries/math/FPUfastRTS/c28/include" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/PeriodicTSK" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Nodebits" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Controls/Inverter" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Controls/PLL" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Controls/ExtSync" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Controls/Rectifier" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Meters" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/DSPport" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/SystemTrap" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/Release" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/Release/syscfg" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Adc" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/device_support/f2838x/common/include" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/device_support/f2838x/headers/include" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/com_common" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/driverlib/f2838x/driverlib" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="/home/rohit/ti/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/MCAPI_Interface" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/src/Controls/BatteryConverter" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/spra820" --advice:performance=all --define=_DUAL_HEADERS --define=_FLASH --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -k --asm_listing --c_src_interlist --preproc_with_compile --preproc_dependency="syscfg/sw_prioritized_defaultisr.d_raw" --include_path="/home/rohit/Documents/cps-konark-upm/Konark_upm_cpu1/Release/syscfg" --obj_directory="syscfg" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/c2000ware_libraries.opt" --cmd_file="syscfg/c2000_freertos.opt" "syscfg/sw_prioritized_defaultisr.c"

>> Compilation failure
subdir_rules.mk:40: recipe for target 'syscfg/sw_prioritized_defaultisr.obj' failed
"syscfg/sw_prioritized_isr_levels.h", line 322: fatal error #1965: cannot open source file "device_support\f2838x\common\include\sw_interrupt_prioritization_logic.h"
1 catastrophic error detected in the compilation of "syscfg/sw_prioritized_defaultisr.c".
Compilation terminated.
gmake: *** [syscfg/sw_prioritized_defaultisr.obj] Error 1
你可能会问,我怎么知道路径分隔器是这里的罪魁祸首。 答案是、我曾尝试从终端手动运行 build 命令、并将路径分隔符切换到 Linux 样式(正斜杠)、build 命令有效。
那么、问题是、如何指示 SysConfig 使用 Linux 样式的路径分隔符?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!  

    此问题已在最新的 c2000Ware 版本(v5.02中修复。  

    建议您使用最新版本。  

    它复制位于以下位置的"sw_routed_isr_levels.h.xdt"文件也是一种操作: \driverlib\.meta\interrupt_nesting\sw_pristaled_isr_levels.h.xdt 至 <C2000Ware_5_00_00_00> driverlib\.meta\interrupt_nesting 文件夹

    此致

    西达尔特

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢。 我的问题得到了解决。