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.

Issue flashing TMS320F28377D

Other Parts Discussed in Thread: TMS320F28377D

When attempting to flash a TMS320F28377D I get the following errors:

C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
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: Data verification failed at address 0x00082000 Please verify target memory and memory map.
C28xx_CPU1: GEL: File: C:\Development\UK11sa010\Tesla\Main\DSP\V5DSP_CORE_1\Debug\V5DSP_CORE_1.out: a data verification error occurred, file load failed.


I also tried changing the project to run from RAM and got similar errors. This appears to be a problem with verification. When I try programming into RAM with verification turned off I get the following:

C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x8f91: Error 0x00000008/-1066 Error during: Break Point,  Cannot set/verify breakpoint at 0x00008F91  
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint

Any ideas what may be wrong?

Thanks and regards,

Adam

  • I think the problem may be caused by bad values being passed in the PLL causing the chip to be overclocked. Could this damage the flash.


    Also, I have found I can get into debug mode if I select no verification. I think erasing the Flash and starting fresh may solve my problem but in the Program/Memory Load Options in the On-Chip Flash section when I hit Erase Flash I get the Error "Target is not connected or does not support current Flash operation. Is there any way to erase the Flash?

    I am using CCSv6.

    Thanks and regards,

    Adam

  • Adam,

    1) When loading code in to Flash, make sure you program ECC using the AutoEccGeneration option in the Plugin GUI to avoid ECC errors during verification.

    2) In the linker command file, make sure to map all the sections to Flash alone (assuming your intention is to execute the application from Flash). Flash Plugin will ignore the sections mapped to RAM and will not load them.

    3) Make sure to map every section to a memory region. Un-mapped sections can get linked to any defined memory regions in the linker command file. (Linker might even map these sections to the OTP password locations and you may not notice it).

    4) Verification might fail if the sectors are locked, make sure that the Flash is unsecured before doing the verification using Flash Plugin.

    Thanks and regards,
    Vamsi
  • Vamsi, thanks for your reply.


    However the problem was that I had set bad values for Imult, Fmult and Divsel so the PLL was set to illegal values. Fortunately I was able to get back into debug and alter the values in RAM inside the PLL setting function. This allowed the part to run so I could get back in and reprogram the flash by normal means.


    Adam