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.

[参考译文] TMS320F28388D:通过命令行导入 TI .projectspec 示例时出现问题

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1429308/tms320f28388d-issue-with-importing-ti-projectspec-example-via-command-line

器件型号:TMS320F28388D
Thread 中讨论的其他器件:CCStudioC2000WARE

工具与软件:

我尝试了使用以下命令导入 TI .projectspec 示例:

cmd ='C:\ti\ccs1270\ccs\ccs_base\script~1\..\eclipse\eclipsec.exe"-noSplash -data "C:\Aditya\ccs_Workspace"-application com.ti.CCStudio.apps.importProject -ccs.location "C:\ti\c2000\C2000Ware_5_02_ccs_fullp55x"\ccs_examples\f28vert"

执行时:
[状态、结果]=系统(cmd)

输出为:

状态:1.
结果:
SLF4J:无法加载类"org.slf4j.impl.StaticLoggerBinder"。
SLF4J:默认使用无操作(NOP)记录器实现
SLF4J: 有关更多详细信息、请参阅 www.slf4j.org/codes.html。

-------------------------------------------------------
正在从"C:/ti/c2000/C2000Ware_5_02_00_00/driverlib/f28p55x/examples/dac/CCS 导入工程...

! 错误:在位置"C:/ti/c2000/C2000Ware_5_02_00_00/driverlib/f28p55x/examples/dac/CCS 找不到有效的 Eclipse 项目!

该错误提示在指定位置找不到有效的 Eclipse 项目。 我怀疑 CCS 工程的命令行导入过程可能存在问题、尤其是关于处理.projectspec 文件的问题。


我在这里的6.2.1.1节中找到了一个文档、该文档未将.projectspec 列出为支持的格式。
6.1.创建和管理工程—Code Composer Studio Theia 1.5.0文档

