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.

Changing Passwords and Generating new algorithm files

Other Parts Discussed in Thread: UNIFLASH

I'm still waiting for an answer to a question I posted almost a month ago. I've received two replies but they don't answer the question. I would like to change passwords in a CCS project. I am using a Spec Digital pod, XDS510LC, which works fine to emulate my 2808 board. I need a way to generate SDFlash Erase, Program and Verify .out files. It seems this must be done in code composer because these files contain the old passwords. It doesn't make sense to me that the Spec Digital tool would generate these files. Where in Code Composer did the option to generate programming files go?

Also, I was able to program some new boards with the new passwords. However, since I can't get Code Composer to generate the SDFlash .out files I can't erase them. Code composer V5.5 does not allow for just an erase operation. If it did, I could clear the Flash and revert to the old password.

Come on TI, someone there must know how to do this! If TI has purposely removed this function from CCS, then please just say that you've done that. I really need an answer on this soon.

Phil Dilmore

My original post:

I inherited a project that is currently in production. A year ago I made some fixes but kept the passwords the same. I've recently had to make a few code changes to fix a couple of new bugs we found and made a few enhancements. I'm getting ready to release this to production but since the previous engineers on this project left the company for a competitor I thought it would be a good idea to change the CSM Passwords. In CCS this is easy. I have been able to run the emulator to debug everything and reprogram a number of devices for field trials.

My problem is that in production, we use SDFlash to program our product and we don't want to have operators trying to using CCS. We want a script or batch file that can get called from some other program.. We currently use a batch file that calls the SDFlash.sdp file (which is a text file) that in turn uses SDFlashxxxx_Erase.out, Program.out and Verify.out (which are data files). Somehow I need a way to get SDFlash to start using the new passwords and I expect they are embedded the 3 aforementioned .out files. I can't seem to find any documentation that tells me how to take a .out file from CCS and get SDFlash (or maybe you can do it in CCS but I can't find anything that tells me that either) to create the Erase,Program and Verify.out files. I've poked around in the SDFlash tool but don't see a way to edit passwords. I even tried to create a new SDFlash file but it doesn't create the erase, program and verify files.

I can use the existing SDFlash files to reprogram boards if I don't change the passwords. We have a large stock and need a way to do that. I'm okay if I need separate SDFlashxxx_Erase.out file to erase the old password. I'd also be okay with a CCS generated script that uses the SD pods if anyone can point to a way to do that.

I don't believe it matters but I'm using CCS 5.5, SDFlash 5.5 and the target is an TMS320F2808.

  • Hi Phil,

    Sorry for delay response from our side on this.

    If device is already locked by programing the password locations, to change the password again one need to fist unlock the device by using old password.  So the procedure for this is different than programming a fresh device. If you are using CCS then you can provide the correct password value (old values) in the Gel function (Unlock_CSM()) which will unlock the device and then you should be able to use new .out file (which has new password) to program. Following is the function in Gel file where you have to replace the 0xFFFF with correct password value.

    menuitem "Code Security Module"
    hotmenu Unlock_CSM()
    {
        /* Perform dummy reads of the password locations */
        XAR0 = *0x3F7FF8;
        XAR0 = *0x3F7FF9;
        XAR0 = *0x3F7FFA;
        XAR0 = *0x3F7FFB;
        XAR0 = *0x3F7FFC;
        XAR0 = *0x3F7FFD;
        XAR0 = *0x3F7FFE;
        XAR0 = *0x3F7FFF;

        /* Write passwords to the KEY registers.  0xFFFF's are dummy passwords.
           User should replace them with the correct password for their DSP */
        *0xAE0 = 0xFFFF;
        *0xAE1 = 0xFFFF;
        *0xAE2 = 0xFFFF;
        *0xAE3 = 0xFFFF;
        *0xAE4 = 0xFFFF;
        *0xAE5 = 0xFFFF;
        *0xAE6 = 0xFFFF;
        *0xAE7 = 0xFFFF;
    }

    You can find the gel file inside "<CCS_INSTALL>\ccs_base\emulation\gel" folder (by name "f2808.gel").

    On below -

    If TI has purposely removed this function from CCS, then please just say that you've done that. I really need an answer on this soon.

    Please let us know which file you are referring to here.

    Regards,

    Vivek Singh

  • Phil,

    On a related note, you might want to consider changing your flash utility from SDFlash to TI Uniflash.

    http://www.ti.com/tool/uniflash

    Uniflash is essentially the flash programming engine in CCS as an independent tool.  Uniflash is a good tool, and fully supported by TI (as opposed to SDFlash, which is rather old and is really a Spectrum Digital utility, not TI).  Uniflash works with any emulator that works with CCS.  It has GUI, batch, and scripting modes of operation so it is good for production environments.

    Regards,

    David

  • Hi Phil,

    Have you found the following page yet:
    http://emulators.spectrumdigital.com/utilities/sdflash/

    Those installers give you the underlying programs you'll need to play with, assuming I've grasped your question correctly.


    Thank you,
    Brett