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.

TMS320F28377S RAM programming

Other Parts Discussed in Thread: TMS320F28377S

Hi,

i started developping some code on a TMX320f28377S device. I use the 2837xS_Generic_RAM_lnk.cmd file for memory mapping to RAM. But when i load my code the debugger (xds100v2) always erases the flash and later generates the error 

C28xx_CPU1: GEL Output: 
Memory Map Initialization Complete
C28xx_CPU1: Error during Flash verification (Flash algorithm returned error condition). Operation cancelled.
C28xx_CPU1: Flash verification returned error condition. Operation cancelled.
C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.

and no source available for 0xfe493 ....

building for flash does seem to work.

Did i miss a setting ? 

Regards

Jan

  • Hi Jan,

    Look like you have some of your code map to Flash and that's why it's erasing the Flash. Since it's failing the verification part, I am suspecting that your code may by trying to program the content in USER-OTP. Please check your .map file to see if anything getting mapped in to USER-OTP section?

    Regards,

    Vivek Singh

  • Hi Vivek,

    i checked the .cmd file. It is the the standard 2837xS_Generic_RAM_lnk.cmd file provided by TI and doesn't seem to have any references to flash memory. I checked my .map file and the only flash memory space i can see is the DcsmZ1OtpFile and DcsmZ2OtpFile but they have a no load section type.

    I accidentally found out that when i debug my code as if the processor was cpu1 of the dual core version (change device type in the ccxml target file) everything links and programs fine. Is there an error in the tms320f28377s.gel file ? I don't have any experience editing .gel files ...

    regards and thanks for the help

    Jan

  • Hi Jan,

    Which CCS version you are using?

    Regards,

    Vivek Singh

  • It is 6.0.1.00040

    regards
    Jan
  • Hi again Vivek,

    i'm sorry. I assumed i had the latest version installed because "CCS - Help - Check for updates" told me there were no updates... But i checked the website this time, installed version 6.1.0.00104 and everything seem s to work fine this time.

    Thanks for the help

    Jan