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.

DSP28335的FLASH无法擦除和编程

Other Parts Discussed in Thread: UNIFLASH

28335在准备仿真,擦除和烧录的时候提示如下问题,请教一下应该怎么解决

ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx: File Loader: Verification failed: Values at address 0x33FFF6@Program do not match Please verify target memory and memory map.
C28xx: GEL: File: E:\ZKY\demo_for_105\Debug\demo_for_105.out: a data verification error occurred, file load failed.

  • 请您看一下我之前的回复,是和您基本相同的问题

    e2echina.ti.com/.../587581
  • 但是我CSM_PWL区并没有填写数据,显示的全是是unused
  • 我在使用UNIflash擦除FLASHA的时候,提示是这个Error executing current operation. Please check the console for additional error information.
  • 请您使用uniflash来试一下是否可以成功识别板子烧写程序。
    另外请您使用uniflash从密码位置读取数据。0x33 FFF8-0x33 FFFF这些位置为多少?
  • 能给出uniflash的全部错误截图吗?
  • 这是使用Uniflash给DSP烧写程序的错误
    [2020/10/21 上午11:18:51] [ERROR] C28xx: Trouble Halting Target CPU: (Error -1138 @ 0x6) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)
    [2020/10/21 上午11:18:51] [ERROR] C28xx: Error: (Error -1141 @ 0x0) Device is not responding to the request. 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 9.2.0.00002)
    [2020/10/21 上午11:18:52] [ERROR] C28xx: Unable to determine target status after 20 attempts
    [2020/10/21 上午11:18:52] [ERROR] C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
    [2020/10/21 上午11:18:52] [ERROR] C28xx: GEL: Error while executing OnTargetConnect(): Could not read register ST1: target is not connected at (ST1&~(0x0100)) [f28335.gel:322] at C28x_Mode() [f28335.gel:82] at OnTargetConnect()

    下面是读取memory的错误
    [2020/10/21 上午11:20:11] [ERROR] C28xx: Trouble Halting Target CPU: (Error -1138 @ 0x6) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)
    [2020/10/21 上午11:20:11] [ERROR] C28xx: Error: (Error -1141 @ 0x0) Device is not responding to the request. 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 9.2.0.00002)
    [2020/10/21 上午11:20:12] [ERROR] C28xx: Unable to determine target status after 20 attempts
    [2020/10/21 上午11:20:12] [ERROR] C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
    [2020/10/21 上午11:20:12] [ERROR] C28xx: GEL: Error while executing OnTargetConnect(): Could not read register ST1: target is not connected at (ST1&~(0x0100)) [f28335.gel:322] at C28x_Mode() [f28335.gel:82] at OnTargetConnect()

    这是ERASE FLASHA的错误
    [2020/10/21 上午11:20:48] [ERROR] C28xx: Trouble Halting Target CPU: (Error -1138 @ 0x6) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)
    [2020/10/21 上午11:20:48] [ERROR] C28xx: Error: (Error -1141 @ 0x0) Device is not responding to the request. 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 9.2.0.00002)
    [2020/10/21 上午11:20:49] [ERROR] C28xx: Unable to determine target status after 20 attempts
    [2020/10/21 上午11:20:49] [ERROR] C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
    [2020/10/21 上午11:20:49] [ERROR] C28xx: GEL: Error while executing OnTargetConnect(): Could not read register ST1: target is not connected at (ST1&~(0x0100)) [f28335.gel:322] at C28x_Mode() [f28335.gel:82] at OnTargetConnect()

    这个是unlock的错误
    [2020/10/21 上午11:21:18] [ERROR] C28xx: Trouble Halting Target CPU: (Error -1138 @ 0x6) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)
    [2020/10/21 上午11:21:18] [ERROR] C28xx: Error: (Error -1141 @ 0x0) Device is not responding to the request. 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 9.2.0.00002)
    [2020/10/21 上午11:21:19] [ERROR] C28xx: Unable to determine target status after 20 attempts
    [2020/10/21 上午11:21:19] [ERROR] C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
    [2020/10/21 上午11:21:19] [ERROR] C28xx: GEL: Error while executing OnTargetConnect(): Could not read register ST1: target is not connected at (ST1&~(0x0100)) [f28335.gel:322] at C28x_Mode() [f28335.gel:82] at OnTargetConnect()
  • 不好意思,这回读取出来了,0x33 FFF8-0x33 FFFF这些位置的数据都是0,log提示如下C28xx: GEL Output: ADC Calibration not complete, check if device is unlocked and recalibrate.

    unlock的时候提示如下
    [2020/10/21 上午11:28:02] [INFO] C28xx: Starting device unlocking...
    [2020/10/21 上午11:28:02] [INFO] C28xx: Device unlocked. To clear the programmed password, please erase Sector A of Flash memory.

    以下是擦除FLASHA的错误log
    [2020/10/21 上午11:28:27] [ERROR] C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelled

    l烧写的时候提示如下
    [2020/10/21 上午11:29:13] [ERROR] C28xx: File Loader: Verification failed: Values at address 0x00000@Program do not match Please verify target memory and memory map.
  • 参考之前帖子的回复:

    若是为0x0,则很有可能设备已锁定。如果您尚未对密码位置进行编程,则可能是由于.out中的某些错误或由于闪存操作期间的中断而发生的。要找出.out文件中的问题,请检查您的映射文件,以查看闪存中的密码位置是否映射了任何内容。如果在密码位置找到了其他值,则您应该能够使用该值来解锁设备。否则,设备将无法恢复,需要更换。
  • 您好,我现在在工程里面加载了一个gel文件,然后解决了这些问题,请问gel文件的作用是什么呢。我之前的工程文件都没有加载过gel文件