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.

[参考译文] TMS320F28P650DK:C28xx_CPU2:闪存编程器:擦除组3 FMSTAT (某些器件上的 STATCMD)时出错值= 65。 操作已取消(0)。

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1395851/tms320f28p650dk-c28xx_cpu2-flash-programmer-error-erasing-bank-3-fmstat-statcmd-on-some-devices-value-65-operation-cancelled-0

器件型号:TMS320F28P650DK

工具与软件:

尝试对闪存进行编程时出现以下错误、CPU1 (存储体0、1、2)和 CPU2 (存储体3、4)的闪存存储体都配置正确、实际代码和编程配置都正确、这是 LED 示例项目、未进行任何修改。

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output:
CPU2 is out of reset and configured to wait boot.
(If you connected previously, may have to resume CPU2 to reach wait boot loop.)
C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. User code execution from SR could commence after the selected CPU1/CPU2 flash banks executable are programmed.
C28xx_CPU1: Only CPU1 on-chip Flash Plugin can configure clock for CPU1, and CPU2 Flash operations. Plugin automatically configures PLL when CPU1 Flash operations are invoked. However, if users want to do only CPU2 Flash operations without doing a prior CPU1 operation in the current session, they should click on 'Configure Clock' button in CPU1's on-chip Flash Plugin before invoking CPU2 Flash operations. When this button is used, Flash Plugin will configure the clock for CPU1/CPU2 at 200MHz using INTOSC as the clock source. Plugin will leave PLL config like this and user application should configure the PLL as required by application.
C28xx_CPU1: Before doing any flash operations using the flash plugin, (a) Please select which flash banks should be mapped to which CPU (CPU1 vs CPU2) - This selection should be done in CPU1 flash plugin GUI. (b) Please select the flash banks that the user would like the flash plugin to erase (in the CPU1 flash plugin GUI and the CPU2 flash plugin GUI)
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output:
CPU2 is out of reset and configured to wait boot.
(If you connected previously, may have to resume CPU2 to reach wait boot loop.)
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output:
CPU2 is out of reset and configured to wait boot.
(If you connected previously, may have to resume CPU2 to reach wait boot loop.)
C28xx_CPU1: GSxMSEL register configured correctly
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    尊敬的 Leo:

    在加载 CPU2 LED 应用程序之前、您是否能够按下 CPU1片上闪存工具 GUI 中的"Configure Clock"按钮?

    流程如下:加载程序:

    -在片上闪存工具中设置 CPU1闪存设置

    -在片上闪存工具中设置 CPU2闪存设置

    -加载 CPU1应用程序映像

    -按片上闪存工具中的"Configure Clock"按钮

    -加载 CPU2应用程序映像

    谢谢。此致、

    Charles

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

    尊敬的 Charles:
    谢谢回复、我找不到该按钮、 我唯一找到 的内容是在"运行->运行配置->目标->闪存设置 "中、我在顶部确实看到了时钟/PLL 设置(不能更改、全部为灰色)以及显式提到"片上闪存插件 GUI"。 但是找不到!  
    BTW 我正在运行用于 macOS 的最新 CCS

    LEO
     

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

    尊敬的 Leo:

    "Configure Clock"按钮位于 CPU1片上闪存工具设置中(从 CCS 工具栏、Tools->On-Chip Flash)。  

    谢谢。此致、

    Charles

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

    尊敬的 Charles:
    我发现、 只有在断点处停止的实时调试视图中存在。 假如出现任何故障、它会立即退出调试视图、我必须完成以下操作:
    1.设置为对 CPU1上的 RAM 进行编程
    2.在 CPU1上的断点停止
    3.点击 片上闪存工具中的"配置时钟"按钮
    4.选择 CPU2
    5.停止 CPU2、因为它正在运行
    6.  使用 加载按钮旁边的小下拉菜单选择 CPU2 *。out 图像
    7.点击"加载"
    8.现在对 CPU1上的[flash]进行编程、以便对两个 CPU 进行闪存编程

    这 对于演示程序来说是过多麻烦、
    LEO