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.

[参考译文] CODECOMPOSER:在 Docker 中运行的 CCSTUDIO 20.1.1

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1501049/codecomposer-ccstudio-20-1-1-running-in-docker

部件号:CODECOMPOSER
Thread 中讨论的其他器件:CCSTUDIOCC1310

工具/软件:

您好、

运行 CCStudio 12.8.1时是否可以正常运行但不能运行20.1.1的相关问题是否有更新?

我们依靠运行 Docker 容器内的工具、并希望更新我们的工具链。 请创建一个可跟踪的错误并提供更新。

此致、Peter

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

    很遗憾、没有太多更新可供提供。 请注意、在 Docker 环境中运行 CCS 不是官方支持的环境。 这不是我们正式测试的环境。 也就是说,我们确实承认,它正变得越来越受欢迎,并且我们希望它能够发挥作用。  

    此 TT 的跟踪链接: https://sir.ext.ti.com/jira/browse/EXT_EP-12389

    谢谢

    Ki

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

    您好、

    只是一个简短的更新。 使用 Virt-Manager 时 CCS 20.1.1工作正常、但使用 LXD 或 INCUS VM 时则无法正常工作。 重要的是,我们可以使用脚本完成安装/配置,因此请优先考虑。

    贝萨特对彼得

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

    感谢您提供更多详细信息。 我已将它们添加到 TT 的内部备注中。

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

    您好、

    我设法使 CCS 20.1.1 在 Debian Bookworm 中使用 incus 虚拟机,因此它在某种程度上与 Ubuntu 有关。 我在下面粘贴了一个脚本、希望它也能与 LXD 配合使用。 请勿说 CCS install_drivers.sh 需要运行、并且必须断开/连接 USB 才能激活驱动程序。

    此致彼得

    #!/bin/bash
    
    VM_NAME="my-vm"
    IMAGE="images:debian/bookworm"
    
    # Launch VM
    incus launch "$IMAGE" "$VM_NAME" --vm -c limits.cpu=4 -c limits.memory=8GiB --device root,size=20GiB
    
    # Wait a few seconds for the VM to boot
    sleep 15
    
    # Add ubuntu user
    incus exec "$VM_NAME" -- bash -c "adduser ubuntu --disabled-password <<< ''"
    incus exec "$VM_NAME" -- bash -c "yes dummy | passwd ubuntu"
    incus exec "$VM_NAME" -- bash -c "usermod -aG sudo ubuntu"
    
    # Update package lists and install packages inside the
    incus exec "$VM_NAME" -- bash -c "apt update && apt install -y git libc6-i386 passwd wget build-essential python3-dev python-is-python3 python3-minimal python3-pip python3-pip-whl python3-setuptools-whl python3-venv wget unzip  libtinfo5 libusb-0.1-4 libusb-1.0-0-dev libgconf-2-4 libasound2 libatk1.0-0 libcairo2 libgtk-3-0 libxi6 libxtst6 libcanberra-gtk-module binutils libc6-i386 libnss3 libdrm2 libgbm1 libsecret-1-0 libsecret-1-dev libglib2.0-dev"
    
    incus exec "$VM_NAME" -- bash -c "apt update && apt install -y spice-vdagent gnome-core gdm3 task-gnome-desktop --no-install-recommends && reboot"
    
    # Wait a few seconds for the VM to boot
    sleep 10
    
    # Download and install CCS
    incus exec "$VM_NAME" -- bash -c "/bin/su -c 'wget dr-download.ti.com/.../CCS_20.1.1.00008_linux.zip' - ubuntu"
    
    incus exec "$VM_NAME" -- bash -c "/bin/su -c 'unzip CCS_20.1.1.00008_linux.zip' - ubuntu"
    
    incus exec "$VM_NAME" -- bash -c "/bin/su -c './CCS_20.1.1.00008_linux/ccs_setup_20.1.1.00008.run --unattendedmodeui none --mode unattended --enable-components PF_WCONN,PF_MSP430' - ubuntu"
    
    # Cleanup
    incus exec "$VM_NAME" -- bash -c "/bin/su -c 'rm CCS_20.1.1.00008_linux.zip' - ubuntu"
    incus exec "$VM_NAME" -- bash -c "/bin/su -c 'rm ./CCS_20.1.1.00008_linux -r' - ubuntu"
    
    # Manually 
    # Run CCS install_drivers.sh and detach/attach launchpad

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

    您好、Peter:  

    当您说20.1.1不起作用时、问题到底在哪里? 我问的原因是因为我尝试在 Docker 中安装相同的版本、通过命令导入和构建工作正常。 但我确实遇到了随机时间的故障,但安装不同的卷大多解决了这个问题。 现在、我必须使用 Azure 虚拟机、并且基本命令也可以正常使用(导入和构建)、 但 我想了解我在继续操作时可能面临的潜在挑战。

    谢谢。此致、

    Sudesshna

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

    尊敬的 Sudesshna:

    该问题是通过 USB 连接到 Launchpad (如 CC1310)并使用调试器。 尝试使用 CCS 20.1.1进行连接会导致 COM 端口错误、但其他一切都正常。

    此致、Peter