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.

[参考译文] CC2511:验证已写入闪存始终失败

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

https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/1437549/cc2511-verifying-written-flash-always-fails

器件型号:CC2511
Thread 中讨论的其他器件:CC2510

工具与软件:

我正在尝试通过 STM32将 usb_bootloader_srf05dbg.hex 文件写入 CC2511F32。  我找到了 CC2510的示例代码 swra410示例代码 、我愚蠢地认为这只是将其移植到 STM32。  到目前为止、我有以下步骤可供使用:

  1. Debug_Init
  2. 读取 chip_id (ID:0x91、版本:0x04)
  3. Clock_Init

一切都偏离了这里:

  1. 写入4个字节
  2. 读取/验证4个字节

到第3步、所有"看起来"都没有问题。 当我尝试执行写入例程时、一切看起来都正常、但是、 我无法验证数据是否确实正在写入闪存。  当调用读取方法时、读取的是4个字节、但这些字节不是应该写入闪存的内容。  当我多次调试时、读出的4个字节始终是不同的。

我附上了步骤1-3中通过调试接口发送/接收的内容的图像。  如果有任何帮助、我还添加了源文件。

如果有任何见解,我会非常感激,我只是不能明白我在做什么错。

此致

   e2e.ti.com/.../Source.zip