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.

CCS/TMS320LF2407A: Read flash contents

Part Number: TMS320LF2407A

Tool/software: Code Composer Studio

As per this post:

https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/728179/2690353?tisearch=e2e-sitesearch&keymatch=TMS320LF2407A#2690353

I have the same issue I have a board that is unsupported and have a TMX320LF2407A IC with a JTAG header. I have bought a XDS510LC from spectrum digital. I have downloaded CCS3.3 and I can connect to the controller using JTAG. I can run and stop the processor thus my connection is ok.

I want to copy the data from this IC using JTAG and CCS and then allow me to place it onto another board for repair. Is this possible? 

The previous post people say: save the flash contents as a COFF file (.out file).

Problem is that I have never used CCS so have no idea. Someone else said: "You need a working copy of CCS3.3 on a PC and a debug probe like XDS510PP+. If you have these, then you could connect to the device via JTAG and easily dump the flash contents." 

Easily dump the flash contents. Can anyone help?! What do I need to do step by step on CCS3.3 in order to get this code. Once I have this then I also need to know how to write it.

thanks

 

  • Since you have a working copy of CCS3.3, this should be fairly straightforward. I presume your device is either unlocked or you know the password, if it is locked.

    Once you connect to the device via CCS, Use the File-->Save option. You need to provide the starting address (0x0000) and flash size (0x8000). You then need to provide the file format desired. Choose COFF (yyy.OUT file). Once you have thus saved the flash contents, connec to the new device now. Use the CCS flash-plugin tool and program the saved COFF file. The tool needs to do a CLEAR/ERASE/PROGRAM sequence. Your COFF file will be used in the PROGRAM step.
  • thanks Hareesh, I have now done as you said and I get this error message. Does this mean that the processor is locked?

    How do I know if its locked?

  • Also... I dont know if its of any extra help but when I run the device using the debugger I have no issues it runs fine. When I try and single step through the assembly It works for a few clicks but then fails out with the following. Sorry Im very new to CCS so have no prior experience of what it should do.

    thanks

  • Please see below posts
  • I have now done as you said and I get this error message. Does this mean that the processor is locked? How do I know if its locked?

    If it is locked, you will see a random 16-bit number repeated throughout the flash array.


    when I run the device using the debugger I have no issues it runs fine. When I try and single step through the assembly It works for a few clicks but then fails out with the following.

    You mean when you just say "Run", everything works fine, but when you attempt to single-step, you encounter issues? I presume the device is configured for MC mode. The reset vector is at 0x0000, so when you rest the device, execution should start at 0x0000. You should see a Branch instruction there. Do you know precisely at which address you encounter a problem? Is it the same address every time?
  • On a different note, why are trying to execute? Wasn't your objective to save the flash contents in order to reprogram another device? See the attached file for the saving procedure. Looking at your disassembly window, I don't think your flash is locked. You can confirm this by examining address 0x0000 in Program memory. If you see a "B" instruction (for branch), then the flash is definitely not secured.

    Saving Flash.pdf

  • Thanks Hareesh, would there be a chance that I could call you? I have a few questions with it being my first time. whats your number?
  • Please reach out using the friendship request and we can setup a call.
  • Hi (again) I read the code just fine thanks using your instructions. I have now got the file and want to flash it back onto another device. I tried to flash the code using the "On Chip Flash Programmer" as per your instructions however I now get a "Cannot run DSPCL" error. I have attached my version. According to other posts in the forum its to do with missing files in the folder\C2400\cgtools\bin I only have one file in there which is bti2400.dll

    can you help? I need to finish up! Thanks so much

  • CCS3.3 is now obsolete and there is no active support for it anymore. Nevertheless, I am checking with the CCS team if someone could help. Alternatively, other solutions are available to program the flash. Please see:
    www.codeskin.com/programmer
    www.elprotronic.com/products
  • Hi Marc,

    Marc Hickling said:
    r\C2400\cgtools\bin I only have one file in there which is bti2400.dll

    Sounds like you are missing the C24x compiler. How are you building your F24x projects?

    Thanks

    ki

  • Ki,
    In the call yesterday, customer mentioned he is new to C2000/CCS. All he is trying to do is to read the flash from one device and reprogram a fresh device. He is not compiling/linking etc.
  • Ok, that explains some things as I believe the flash plug-in has some dependencies with the compiler. What version of CCSv3.3 is being used? It looks like it is a version that provides F24x debug support but not build support.
  • Ok I was originally using V3.3.83.20 but I have since uninstalled and re-installed V3.3.83.19 (which apparently has F24X support) and I now see files in the cgtools folder. I can now clear and erase however when I try to program it says "Conversion Aborted: This file is not linked".

    any further help?

    Will
    www.codeskin.com/programmer
    www.elprotronic.com/products

    work with .out file?

  • thankyou! You got it and it now works
  • Great. I will close the post.