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.

28377d芯片下载程序出错的问题

Other Parts Discussed in Thread: UNIFLASH

做的板子上有两路28377d芯片,电路完全一样,但是其中一路下载程序正常,另一路出错。具体错误如下,求各位大佬帮我,万分感谢!

C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: Failed CPU Reset: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
C28xx_CPU1: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
C28xx_CPU1: Trouble Writing Register XAR0: (Error -1137 @ 0x7) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
C28xx_CPU1: GEL: Error while executing OnReset(1): Target failed to write register XAR0
at XAR0=*((unsigned long *) 0x703F0) [f28377d_cpu1.gel:350]
at SetupDCSM() [f28377d_cpu1.gel:32]
at OnReset(1)
C28xx_CPU1: Failed CPU Reset: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
C28xx_CPU1: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
C28xx_CPU1: Trouble Writing Register XAR0: (Error -1137 @ 0x7) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
C28xx_CPU1: GEL: Error while executing OnReset(1): Target failed to write register XAR0
at XAR0=*((unsigned long *) 0x703F0) [f28377d_cpu1.gel:350]
at SetupDCSM() [f28377d_cpu1.gel:32]
at OnReset(1)
C28xx_CPU1: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
C28xx_CPU1: File Loader: Verification failed: Values at address 0x0000000000082000 do not match Please verify target memory and memory map.
C28xx_CPU1: GEL: File: D:\ccs6\ccs_work_dir\lab02_ram\Debug\lab02_ram.out: a data verification error occurred, file load failed.

  • 那您现在使用UNIFlash能识别芯片吗?用的是同一个仿真器?
  • 您好,谢谢回复。我这次没有直接debug,而是一步步地连接、下载。发现连接也连接不上,报错如下:
    C28xx_CPU1: GEL Output:
    Memory Map Initialization Complete
    C28xx_CPU1: Failed CPU Reset: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
    C28xx_CPU1: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
    C28xx_CPU1: Trouble Writing Register XAR0: (Error -1137 @ 0x7) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
    C28xx_CPU1: GEL: Error while executing OnReset(1): Target failed to write register XAR0
    at XAR0=*((unsigned long *) 0x703F0) [f28377d_cpu1.gel:350]
    at SetupDCSM() [f28377d_cpu1.gel:32]
    at OnReset(1)
    另外,我是新手,请问UniFlash是什么,怎么用呢?
  • CCS Uniflash is a standalone tool used to program on-chip flash memory on TI MCUs and on-board flash memory for Sitara processors. Uniflash has a GUI, command line, and scripting interface. CCS Uniflash is available free of charge.

    Uniflash 可以独立下载固件到芯片,您可以下载来看一下

    您现在提示的这种错误,之前也有客户遇到过,大部分都是硬件或者仿真器连接上的问题
  • 您好,我下载了Uniflash试了试,结果还是报错,如下:
    [2018/12/13 下午2:55:32] [ERROR] C28xx_CPU1: Failed CPU Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    [2018/12/13 下午2:55:32] [ERROR] C28xx_CPU1: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    [2018/12/13 下午2:55:32] [ERROR] C28xx_CPU1: Trouble Writing Register XAR0: (Error -1137 @ 0x7) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    [2018/12/13 下午2:55:32] [ERROR] C28xx_CPU1: GEL: Error while executing OnReset(1): Target failed to write register XAR0 at XAR0=*((unsigned long *) 0x703F0) [f28377d_cpu1.gel:408] at SetupDCSM() [f28377d_cpu1.gel:31] at OnReset(1)
    [2018/12/13 下午2:55:32] [WARNING] C28xx_CPU1: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
    [2018/12/13 下午2:55:32] [ERROR] C28xx_CPU1: File Loader: Verification failed: Values at address 0x82000@Program do not match Please verify target memory and memory map

    我做了两块板,另一块板上的这路芯片可以下载程序,电路是完全一样的。
  • 那请请测试一下复位引脚的电平。另外这两个芯片烧录时的配置都是相同的?