LAUNCHXL-F28P55X: 烧录程序之后,开发板无法再进行程序烧录以及调试,编译无问题,FLASH编译后下载报错"Warning: Failed unlocking device (zone 1) after reset.",RAM编译后下载报错“File Loader: Verification failed: Values at address 0x000000@Program do not match Please verify target memory and memo

Part Number: LAUNCHXL-F28P55X
Other Parts Discussed in Thread: C2000WARE, UNIFLASH

软件环境:

CCS版本:Code Composer Studio 12.8.1;

C2000ware :C2000Ware_5_04_00_00;

UniFlash :UniFlash 9.1.0;

硬件环境:

开发套件;

C2000Tm 实时 MCU F28P55X LaunchPad 开发套件;

工程背景:

自己的工程基于".\C2000Ware_5_04_00_00\driverlib\f28p55x\examples\sci\sci_ex1_loopback"导入,成功实现官方直接存储器存取 (DMA) 实验".\C2000Ware_5_04_00_00\training\device\f28p55x\advance_topics\lab_dma\lab_dma_launchpad",此时工程下载与调试均正常。

在根据官方RFFT的例程(".\C2000Ware_5_04_00_00\driverlib\f28p55x\examples\dsp\dsp_rfft_fpu32_f28p55x")迁移完后,编译无问题,但是只要该工程下载到开发板之后,开发板就无法再下载任何程序

问题背景:

在将基于官方例程的RFFT功能迁移到自己的工程后,编译器没有报错,程序成功下载,但是下载之后开发板卡死。

之后尝试再次进行程序下载与调试,工程编译均无报错,有警告(警告为有两个变量未使用),但是再也无法将该程序成功下载到开发板。

尝试更换为官方例程led_ex1_blinky,也无法下载到开发板,具有相同报错。

尝试使用UniFlash观察寄存器值,擦除FLASH等操作,均报错无法执行。

更换开发板,在烧录该问题工程之前,新开发板都可以正常使用(包括官方例程),烧录该工程之后出现与第一块开发板同样的问题。

具体报错:

当使用RAM模式编译工程后,下载时报错如下:

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: ... DCSM Initialization Start ... C28xx_CPU1: GEL Output: ... DCSM Initialization Done ... C28xx_CPU1: File Loader: Verification failed: Values at address 0x000000@Program do not match Please verify target memory and memory map. C28xx_CPU1: GEL: File: C:\Users\asus\workspace_v12\led_ex1_blinky\CPU1_RAM\led_ex1_blinky.out: a data verification error occurred, file load failed.

当使用FLASH模式编译工程后,下载时报错如下:

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: ... DCSM Initialization Start ... C28xx_CPU1: GEL Output: ... DCSM Initialization Done ... C28xx_CPU1: GEL Output: ... DCSM Initialization Start ... C28xx_CPU1: GEL Output: ... DCSM Initialization Done ... C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset. C28xx_CPU1: Warning: Failed unlocking device (zone 2) after reset. C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc058: (Error -1066 @ 0xC058) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 20.0.0.3178) C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc10c: (Error -1066 @ 0xC10C) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 20.0.0.3178) C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint C28xx_CPU1: Error executing PLL configuration algorithm. Operation cancelled. (0x0) C28xx_CPU1: Perform a debugger reset and execute the Boot-ROM code (click on the RESUME button in CCS debug window) before erasing/loading the Flash. If that does not help to perform a successful Flash erase/load, check the Reset cause (RESC) register, NMI shadow flag (NMISHDFLG) register and the Boot-ROM status register for further debug. C28xx_CPU1: File Loader: Memory write failed: Unknown error C28xx_CPU1: GEL: File: C:\Users\asus\workspace_v12\led_ex1_blinky\CPU1_FLASH\led_ex1_blinky.out: Load failed. C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc058: (Error -1066 @ 0xC058) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 20.0.0.3178) C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint

使用UniFlash,可以识别开发板但是无法连接,具体如下 :

[2025/5/8 下午10:36:38] [ERROR] IcePick_C_0: Error connecting to the target: (Error -2131 @ 0x0) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 20.1.0.3372)

可以识别到开发板

擦除FLASH时报错如下

读取寄存器时报错相同

问题工程主函数代码

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
// Included Files
//
#include "driverlib.h"
#include "device.h"
#include "board.h"
#include "c2000ware_libraries.h"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <math.h>
#include "tjc_usart_hmi.h"
//
// Globals
//
uint16_t loopCount;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • 您好,

    已经收到了您的案例,调查需要些时间,感谢您的耐心等待。

  • 您好,

    此器件能否在 CCS 20版本中擦除/编程? 由于解锁区序列错误、我认为有可能已经从示例中编辑了 OTP。 是否以某种方式对其进行了修改以对 OTP 进行编程? 您可以同时尝试 CCS 或 Uniflash 中的解锁功能、这会为您解锁器件吗?