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.

AM2732: 使用官方的两片级联SDK,修改makefile添加 ENET 支持,编译报错

Part Number: AM2732

我使用的SDK是mmWave2ChipCascade,主要修改了mmWave2ChipCascade\ti\demo\am273x\mmw\路径下的makefile文件以及.\mms\mmw_mss.mak文件,大致修改如下:

编译报错:

工程中能够找到这些定义,但是不知道为什么没有链接进来,希望能够得到大家的支持,非常感谢

  • 修改了些内容后,目前报了新的错误:

    出错的位置是在这里:

    请问这个要怎么改呢?

    我的编译指令是这样的:

    C:/ti/ccs1230/ccs/tools/compiler/ti-cgt-armllvm_2.1.3.LTS/bin/tiarmclang -Os -O3 -flto -Wl,--diag_suppress=10063 -Wl,--ram_model -Wl,--reread_libs -Wl,--zero_init=on -Wl,--use_memset=fast -Wl,--use_memcpy=fast  -Wl,-iE:/R7863/mcu_plus_sdk_am273x_08_05_00_24/source/kernel/freertos/lib -Wl,-iE:/R7863/mcu_plus_sdk_am273x_08_05_00_24/source/drivers/lib -Wl,-iE:/R7863/mcu_plus_sdk_am273x_08_05_00_24/source/board/lib -Wl,-iC:/ti/ccs1230/ccs/tools/compiler/ti-cgt-armllvm_2.1.3.LTS/lib  -Wl,-iE:/R7863/mmWave2ChipCascade/ti/control/mmwavelink/lib -Wl,-iE:/R7863/mmWave2ChipCascade/ti/control/mmwave/lib -Wl,-iE:/R7863/mmWave2ChipCascade/ti/utils/cli/lib -Wl,-iE:/R7863/mmWave2ChipCascade/ti/control/dpm/lib -Wl,-iE:/R7863/mmWave2ChipCascade/ti/utils/mathutils/lib -Wl,-iE:/R7863/mmWave2ChipCascade/ti/alg/gtrack/lib -Wl,-iE:/R7863/mmWave2ChipCascade/ti/utils/testlogger/lib -Wl,-iE:/R7863/mmWave2ChipCascade/ti/demo/am273x/mmw/mss/mssgenerated -Wl,-iE:/R7863/mcu_plus_sdk_am273x_08_05_00_24/source/networking/enet/lib -Wl,-iE:/R7863/mcu_plus_sdk_am273x_08_05_00_24/source/networking/lwip/lib  -Wl,-m=am273x_mmw_cascade_demo_mss_DDM.map \
    -o am273x_mmw_cascade_demo_mss_DDM.xer5f obj_am273x/mmwdemo_adcconfig.oer5f obj_am273x/mmwdemo_monitor.oer5f obj_am273x/mmw_cli.oer5f obj_am273x/mmwdemo_flash.oer5f obj_am273x/gtrackAlloc.oer5f obj_am273x/gtrackLog.oer5f obj_am273x/mss_tracker.oer5f obj_am273x/mss_main.oer5f obj_am273x/imcan_data.oer5f obj_am273x/mmwdemo_rfparserDDMA.oer5f obj_am273x/enet_stream.oer5f obj_am273x/enet_cpswconfighandler.oer5f obj_am273x/enet_tcpclient.oer5f obj_am273x/mssgenerated/ti_board_config.oer5f obj_am273x/mssgenerated/ti_board_open_close.oer5f obj_am273x/mssgenerated/ti_dpl_config.oer5f obj_am273x/mssgenerated/ti_drivers_config.oer5f obj_am273x/mssgenerated/ti_pinmux_config.oer5f obj_am273x/mssgenerated/ti_power_clock_config.oer5f obj_am273x/mssgenerated/ti_drivers_open_close.oer5f obj_am273x/mssgenerated/ti_enet_config.oer5f obj_am273x/mssgenerated/ti_enet_open_close.oer5f obj_am273x/mssgenerated/ti_enet_soc.oer5f obj_am273x/mssgenerated/ti_enet_lwipif.oer5f -lboard.am273x.r5f.ti-arm-clang.release.lib -lfreertos.am273x.r5f.ti-arm-clang.release.lib -ldrivers.am273x.r5f.ti-arm-clang.release.lib -llibc.a  -llibtestlogger_am273x.aer5f -llibmmwavelink_cascade_am273x.aer5f -llibmmwave_cascade_am273x.aer5f -llibdpm_am273x.aer5f -llibmathutils.aer5f -llibcli_cascade_am273x.aer5f -llibgtrack3D_am273x.aer5f -lenet-cpsw.am273x.r5f.ti-arm-clang.release.lib -llwip-contrib-freertos.am273x.r5f.ti-arm-clang.release.lib -llwipif-cpsw-freertos.am273x.r5f.ti-arm-clang.release.lib -llwip-freertos.am273x.r5f.ti-arm-clang.release.lib  \
    E:/R7863/mmWave2ChipCascade/ti/platform/am273x/r5f_linker_enet.cmd

  • 我使用的SDK是mmWave2ChipCascade

    请问这是TI提供的SDK吗?


    修改了些内容后,目前报了新的错误:

    这个错误提示是代码超过了给分配段的大小,需要在cmd文件里对memory大小进行调整。下面是对这个error的解释。
    https://software-dl.ti.com/ccs/esd/documents/dmed/HTML/10099.html

  • 非常感谢您的回复,看上去是这个样子,现在报错是这样的:

    map文件中也能够看到目前的剩余空间:

    但是要怎么修改cmd文件呢?

  • 看上去是这个样子,现在报错是这样的:

    请问修改了什么?

  • 就是修改了mmw_mss.mak文件中调用的cmd文件路径

    改成了

    也就是由调用r5f_linker_enet.cmd改成了调用r5f_linker.cmd

  • Hi,

    建议您可以参考下最新版本的SDK,其中memory已进行优化(在linker cmd 文件中)。