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.
以下是配置:
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
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
您好!
此问题已在最新的 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 文件夹
此致
西达尔特
谢谢。 我的问题得到了解决。