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.

TMS320F2809: Programming F2809 by Arrows

Part Number: TMS320F2809
Other Parts Discussed in Thread: UNIFLASH

Hello,

I try to solve a problem of my customer.

The F2809 is part of a PCB which is produced by an external manufacuter. Some years ago the manufacturer got the out-file with the F2809 Firmware. Since then the F2809s have been programmed by the distributor and have been assembled afterwards onto the PCB. So there was no need for programming manually by Uniflash.

Now the manufacturer says he must buy the F2809 from Arrows as from now on it is the only distributor Texas Instruments works with. But Arrow does not know how to use the out-file and they demand a hex file.

I therefore created a hex file with the utility that is intergrated in Code Composer Studio. This hex file I tried with Uniflash. It took several minutes, I guess more than five minutes, but apparently Uniflash programmed successfully without error message.

But after powering the PCB I saw that the firmware does not work. I tried to reprogram the PCB with the out file. However the CSM passwort now contains apparently unknown bytes, so the PCB is not accessible anymore and seems dead.

Has anybody a hint how the hex file (containing also the CSM password) must be created so that Arrow can use it.

Thanks a lot in advance,

Karlheinz

  • Karlheinz,

    But after powering the PCB I saw that the firmware does not work. I tried to reprogram the PCB with the out file. However the CSM passwort now contains apparently unknown bytes, so the PCB is not accessible anymore and seems dead.

    You should be able to get your CSM password from HEX file and unlock the device.

    Has anybody a hint how the hex file (containing also the CSM password) must be created so that Arrow can use it.

    Below are the different hex format that HEX2000 utility supports. Check with ARROW which hex format do they want? Please check C28x assembly tools manual for more information about these hex formats.

  • Thanks for the reply Manoj,

    I looked at the hex file and saw it has apparently a 8-Bit-format, instead of 16 Bit. At least for the CSM password, the 16 bits are  truncated to 8 bits. I do not know how the truncated bits are filled, I tried 0xFF and 0x00, but maybe they are randomly filled, so I was not able to unlock.

    Yes, I have to check with Arrows, what they might need. I only have the fear that I damage another board with trying.

  • Karlheinz,

    If you have COFF file (.out) it shouldn't be too difficult to get the password. We can use HEX2000 utility to get the contents of 0x3F7FF8 - 0x3F7FFF contents (password contents).

    Regards,

    Manoj

  • Karlheinz,

    Try making a hex command file with the following in it:

    applicationName.out
    --intel
    --image
    --memwidth=16
    --fill=0xFFFF
    ROMS
    {
    	APPLICATION: org = 0x082004, len = 0x1DFEC, romwidth = 16
    	files = { application.hex }
    
    }
    

    You will need to adjust the applicationName to match your out file and the org and len fields of the ROMS directive to match the flash memory of the device. I commonly use this for generating hex files for use with bootloading utilities.  After you have the above saved in a file, pass it as an argument to the hex2000 utility and it will spit out your application.hex file.

    Best,

    Trey

  • Manoj,

    I have the password but I was not able to unlock the device anyway. I flashed the password section with an 8 bit insteas of 16 bit hex file, I assume that the other 8 bits are unknown.

    Thanks,

    Karlheinz

  • Trey,

    thak you very much for  the answer. I will await the answer from Arrows what they really need. When I get their answer I will try your approach.

    Karlheinz

  • Can I close this thread for now? You can reopen this post (or) open a new post if you have further questions?

    Regards,

    Manoj