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.

[参考译文] MSP432E401Y:打开 SysConfig 时 CCS 20.2 例外

Guru**** 2507255 points
Other Parts Discussed in Thread: SYSCONFIG, MSP432E401Y

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1543724/msp432e401y-ccs-20-2-exceptions-when-opening-sysconfig

器件型号:MSP432E401Y
主题中讨论的其他器件:SysConfig

工具/软件:

尝试从 CCS 12.5 升级到最新的 CCS 20.2。  SysConfig 将无法正常工作。  它无法加载现有的.syscfg 文件、从而导致 javascript 错误:

Unable to render selection
TypeError: 'set' on proxy: trap returned falsish for property 'readOnly':
while setting 'resourceName' to 'Timer0':
while processing moduleInstances() of /ti/drivers/RTOS$static:
while processing modules() of /ti/ndk/General$static:
while processing modules() of /ti/net/SlNet

我尝试创建一个新的系统配置、并收到类似的错误。  无法正确呈现 SlNet 服务、我可以添加 TI 驱动程序、但无法添加网络相关服务。

我卸载并再次尝试、甚至安装并运行独立版本的 SysConfig 1.24.0、但遇到了相同的错误。

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

    现在我想知道 CCS 20.2 是否支持此处理器。  我尝试创建一个新项目、但找不到处理器。  我甚至尝试了在线编译器,它似乎不受支持。  这是 CCS 的最新版本、在产品页面上将其作为 MSP432E401Y 的开发工具引用。  有人能否请确认该版本是否支持 MSP432E401Y?

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

    Robert、

    我遇到了同样的问题。

    最新的 SysConfig 不支持 MSP432E401Y。  CCSv20.2.0 随附的版本太新、SDK 没有指定要使用的确切版本、因此 CCS 只使用最新版本。   

    SysConfig 1.25 将捕获此信息、然后告诉您要使用的版本。   

    现在、您可以切换到旧版本的 SysConfig。  我相信 SDK 是随 Sys Config 1.5.0 一起发布的、但您应该能够在 1.21.2 之前使用

    此致、

    John

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

    我注意到有两个版本的 SysConfig。  如何禁用 1.24 并启用 1.5.0?  或者如何安装 1.21.2?  编译器呢?  当我尝试导入示例工程时、收到一条消息、指出没有支持安装此处理器的编译器。  CCS20.2 是否应该为 MSP432E401Y 安装合适的编译器?

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

    CCS 并不是每个编译器都随附。

    每个工程可以指定其依赖项 (SDK、编译器、SysConfig)...  MSP432E 示例项目为编译器(这就是您在导入时看到消息的原因)执行此操作、但不为 SysConfig 执行此操作。

    在 CCSv20 中、该信息位于依赖项下。  在 CCSv12 和之前的版本中、我认为它是产品和工具(分为 2 个部分)。

    您可以从 TI.com 下载特定的 SysConfig 和编译器版本、也可以从 CCS 中下载。

    TI.com SysConfig 页面: https://www.ti.com/tool/download/SYSCONFIG

    TI.com 旧版 armcl 编译器: https://www.ti.com/tool/download/ARM-CGT

    您安装在 C:\ti 中、CCS 应该会自动找到它们。  如果您安装在自定义文件夹中、则可以转至 Settings(设置)并告诉 CCS 查找位置(使用适用于 SysConfig 的产品)。

    若要在 CCS 中执行此操作、请依次转到“View"->"Resource Explorer"“ Explorer"</s>“ “

    打开后、转至右上角并点击 3 条水平线(汉堡菜单)、然后选择软件包管理器

    向下滚动到 SysConfig(将列出您已安装的版本)

    向右滚动并单击箭头以安装更多版本:

    对于编译器、可以执行相同的操作。  它被称为 Arm 代码生成工具 — 编译器,适用于 MSP432E 使用的较旧版本

    此致、

    John

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

    感谢你的帮助。  我走得越来越近、但仍然无法构建任何工程。  SysConfig 问题似乎已解决。   

    编译器仍然出现问题。  我无法构建 tirtos 文件、然后由于缺少这些文件、我的应用无法构建。

    这是 tirtos 编译错误:

    [0]**** Build of configuration Debug for project tirtos_builds_MSP_EXP432E401Y_release_ccs ****
    [1]"C:\\ti\\ccs2020\\ccs\\utils\\bin\\gmake" -k -j 16 all -O 
     
    [2]making ../src/sysbios/sysbios.aem4f ...
    [3]gmake[1]: *** No rule to make target 'xdc/runtime/xdc_noinit.c', needed by 'BIOS.obj'.
    [4]gmake[1]: *** No rule to make target 'xdc/runtime/Assert.c', needed by 'BIOS.obj'.
    [5]gmake[1]: *** No rule to make target 'xdc/runtime/Core-mem.c', needed by 'BIOS.obj'.
    [6]gmake[1]: *** No rule to make target 'xdc/runtime/Core-smem.c', needed by 'BIOS.obj'.
    [7]gmake[1]: *** No rule to make target 'xdc/runtime/Core-label.c', needed by 'BIOS.obj'.
    [8]gmake[1]: *** No rule to make target 'xdc/runtime/Core-params.c', needed by 'BIOS.obj'.
    [9]gmake[1]: *** No rule to make target 'xdc/runtime/Diags.c', needed by 'BIOS.obj'.
    [10]gmake[1]: *** No rule to make target 'xdc/runtime/Error.c', needed by 'BIOS.obj'.
    [11]gmake[1]: *** No rule to make target 'xdc/runtime/Gate.c', needed by 'BIOS.obj'.
    [12]gmake[1]: *** No rule to make target 'xdc/runtime/Log.c', needed by 'BIOS.obj'.
    [13]gmake[1]: *** No rule to make target 'xdc/runtime/Memory.c', needed by 'BIOS.obj'.
    [14]gmake[1]: *** No rule to make target 'xdc/runtime/Registry.c', needed by 'BIOS.obj'.
    [15]gmake[1]: *** No rule to make target 'xdc/runtime/Startup.c', needed by 'BIOS.obj'.
    [16]gmake[1]: *** No rule to make target 'xdc/runtime/System.c', needed by 'BIOS.obj'.
    [17]gmake[1]: *** No rule to make target 'xdc/runtime/SysCallback.c', needed by 'BIOS.obj'.
    [18]gmake[1]: *** No rule to make target 'xdc/runtime/Text.c', needed by 'BIOS.obj'.
    [19]gmake[1]: Target 'all' not remade because of errors.
    [20]gmake: *** [../src/makefile.libs:57: ../src/sysbios/sysbios.aem4f] Error 2
    [21]gmake: Target 'all' not remade because of errors.
    [22]**** Build Finished ****

    然后,我的应用程序中的每个文件都会失败,如下所示:

    [148]Building file: "../ut_modbus_usb_slave.c"
    [149]Invoking: Arm Compiler
    [150]"C:/ti/ccs2020/ccs/tools/compiler/ti-cgt-armllvm_4.0.3.LTS/bin/tiarmclang.exe" -c -mfloat-abi=soft -mlittle-endian -O0 -I"C:/senix/code/cc/sensor_connector/Debug Gateway/syscfg" -gdwarf-3 -Werror=ti-pragmas -Werror=ti-macros -Werror=ti-intrinsics -fno-short-wchar -fcommon -MMD -MP -MF"ut_modbus_usb_slave.d_raw" -MT"ut_modbus_usb_slave.o" -I"C:/senix/code/cc/sensor_connector/Debug Gateway/syscfg" -std=gnu90 @"C:/senix/code/cc/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/compiler.opt"  -o"ut_modbus_usb_slave.o" "../ut_modbus_usb_slave.c"
    [151]Building file: "../ut_time.c"
    [152]Invoking: Arm Compiler
    [153]"C:/ti/ccs2020/ccs/tools/compiler/ti-cgt-armllvm_4.0.3.LTS/bin/tiarmclang.exe" -c -mfloat-abi=soft -mlittle-endian -O0 -I"C:/senix/code/cc/sensor_connector/Debug Gateway/syscfg" -gdwarf-3 -Werror=ti-pragmas -Werror=ti-macros -Werror=ti-intrinsics -fno-short-wchar -fcommon -MMD -MP -MF"ut_time.d_raw" -MT"ut_time.o" -I"C:/senix/code/cc/sensor_connector/Debug Gateway/syscfg" -std=gnu90 @"C:/senix/code/cc/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/compiler.opt"  -o"ut_time.o" "../ut_time.c"
    [154]tiarmclang: error: no such file or directory: '@C:/senix/code/cc/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/compiler.opt'
    [155]gmake: *** [subdir_rules.mk:11: USBCDCD.o] Error 1
    [156]tiarmclang: error: no such file or directory: '@C:/senix/code/cc/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/compiler.opt'
    [157]gmake: *** [subdir_rules.mk:10: bincloudTask.o] Error 1
    [158]tiarmclang: error: no such file or directory: '@C:/senix/code/cc/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/compiler.opt'
    [159]gmake: *** [subdir_rules.mk:11: config.o] Error 1

    我在尝试编译任何示例工程时都遇到了类似的问题。  我找不到关于这个新版本的 CCS 的太多信息、有关这个主题的所有帮助都涉及到旧版本。  是否有 有关如何在 CCS 20.2 中构建示例工程的指南?

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

    编译器的 tiarmclang 编译器、该工具不会使用该旧 SDK 进行测试。  则需要使用较旧的 Arm 编译器。  与我之前屏幕截图中的 armcl 18.12.5 编译器类似。

    对于 MSP432E、您有多种操作系统可供选择。  还有一种称为 TI-RTOS 的 TI 专有协议、该协议很旧、在编译过程中使用了名为 xdctools 的过时工具。 该工具似乎没有正常运行。  它还会生成一个编译选项文件、稍后在编译中使用该文件、说明其他 C 文件无法编译的原因。

    另一个 RTOS 选项是 FreeRTOS。  FreeRTOS 不依赖于 xdctools、但对于这个旧的 SDK、您必须单独下载 FreeRTOS、然后设置环境变量以指向其所在的位置。  适用于较新器件的 SDK 捆绑了 FreeRTOS、因此您可以开箱即用。

    也可以在没有 RTOS 的情况下运行。

    是否在旧工程中使用 TI-RTOS?  我猜是的。  我可以循环的人,可以尝试帮助解决 XDC 错误.

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

    我有许多使用 TI-RTOS 和 CCS 12 构建的应用、  我只是想让它们在新环境中运行。  我甚至无法获得正确运行的示例、因此我认为环境设置不正确。  我能够使用来自另一个工程的 RTOS 版本来修复 XDC 错误。  现在、我收到了许多与 SDK 和 RTOS 相关的文件上未解析的文件错误。  我不知道为什么这些路径不再是工程的一部分。  我添加了一些、但仍然收到错误。   

    msp.h
    C:\ti\simplelink_msp432e4_sdk_4_20_00_12\source\ti\devices\msp432e4\inc
    1
    #35: #error directive: "Failed to match a default include file"
    [Ln 53, Col 1]
    msp432.h
    C:\ti\simplelink_msp432e4_sdk_4_20_00_12\source\ti\devices\msp432e4\inc
    1
    msp432e401y.h
    C:\ti\simplelink_msp432e4_sdk_4_20_00_12\source\ti\devices\msp432e4\inc
    1
    #1965: cannot open source file "core_cm4.h"
    [Ln 196, Col 1]
    msp432e411y.h
    C:\ti\simplelink_msp432e4_sdk_4_20_00_12\source\ti\devices\msp432e4\inc
    1
    #1965: cannot open source file "core_cm4.h"
    [Ln 201, Col 1]
    httpserver.h
    C:\ti\simplelink_msp432e4_sdk_4_20_00_12\source\ti\net\http
    1
    #1965: cannot open source file "sys/socket.h"
    [Ln 71, Col 1]
    slnetsock.h
    C:\ti\simplelink_msp432e4_sdk_4_20_00_12\source\ti\net
    1
    

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

    core_cm4.h 是 CMSIS 头文件。 include 路径可能会出错。  默认情况下将有许多包含路径设置、这些设置利用由 SDK 的位置填充的变量(基于 CCS 找到该变量的位置)。

    例如、其中一个路径是:

    ${COM_TI_SIMPLELINK_MSP432E4_SDK_INSTALL_DIR}/source/third_party/CMSIS/Include

    如果您查看编译选项中的包含路径、会找到类似的路径。  更重要的是、它能解析到某个位置。  在路径的右侧、它应显示其解析结果。

    如果所有使用该变量的变量都无法解析、则 CCS 不知道 SDK 在 PC 上的安装位置。

    工程设置使用的版本应该在此处:

    这是否显示 SDK 的名称以及版本?