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.

[参考译文] LPSTK-CC1352R:生成错误:已定义多个 DeviceFamily!

Guru**** 2556030 points
Other Parts Discussed in Thread: SYSCONFIG, LPSTK-CC1352R

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1000825/lpstk-cc1352r-build-error-more-then-one-devicefamily-has-been-defined

器件型号:LPSTK-CC1352R
Thread 中讨论的其他器件:CC2650SysConfig

您好 Clement、

我按照您的介绍将 lpstk-cc1352R1配置为从器件。 我使用 SDK 4_40_04_04以及 SDK 5_10_00_48进行了试用。

如果我使用 CCS 编译 RTLS_SLAVE_CC1352R1_LAUNCHSL_tirtos_ccs、则会遇到一些错误->请参阅编译日志和问题

e2e.ti.com/.../8836.Build_5F00_log.txt

在 projectspec 文件中是否有任何必须修改为 CC13x2的"旧"CC26x2示例的引用?

<?xml version="1.0" encoding="UTF-8"?>
<projectSpec>
    <applicability>
        <when>
            <context
                deviceFamily="ARM"
                deviceId="Cortex M.CC2642R1F"
            />
        </when>
    </applicability>

    <project
        title="rtls_slave app"
        name="rtls_slave_CC1352R1_LAUNCHXL_tirtos_ccs"
        configurations="Release, Debug"
        toolChain="TI"
        connection="TIXDS110_Connection.xml"
        device="Cortex M.CC2642R1F"
        ignoreDefaultDeviceSettings="true"
        ignoreDefaultCCSSettings="true"
        products="com.ti.SIMPLELINK_CC13X2_26X2_SDK;sysconfig"
        compilerBuildOptions="
            -I${PROJECT_ROOT}
            -I${PROJECT_ROOT}/${ConfigName}
            --cmd_file=${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/examples/rtos/CC1352R1_LAUNCHXL/ble5stack/rtls_slave/Tools/Defines/rtls_slave_app.opt
            --cmd_file=${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/config/build_components.opt
            --cmd_file=${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/config/factory_config.opt
            --cmd_file=${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/examples/rtos/CC1352R1_LAUNCHXL/ble5stack/rtls_slave/build_config.opt
            -I${PROJECT_LOC}/Application
            -I${PROJECT_LOC}/RTLSCtrl
            -I${PROJECT_LOC}/Drivers/AOA
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/npi/src/unified/inc
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/npi/src/unified
            -DFLASH_ROM_BUILD
            --silicon_version=7M4
            -O4
            --opt_for_speed=0
            --code_state=16
            --abi=eabi
            -me
            -g
            --c99
            --gcc
            --gen_func_subsections=on
            --display_error_number
            --diag_wrap=off
            -DDeviceFamily_CC13X2
            -DNVOCMP_NWSAMEITEM=1
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/kernel/tirtos/packages
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/controller/cc26xx/inc
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/inc
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/rom
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/common/cc26xx
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/inc
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/hal/src/target/_common
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/hal/src/target/_common/cc26xx
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/hal/src/inc
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/heapmgr
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/profiles/dev_info
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/profiles/simple_profile
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/src/inc
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/osal/src/inc
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/services/src/saddr
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/services/src/sdata
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/common/nv
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/common/cc26xx
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/devices/cc13x2_cc26x2
            -I${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/posix/ccs
            --little_endian
            --diag_warning=255
            --float_support=FPv4SPD16
            --symdebug:dwarf
            -I${CG_TOOL_ROOT}/include
        "
        linkerBuildOptions="
            -x
            --define=FLASH_ROM_BUILD=2
            -l${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/libraries/cc13x2r1/OneLib.a
            -l${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/libraries/cc13x2r1/StackWrapper.a
            -l${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/libraries/cc13x2r1/ble_r2.symbols
            --diag_suppress=16002-D
            --diag_suppress=10247-D
            --diag_suppress=10325-D
            --diag_suppress=10229-D
            --diag_suppress=16032-D
            -i${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source
            -l${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/display/lib/ccs/m4f/display.a
            -l${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/grlib/lib/ccs/m4f/grlib.a
            -l${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/drivers/rf/lib/rf_multiMode_cc13x2.aem4f
            -l${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/devices/cc13x2_cc26x2/driverlib/bin/ccs/driverlib.lib
            -l${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/drivers/lib/ccs/m4f/drivers_cc13x2.a
            -i${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/kernel/tirtos/packages
            -lti/dpl/lib/ccs/m4f/dpl_cc13x2.a
            -i${PROJECT_BUILD_DIR}/syscfg
            -lti/devices/cc13x2_cc26x2/driverlib/bin/ccs/driverlib.lib
            --warn_sections
            --display_error_number
            --diag_wrap=off
            --rom_model
            -i${CG_TOOL_ROOT}/lib
            -llibc.a
        "
        postBuildStep="
            ${CG_TOOL_HEX} -order MS --memwidth=8 --romwidth=8 --intel -o ${ProjName}.hex ${ProjName}.out
        "
        enableSysConfigTool="true"
        sysConfigBuildOptions="
            --product ${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/.metadata/product.json
            --compiler ccs
        "
        description="rtls_slave demo application">
        <property name="type" value="rtsc"/>
        <property name="xdcToolsVersion" value="3_62_00_08_core"/>
        <property name="target" value="ti.targets.arm.elf.M4F"/>
        <property name="platform" value="ti.platforms.simplelink:CC2642R1F"/>

        <property name="buildProfile" value="release"/>
        <property name="isHybrid" value="true"/>
        <property name="configuroOptions" value=" --compileOptions "${COMPILER_FLAGS} ""/>
        <file path="../../build_config.opt" openOnCreation="false" excludeFromBuild="false" action="copy">
        </file>
        <file path="../../Application/rtls_slave.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Application">
        </file>
        <file path="../../Application/rtls_slave.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Application">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/common/cc26xx/util.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Application">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/common/cc26xx/util.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Application">
        </file>
        <file path="../../Drivers/AOA/AOA.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Drivers/AOA">
        </file>
        <file path="../../Drivers/AOA/AOA.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Drivers/AOA">
        </file>
        <file path="../../Drivers/AOA/ant_array1_config_boostxl_rev1v1.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Drivers/AOA">
        </file>
        <file path="../../Drivers/AOA/ant_array1_config_boostxl_rev1v1.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Drivers/AOA">
        </file>
        <file path="../../Drivers/AOA/ant_array2_config_boostxl_rev1v1.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Drivers/AOA">
        </file>
        <file path="../../Drivers/AOA/ant_array2_config_boostxl_rev1v1.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Drivers/AOA">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/common/nv/crc.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Drivers/NV">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/common/nv/crc.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Drivers/NV">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/common/nv/nvocmp.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Drivers/NV">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/common/nv/nvocmp.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Drivers/NV">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/src/icall.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCall">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/src/inc/icall.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCall">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/inc/icall_addrs.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCall">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/src/icall_cc2650.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCall">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/src/icall_platform.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCall">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/src/icall_user_config.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCall">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/app/ble_user_config.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCallBLE">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/inc/ble_user_config.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCallBLE">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/stack/ble_user_config_stack.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCallBLE">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/app/icall_api_lite.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCallBLE">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/icall/inc/icall_ble_apimsg.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="iCallBLE">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/inc/gap.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Include">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/inc/gapbondmgr.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Include">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/inc/gapgattserver.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Include">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/inc/gatt.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Include">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/inc/hci.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Include">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/common/nv/nvintf.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Include">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/osal/src/inc/osal_snv.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Include">
        </file>
        <file path="../../RTLSCtrl/rtls_ble.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_ctrl.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_ctrl.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_ctrl_aoa.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_ctrl_aoa.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_ctrl_api.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_host.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_host_npi.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_aoa_api.h" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../RTLSCtrl/rtls_aoa.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="RTLSCtrl">
        </file>
        <file path="../../Tools/Defines/rtls_slave_app.opt" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Tools/Defines">
        </file>
        <file path="../../Tools/ble_debug.xscfg" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Tools">
        </file>
        <file path="../../Tools/ble_release.xscfg" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Tools">
        </file>
        <file path="../../Tools/rtls_slave_app.cfg" openOnCreation="false" excludeFromBuild="false" action="copy">
        </file>
        <file path="../../Startup/osal_icall_ble.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Startup">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/ble5stack/rom/agama_r1/rom_init.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Startup">
        </file>
        <file path="../../rtls_slave.syscfg" openOnCreation="false" excludeFromBuild="false" action="copy">
        </file>
        <file path="../../Startup/main.c" openOnCreation="false" excludeFromBuild="false" action="copy" targetDirectory="Startup">
        </file>
        <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/boards/CC1352R1_LAUNCHXL/Board.html" openOnCreation="false" excludeFromBuild="false" action="link">
        </file>
        <file path="../../tirtos/ccs/cc13x2_cc26x2_app.cmd" openOnCreation="false" excludeFromBuild="false" action="copy">
        </file>
        <file path="../../tirtos/makefile.defs" openOnCreation="false" excludeFromBuild="false" action="copy">
        </file>
    </project>
</projectSpec>

谢谢、

Sebastian

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

    你(们)好、Sebast

    此案例已分配给 Clement、但请注意、他不在办公室、不会在18岁之前返回。

    BR

    Siri

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

    您好!

    该错误似乎是由"已定义多个 DeviceFamily!"引起的! (请参阅提供的日志)。

    在我看来、您已经定义了符号"DeviceFamily_CC26X2"。 在 CCS 中、右键点击工程> Properties > Build > Predefined Symbols。 然后、删除符号"DeviceFamily_CC26X2"。

    如果这不能解决问题、请尝试找到定义了额外"DeviceFamily"的位置-您可以使用 CCS 的搜索功能来提供帮助。

    此致、

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

    您好!

    正如您提到的、我检查了项目设置和整个项目文件以了解更多"DeviceFamily"定义。  我只在 RTLS_SLAVE_APP.OPT 文件中找到了一个条目、但该条目已设置为"-DDeviceFamily_CC13X2"。 我已经尝试删除文件中的所有"CC26x"条目、但错误"More than one DeviceFamily has been defined"(已定义多个 DeviceFamily!) 仍然会发生。

    您是否有进一步的想法来解决该问题?

    此致、
    Sebastian

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

    您好、Sebastian、

    您是否使用 SysConfig 将项目从 CC26X2R1_LAUNCHXL 移植到 CC1352R1_LAUNCHXL?

    您能否验证文件 ti_drivers_config.h 的内容 您应该在第20行附近找到以下代码:

    #define CONFIG_CC1352R1_LAUNCHXL
    #ifndef DeviceFamily_CC13X2
    #define DeviceFamily_CC13X2
    #endif
    

    此致、

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

    您好 Clement、

    我严格按照您 的介绍 操作、将 RTLS_SLAVE 项目(整个文件夹)从 CC26X2R1_LAUNCHXL\...\RTLS_SLAVE 复制粘贴到 CC1352R1_LAUNCHXL\...\RTLS_SLAVE、调整.projectspec 文件以及 SysConfig。
    在 SysConfig 中、我选择 LPSTK-CC1352R 传感器。


    使用此设置、ti_drivers_config.h 中的相应条目为:

    #define CONFIG_LPSTK_CC1352R
    #ifndef DeviceFamily_CC13X2
    #define DeviceFamily_CC13X2
    #endif

    将 SysConfig 中的器件更改为 CC1352R1 Launchpad

    然后、ti_drivers_config.h 中的条目等于您的建议:

    #define CONFIG_CC1352R1_LAUNCHXL
    #ifndef DeviceFamily_CC13X2
    #define DeviceFamily_CC13X2
    #endif

    在 SysConfig 中使用 CC1352R1 Launchpad 设置时、也会发生错误。

    此致、

    Sebastian

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

    您好、Sebastian、

    我认为我发现了这个问题。

    错误的"DeviceFamily_xxx"位于 SDK 的.opt 文件中。

    请尝试以下步骤:

    1-打开文件  \examples\rtos\CC1352R1_LAUNCHXL_ble5stack\RTLS_SLAVE \Tools\defins\RTLS_SLAVE_APP.op

    2-将"-DDeviceFamily_CC26X2"替换为"-DDeviceFamily_CC13X2"

    3-保存并关闭文件

    4-清理并重建项目(必须在 CCS 中完成)

    如果不起作用、您能否先应用建议的修改、然后重新导入项目?

    请告诉我它是否有帮助、

    此致、

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

    您好 Clement、

    感谢你的帮助。 现在它可以正常工作。

    供您参考:
    我尝试调整已导入(CCS)项目中的.opt 文件->它不会毫无错误地编译("多个...")。
    首先修改.opt 文件、然后将工程重新导入 CCS、即可正常工作。

    此致、
    Sebastian

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

    您好、Sebastian、

    感谢您的耐心等待。

    我将把您提供的详细信息添加到指南中。

    此致、