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.

TMS320F2806: Program verification error in UniFlash Version 5.0.0.2289

Part Number: TMS320F2806
Other Parts Discussed in Thread: UNIFLASH

Hello,

I am flashing TMS20F2806 using above uniFlash. I want the DSP to boot from flash and hence BOOT config pins are all set to high --> GPIO 18, 29 and 34

I am using a emulator XDS200 USB to program the DSP.

Once I load the program, I get a message saying Program load completed successfully.

I use below settings:

1. Flash program settings: Erase, program, verify

2. Clock: OSCCLK: 20MHZ, CLKINDIV: 2, PLLCR: 10

3. Erase sector Selection: All sector A, B, C, D are clicked

4. Password is correctly entered - Code security password Key 7 to Key 0

How I program?

1. Browse flash image

2. Click Load image

3. I get a message saying Program load completed successfully

4. Then I click verify image

5. I get error message: Verification failed at address 0x3F0000

Can someone help me on this?

  • Abhijeet,

    Did you try to read that failing address in UniFlash or CCS and see whether it is programmed correctly or not?

    I see you entered the password initially in the GUI.  Later when you program the new image, did you use the same password in your image or did you change it?  If it is changed, then you need to enter the new password in the GUI.

    Thanks and regards,

    Vamsi  

  • Hi Vamsi,

    I have kept the passwords same for both programming and for verifying the results.

    During verification it says that the Verification failed at address 0x3F0000.

    Here are additional steps that i did:

    1. After flashing is complete, I check at location 0x3F0000 and I see all zero there

    2. Then I erase sector A and I can see my data at 0x3F0000 but then I get a verification error at 0x3F6000 onwards.

    3. Additionally, my board works fine after I flash using the emulator (i dont power cycle after the flash) but as soon as I power cycle the device the DSP stops functioning (LEDs stop blinking)

    4 After step 3, I simply click depletion recovery and once again the DSP starts operation (LEDs start blinking) but again after power cycle of the device stops the DSP (LEDs stop blinking)

    What is so special about this step 3 and step 4?

    Somehow, I feel that my flashing is not correct. I think these additional pointers might help you to suggest something. 

    I am editing my comment here

    In some other non-TI independent forum, I read that we have to locate "XYZ.out" file to program. Do we use "XYZ.out" file or "XYZ.hex" file for programming?

    Thanks

    Abhijeet

  • Hi Abhijeet,

    Abhijeet Kulkarni said:
    1. After flashing is complete, I check at location 0x3F0000 and I see all zero there

    I believe it will show 0's in the Flash sections if the device isn't unlocked first. Can you try re-unlocking the device with your known password before checking the flash section?

    Abhijeet Kulkarni said:
    2. Then I erase sector A and I can see my data at 0x3F0000 but then I get a verification error at 0x3F6000 onwards.

    Seems like this would be the case because you've erased the CSM passwords and are now getting verification errors in the sector you erased.

    Abhijeet Kulkarni said:

    What is so special about this step 3 and step 4?

    Somehow, I feel that my flashing is not correct. I think these additional pointers might help you to suggest something. 

    It sounds like something is wrong here and the device isn't booting to flash and executing the program standalone properly. Maybe you can compare your code to an example set to run from flash and find something amiss. Directory and install for examples below:

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

    \280x, 2801x Software\c28\DSP280x\v170\DSP280x_examples\flash

    Abhijeet Kulkarni said:
    In some other non-TI independent forum, I read that we have to locate "XYZ.out" file to program. Do we use "XYZ.out" file or "XYZ.hex" file for programming?

    Are you currently using a .hex file? If so, how are you generating it?

    Best,

    Kevin

  • Hello Kelvin,

    Looks like it is some bug in the tool. Somehow we deleted the password data in the hex file and then programmed the chip.

    Bingo! The program worked fine.

    It looks like the tool was not able to read the password data from the memory.

    At least I know that my hex file works fine. You can have a look at this password data read bug in the tool.

    Thanks

    Abhijeet