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.

[参考译文] MSP430F5510:带信息存储器的 BSL Python 升级工具

Guru**** 2603845 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/650233/msp430f5510-bsl-python-upgrade-tool-with-info-memory

器件型号:MSP430F5510

我尝试使用 Python 升级工具通过 BSL 刷写 MCU。   

如果十六进制文件包含要加载到信息存储器中的代码、则会遇到问题。  hid_1.py 将与 self.write_report (txdata)一起在第66行挂起。  它很快就会超时并抛出此错误:

文件"D:\work\Active\Semler\BT Sensor\MSP430USBDevelopersPackage_5_20_06_02\Host_USB_Software\PYTHON_Firmware_Upgradeer\python m430-tools\MSP430\bsl5\hid_1.py"、行137、位于 write_report 中
self.hid_device.send_output_report([ctypes.c_ubyte(x)、用于 x in 数据])
文件"C:\Python27amd64\lib\site-packages/pywinusb\hid\core.py"、第559行、位于 send_output_report 中
升高 HIDError ("写入超时")
HIDError:写入超时

如果我从十六进制文件中删除信息存储器代码、编程正常完成。

我知道信息存储器 A 有一个锁。 要批量擦除 MCU 并更新包括 INFOA 在内的代码、我必须做些什么特别的事情吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    默认情况下、信息存储器的段 A 通过 FCTL3寄存器的 LOCKA 位被锁定(用户指南第7.2.1节中的说明)。 您是否尝试清除此位或写入信息存储器的另一段?

    此致、
    Ryan