主题中讨论的其他器件: TI-CGT
您好!
我正在尝试编译一些传统代码并将其闪存到基于 MSP430FG4618 的相应传统硬件上、以进行进一步的开发项目。
首先、我将旧代码导入到 Code Composer Studio 10.3.1.00003中、并使用 TI-CGT 21.6.0 LTS 进行编译。 编译成功、但当我尝试刷写器件时、我遇到数据验证错误:
MSP430: File Loader: Verification failed: Values at address 0x00010 do not match Please verify target memory and memory map.
根据数据表、010h 是 P3REN 寄存器的存储器地址。
我尚未修改 CCS 生成的链接器脚本、并验证地址010h 是否已正确映射。
我还尝试选择了擦除主存储器、信息存储器和受保护的信息存储器区域的选项、但这并没有改变任何东西。
当我尝试闪存我从头开始编写的另一个(小)程序以测试器件(使一些 LED 闪烁等)时、闪存和调试工作无问题。
在刷写器件之前、我已将 具有 MSPFlasher 的器件存储器转储 到三个文件中:main.txt (main)、info.txt (info)、bootloader.txt (BSL):
C:\> MSP430Flasher -n MSP430FG4618 -r [main.txt,MAIN] C:\> MSP430Flasher -n MSP430FG4618 -r [info.txt,INFO] C:\> MSP430Flasher -n MSP430FG4618 -r [bootloader.txt,BSL]
当我尝试使用以下命令恢复旧固件时:
C:\> MSP430Flasher -n MSP430FG4618 -w main.txt -v -z [VCC=3300, RESET] C:\> MSP430Flasher -n MSP430FG4618 -w info.txt -v -z [VCC=3300, RESET] C:\> MSP430Flasher -n MSP430FG4618 -w bootloader.txt -v -z [VCC=3300, RESET]
main.txt 成功、但 info.txt 和 bootloader.txt 失败、并出现相同的错误:
* -----/|-------------------------------------------------------------------- * * / |__ * * /_ / MSP Flasher v1.3.20 * * | / * * -----|/-------------------------------------------------------------------- * * * Evaluating triggers...done * Checking for available FET debuggers: * Found USB FET @ COM14 <- Selected * Initializing interface @ COM14...done * Checking firmware compatibility: * FET firmware is up to date. * Reading FW version...done * Setting VCC to 3300 mV...done * Accessing device...done * Reading device information...done * Loading file into device... # Exit: 59 # ERROR: Could not write device memory * Starting target code execution...done * Disconnecting from device...done * * ---------------------------------------------------------------------------- * Driver : closed (No error) * ---------------------------------------------------------------------------- */
这些问题的原因是什么? 如何进一步调查?
提前感谢您。