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/CC1350:更改.cfg 文件、编译错误

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/816181/ccs-cc1350-changing-cfg-file-compile-error

器件型号:CC1350
Thread 中讨论的其他器件: CC2650

工具/软件:Code Composer Studio

您好!

我正在尝试根据简单的外设 BLE 示例在我的项目中实现引导加载程序。 我需要将应用程序移至第1页- 30页、并让复位矢量位于闪存第1页的开头。  

在 cc26xx_app.cmd 中、我更改了:

#define FLASH_APP_BASE 0x01000  
#define FLASH_LEN 0x1F000  

然后在 cc135.cfg 中:

m3Hwi.resetVectorAddress = 0x1000;

那么我得到 了该 误差。 但是、当我对 ROM 行进行注释时、会出现编译错误:

"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/tirtos/ccs/config/app_ble.cfg "、第1行
"./package/cfg/app_ble_pem3.cfg、第180行
gmake.exe:***[package.mak:202:package/cfg/app_ble_pem3.xdl]错误1
JS:"c:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs、第52行:错误:xdc.tools.configuro:由于先前的错误(状态= 2)、配置失败;已删除'linker.cmd'。
gmaking[1]:***[Build-272016337-InProC]错误1.
gmake:***[build-272016337]错误2.
tools/subdir_rules.mk:9:目标'build-272016337'的配方失败
gmake:目标"全部"不会由于错误而重新生成。

****构建完成****

