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/CC2640:实现 CCS 上 TI OAD 映像工具(Python)的自动化

Guru**** 2585275 points
Other Parts Discussed in Thread: CC2640

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/595330/ccs-cc2640-automating-ti-oad-image-tool-python-on-ccs

器件型号:CC2640

工具/软件:Code Composer Studio

您好!

 在"10.2 TI OAD 映像工具(Python)"上的 CC2640 BLE OAD 用户指南中 、我想在 CCS 上添加自动化功能、使 python 脚本步进、以便它可以生成.bin 文件。

由于需要 crcmod、我在 Windows 上打开 cmd 并安装如下模块:"pip install crcmod"

但是、即使在安装模块时、CCS 也会出现以下错误:

"C:/Python27/python.exe""C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/tools/blestack/oad/oad_image_tool.py "C:/Users/michael/workspace_v7/simple_peripheral_cc2650lp_app/FlashOnly_OAD_ExtFlash/simple_peripheral_cc2650lp_app.hex "C:/Users/michael/workspace_v7/simple_peripheral_cc2650lp_app/../stack/FlashROM/simple_peripheral_cc2650lp_stack.hex -t offchip -i app -m 0x1000 -v 1 -o "C:/Users/michael/workspace_v7/simple_peripheral_cc2650lp_app/simple_peripheral_cc2650lp_merge.hex "
无法加载模块'crcmod'。 请安装软件包。 PIP [-proxy ]安装 crcmod
Makefile:224:目标'post-build'的配方失败
gmak[2]:[编译后处理]错误1 (忽略)

如何解决此问题?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我必须更改我的 Windows 系统上的环境变量:

    1-在桌面上,右键单击“My Computer (我的电脑)”,然后单击“Properties (属性)”。
    2-在“System Properties (系统属性)”窗口中,单击“Advanced (高级)”选项卡。
    3-在“Advanced (高级)”部分,单击“Environment Variables (环境变量)”按钮。
    4-突出显示“Systems Variable”(系统变量)部分中的“Path”(路径)变量,然后单击“Edit”(编辑)按钮。

    将路径更改为 c:/Python27、应该起作用
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    很高兴它能正常工作。 它可能需要管理员权限、这在这里似乎不是问题。

    祝你一切顺利