查询:您能否验证命令是否正确、或者在 CCS 中通过命令行导入.projectspec 文件是否存在已知限制?

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

    尊敬的 Aditya:

    您是使用 CCS Eclipse 还是 CCS Theia 实现这一点? 如果您使用的是 CCS Eclipse、我假设您基于 CMD 线路。

    [报价用户 id="52399" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1429308/tms320f28388d-issue-with-importing-ti-projectspec-example-via-command-line "]

    cmd ='C:\ti\ccs1270\ccs\ccs_base\script~1\..\eclipse\eclipsec.exe"-noSplash -data "C:\Aditya\ccs_Workspace"-application com.ti.CCStudio.apps.importProject -ccs.location "C:\ti\c2000\C2000Ware_5_02_ccs_fullp55x"\ccs_examples\f28vert"

    [报价]

    请参阅有关如何执行此操作的常见问题解答: https://software-dl.ti.com/ccs/esd/documents/ccs_projects-command-line.html

    eclipsec -noSplash -data " "-application com.ti.ccstudio.apps.projectImport -ccs.location [ ]

    此致、

    Ryan Ma

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

    Thank you for your response.
    I am using CCS Eclipse .
    I am reaching out to request further assistance with the command used for importing a project in Code Composer Studio (CCS).

    I have tried using both `importProject` and `projectImport` as per the guidance for different CCS versions,
     but neither seems to work. Below is a detailed account of my attempts and the results:
    
    ### Command I Used:

    "C:\ti\ccs1270\ccs\ccs_base\script~1...\eclipse\eclipsec.exe"-nodsplash -data "C:\ccs_Workspace"-application com.ti.CCStudio.apps.importProject -ccs.location "C:\ccs_Project"-ccs.overwrite full"

    ### Command Mentioned on the Web Page:

    eclipsec -noSplash -data " "-application com.ti.ccstudio.apps.projectImport -ccs.location   [ ]

    ### Detailed Mapping:
    
    1. **Executable Path:**
       - **My Command:** 
         - **Path:** `"C:\ti\ccs1270\ccs\ccs_base\SCRIPT~1\..\..\eclipse\eclipsec.exe"`
         - **Details:** Full path to the `eclipsec.exe` executable.
       - **Web Page Command:**
         - **Path:** `eclipsec`
         - **Details:** Placeholder for the executable name.
    
    2. **No Splash Option:**
       - **My Command:** `-noSplash`
       - **Web Page Command:** `-noSplash`
       - **Details:** Used to suppress the splash screen during startup.
    
    3. **Workspace Directory:**
       - **My Command:** 
         - **Option:** `-data`
         - **Value:** `"C:\CCS_Workspace"`
         - **Details:** Specifies the directory for the workspace.
       - **Web Page Command:**
         - **Option:** `-data`
         - **Value:** `"<workspace_dir>"`
         - **Details:** Placeholder for the workspace directory path.
    
    4. **Application:**
       - **My Command:** 
         - **Option:** `-application`
         - **Value:** `com.ti.ccstudio.apps.importProject`
         - **Details:** Indicates the application to run, as per CCS 12 manual.
       - **Web Page Command:**
         - **Option:** `-application`
         - **Value:** `com.ti.ccstudio.apps.projectImport`  ( as per CCS 11 , But I have tried both (CCS 11 :ProjectImport and CCS 12  :导入项目) 、同一问题) 
    -**详细信息:**建议在网页上申请 CCS 11。

    5. **Project Location:**
       - **My Command:** 
         - **Option:** `-ccs.location`
         - **Value:** `"C:\CCS_Project"`
         - **Details:** Path to the project to be imported.
       - **Web Page Command:**
         - **Option:** `-ccs.location`
         - **Value:** `<path>`
         - **Details:** Placeholder for the project location path.
    
    6. **Options:**
       - **My Command:** 
         - **Option:** `-ccs.overwrite`
         - **Value:** `full`
         - **Details:** Specifies an option to overwrite existing project settings.
       - **Web Page Command:**
         - **Option:** `[<options>]`
         - **Details:** Placeholder for additional options.
    
    ### Results:
    When executing the command, I receive the following error message:

    正在从"C:/ccs_Project"...导入项目

    ! 错误:在位置"C:/CCS_Project"找不到有效的 Eclipse 项目!



    尝试 .projectspec 通过命令行导入文件时遇到问题。 有趣的是、相同的命令可以无缝地用于较旧的 CCS 工程格式、即 .cproject。 您能否验证是否能够 .projectspec 使用终端命令行以您的格式成功导入 CCS 项目?

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

    尊敬的 Aditya:

    请确保指向正确的工作区和 projectspec 文件。 apps.importProject -ccs.location 后面的"C:\ccs_Project"似乎指向错误的位置。  

    [报价 userid="52399" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1429308/tms320f28388d-issue-with-importing-ti-projectspec-example-via-command-line/5484079 #5484079"]"C:\ti\ccs1270\ccs\ccs_base\script~1...\eclipse\eclipsec.exe"-nooverwrite -data "C:\ccs_Workspace"-application com.ti.CCStudio.apps.importProject -ccs.location "C:\ccs_Project"-ccs.plash
    [报价]

    示例命令:

    C:\ti\ccs1270\ccs\eclipse> eclipsec.exe -noSplash -data ..\..\..\Users\a0503118\workspace_2024\-application com.ti.ccstudio.apps.projectImport -ccs.location ..\..\c2000\C2000Ware_5_03_00_00\driverlib\f280013x\examples\empty_projects\ccs\empty_driverlib_project.projectspec

    此致!

    Ryan Ma

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

    您好、Ryan、  

    在上述问题中:指定".projectspice"会有所帮助  

    现在我正在尝试通过命令行将 CCS_Workspace 添加到 CCS_THEIA  

    您是否要查看此主题?
    TMS320F28388D:未通过命令行- C2000微控制器论坛- C2000 ︎ 微控制器- TI E2E 支持论坛在 CCS_THEIA 中添加 CCS_Workspace


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

    尊敬的 Aditya:

    如果先前的回答帮助了原创问题、您可以将此主题设置为已解决吗?

    然后、您可以针对要尝试解决的新问题打开新主题。

    此致!

    Ryan Ma