我出了什么问题? 非常感谢。

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

    尊敬的安德烈:

    指派专家进行评论。

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

    没有人知道导致此错误的原因是什么?

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

    您好!

    是否确实复制了整个错误消息? 我尝试复制、它说"引导未定义"、解决方案是在 cfg 文件中取消注释 var Boot = xxx (之前 ROM 我假定已隐式包含该变量)。 问题观点也明确指出了这一点。 修复此问题后、我可以进行编译。

    此致、
    Aslak

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

    你(们)好  Aslak

    这是完整的控制台日志:


    ****纯净的配置构建项目 simple_peripheral_cc1350lp_app_FlashROM 的调试****

    "C:\\ti\\ccs901\\ccs\\utils\bin\\gmake"-k -j 4 clean -o

    DEL /F "simple_peripheral_cc1350lp_app_FlashROM.hex""configPkg\linker.cmd""configPkg\compiler.opt""simple_peripheral_cc1350lp_app_FlashROM.out"
    del /F "Application\simple_peripheral.obj""Application\util.obj""Drivers\ECC\ECCROMCC26XX.obj""Drivers\TRNG\TRNGCC26XX.obj""iCall\iCall.util.obj "iCall_iCall_cc2620.obj""ICallble_user_config.obj 启动配置文件"iCall_it_启动.util.obj "iStart_profiles""iCall_启动 配置文件"\cmag.util.obj "\iStart_profiles\cmisor.obj "\cm.util.obj "\cm.util.util.util.obj "\cm.util.util.util.obj "iCall_profiles""\cm.util.util.util.obj "\cg.util.obj "\cm.util.util.util.util.util
    del /F "Application\simple_peripheral.d""Application\util.d""Drivers\ECC\ECC\ECROMCC26XX.d""Drivers\TRNG\TRNGCC26XX.d""iCall\iCall.d" iCall\iCall_cc260.d""ICallble\ble_user_config.d"启动配置文件"iCall\iCall_cc260.d""iStart_profiles""iStart_apord""uat_diStart_apiStart_profiles""uat_ap.ude""iCall.d"uat_profiles""uat_event_event_event_event_event_event_event_event_event_event_event_event_event_event_event_event_eventual.d"
    rmdir /S/Q "configPkg\"
    已完成清理

    ****构建完成****

    ****项目 simple_peripheral_cc1350lp_app_FlashROM 的配置调试构建****

    "C:\\ti\\ccs901\\ccs\\utils\bin\\gmake"-k -j 4 all -O

    编译文件:"c:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/tirtos/ccs/config/app_ble.cfg
    调用:XDCtools
    "c:/ti/xdctools_3_51_02_21_core/xs ti.platforms.simplelink:CC1350F128 /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/devices/cc13x0 /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/icall/inc /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/dev_info /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/common/cc26xx "--xdcpath="C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source;C:/ti/simplelink_cc13x0_sdk_3_10_00_11/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.are.elf.M3 -r 版本-c "C:/ti/ccs901/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS -compileOptions "-mv7M3 -code_state=16\-me -O4 -opt-opt_path=/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/src/app /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/roles/cc26xx /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/simple_profile/cc26xx /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/heapmgr -include-cn_path=/Work/simple_peripheral_cc1350lp_app_FlashROM -cn_trab.com.cn\cn\".com.cn\cn\cn\".com.cn\cn\cn_path=/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/inc -.com.cn-cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\".com.cn_path=/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/roles /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/simple_profile -.com.cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\cn\.com.cn\cn\.com.cn\.com.cn\.com.cn\.com.cn/sime.cn\cn\cn\cn\cn\.com.cn\.com.cn\.com.cn\.com.cn\.com.cn\.com.cn\cn\cn /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/controller/cc26xx/inc include_path="C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/hal/src/target/_common "-include_path="C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/target "-include_path="C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/hal/src/target/_common/cc26xx /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/services/src/sdata /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti /ti/ccs901/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS/include "-include_path="C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/hal/src/inc "-include_path="C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/services/src/saddr /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/rom "-include_path="CC13x_define -cn_bulation=c_sbe_display_define -ctrades=/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/osal/src/inc -cuse_display_define -cuse_bandes=ctrads=/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/icall/src/inc /ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/boards/CC1350_LAUNCHXL -cuse_define -cuse_cuse_display_event=cr -cuse_define -cr -cuse_display_event=cuse_display_events=cr -cuse_define -cn_somine_define -cn_somine_cr -cuse_cr -cn_somine_cr -cr -cr -cuse_display_event=cr -cn_somine_define -cn_somine_cr -cr -cn_somine_cr -cn_somine_cr -cn_sefine_cr -cn_somine_cr -cn_somine_cr -cn_s define=xdc_runtime_Log_disable_all -g -c99 -gcc -diag_warning=225 -diag_wrap=off -display_error_number -gen_func_subsections=on --abi=eabi ""C:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/tirtos/ccs/config/app_ble.cfg "
    正在制作 package.mak (由于 package.bld)...
    正在为软件包 configPkg 生成接口(因为 package/package.xdc.inc 比 package.XDC 旧)...
    从 package/cfg/app_ble_pem3.cfg 配置 app_ble.xem3 ...
    tools/subdir_rules.mk:12:目标'Build-272016337-InProc '的配方失败
    JS:"c:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/common/cc26xx/kernel/cc1350/config/cc1350.cfg、第63行:ReferenceError:"boot"未定义。 (C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/common/cc26xx/kernel/cc1350/config/cc1350.cfg #63)
    "C:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/tirtos/ccs/config/app_ble.cfg "、第1行
    "./package/cfg/app_ble_pem3.cfg、第180行
    gmake.exe:***[package.mak:202:package/cfg/app_ble_pem3.xdl]错误1
    JS:"c:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs、第52行:错误:xdc.tools.configuro:由于先前的错误(状态= 2)、配置失败;已删除'linker.cmd'。
    gmaking[1]:***[Build-272016337-InProC]错误1.
    gmake:***[build-272016337]错误2.
    tools/subdir_rules.mk:9:目标'build-272016337'的配方失败
    gmake:目标"全部"不会由于错误而重新生成。

    ****构建完成****

     您在 cc135.cfg 中更改了哪个 m3Hwi.resetVectorAddress?


    /*将复位矢量置于闪存的开头*/
    if (类型 DIC_IMG_A!='未定义'&& DIC_IMG_A!= 0)

    m3Hwi.resetVectorAddress = 0xD0;  

    否则(类型为 DIC_IMG_B!='未定义'&& DIC_IMG_B!= 0)

    如果(DIC_IMG_B = 1)

    //默认。
    m3Hwi.resetVectorAddress = 0x8000;  

    其他

    //用户指定。
    m3Hwi.resetVectorAddress = DIC_IMG_B;


    否则(类型 OAD_IMG_E!='未定义'&& OAD_IMG_E = 1)

    m3Hwi.resetVectorAddress = 0x1010;

    其他

    m3Hwi.resetVectorAddress = 0x00

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

    正如您可能从粘贴的内容中看到的那样、您还获得了 Boot Not Defined。 解决方案仍然如上所述。 我更改了最后一个、就像您所做的那样。

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

    哦、是的、这解决了我的问题。 非常感谢!