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.

CCS12 [28335] gmake: *** [xxx.obj] Error 1

对于此报错,很多方案是通过添加路径来解决,但是在我的工程中,包含了相关的路径,仍然存在此报错,请问还有别的解决方案吗?

相关的报错、.c代码和头文件请看下图。

  • 你好,您的问题可能于这篇帖子中的问题类似,您可以参考下这篇帖子:

    e2echina.ti.com/.../tms320f28075-gmake-f2807x_common-source-f2807x_tempsensorconv-obj-error-1

  • 感谢您的回答!我看了您推荐的这一篇帖子,他的问题是“在CCS的include内已经包含了F2807x_common和F2807x_headers,不需要再次复制到工程了。”但是在我的工程中,“iterative_feedfoeward_control.h\c”是自定义的,与common\headers没有关系呀,也不存在重复复制到工程中的问题。

  • 好的,麻烦将console中的完整信息发上来。可以用“插入” -> "代码"发上来。

  • Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    **** Build of configuration Debug for project IFFT_ILC_feedforward_control ****
    "D:\\Program Files\\CCS11\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
    Building file: "../APP/DAC/dac.c"
    Invoking: C2000 Compiler
    "D:/Program Files/CCS11/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O4 --opt_for_speed=3 --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/IFFT" --include_path="D:/CCSworkspacev11/DSP8233x_ProjectExample/DSP2833x_Libraries/DSP2833x_common/include" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/DAC" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/chuanhan" --include_path="D:/CCSworkspacev11/DSP8233x_ProjectExample/DSP2833x_Libraries/DSP2833x_headers/include" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/eqep" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/EXTI" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/leds" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/Matrix_calculate" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/oled" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/PID" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/time" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/uart" --include_path="D:/Program Files/CCS11/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="APP/DAC/dac.d_raw" --obj_directory="APP/DAC" "../APP/DAC/dac.c"
    Finished building: "../APP/DAC/dac.c"
    Building file: "../APP/IFFT/iterative_feedforward_control.c"
    Invoking: C2000 Compiler
    "D:/Program Files/CCS11/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O4 --opt_for_speed=3 --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/IFFT" --include_path="D:/CCSworkspacev11/DSP8233x_ProjectExample/DSP2833x_Libraries/DSP2833x_common/include" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/DAC" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/chuanhan" --include_path="D:/CCSworkspacev11/DSP8233x_ProjectExample/DSP2833x_Libraries/DSP2833x_headers/include" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/eqep" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/EXTI" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/leds" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/Matrix_calculate" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/oled" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/PID" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/time" --include_path="D:/CCSworkspacev11/IFFT_ILC_feedforward_control/APP/uart" --include_path="D:/Program Files/CCS11/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="APP/IFFT/iterative_feedforward_control.d_raw" --obj_directory="APP/IFFT" "../APP/IFFT/iterative_feedforward_control.c"
    >> Compilation failure
    APP/IFFT/subdir_rules.mk:9: recipe for target 'APP/IFFT/iterative_feedforward_control.obj' failed
    "../APP/IFFT/iterative_feedforward_control.c", line 66: warning #551-D: variable "Iter_num" is used before its value is set
    "../APP/IFFT/iterative_feedforward_control.c", line 39: warning #552-D: parameter "u_ff" was set but never used
    "../APP/IFFT/iterative_feedforward_control.c", line 55: warning #552-D: variable "E_rms" was set but never used
    "../APP/IFFT/iterative_feedforward_control.c", line 154: warning #551-D: variable "Iter_num" is used before its value is set
    "../APP/IFFT/iterative_feedforward_control.c", line 135: warning #552-D: variable "E_rms" was set but never used
    >> INTERNAL ERROR: Space required for local variables exceeds maximum in _ifft
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • 你好,我认为问题可能出在这里,

    相关的解决方法可以参考下下面这篇帖子:

    e2e.ti.com/.../internal-error-space-required-for-local-variables-exceeds-maximum-in-main

  • 感谢您的回答!按照推荐的帖子中的说法,28335做维度稍大的矩阵运算是不可能的。我查阅别的资料,改了堆栈的大小,但是仍然不够用,那这个问题是不是就解决不了了呢?

  • 你可以尝试矩阵类型改为static以及改用大内存模型,只修改堆栈的大小是没用的。

  • 非常感谢!静态数据这一步修改完成了,改用大内存模型的意思是改用更大内存的芯片嘛?

  • 不客气。

    改用大内存模型的意思是改用更大内存的芯片嘛?

    对的。