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.

TMS320C28346: Failed to flash code into AT25512-TH-T SPI using SD FLASH APPLICATION.

Part Number: TMS320C28346
Other Parts Discussed in Thread: CCSTUDIO,

I TRIED TO FLASH A COMPLETELY WORKING  DSP (TMS320C28346) CODE into at25512-th-t spi eeprom USING SD FLASH. THE DATA (.OUT) FILE  was generated  by building the code using CCSTUDIO 5.5 . I pasted this (.out) file in the location where I had downloaded and installed my sd flash application. The directory is  C:\CCStudio_v3.3\specdig\sdflash\myprojects\tif2834x_SPI_eeprogflash_v1\test_image\Debug,  Then in the following location "C:\CCStudio_v3.3\specdig\sdflash\myprojects\tif2834x_SPI_eeprogflash_v1\make_image", A copy of the batch file "fmt_2834x.bat " was made. I named it as "fmt_2834x_test.bat". The batch file was opened in notepad and  in line no.10, I specified the name of  my flash data ( .out ) file. Since I am using AT25512-TH-T EEPROM , I CHANGED THE VALUE OF "SET LOSPCP_REG"=0x01. I followed all the instructions mentioned in the document " SDFlash2834x_EEPROM_Flash_Programmer_Readme_V1_0.pdf " to configue the erase, program and verify options in the SD FLASH application. I tried to reset the dsp.The dsp was succesfully reset. Then I tried to flash. The error I received is " Exceeded algorithm execution timeout.  Failed algorithm execution. Failed at block address 0x00003e00. Program flash failed.   WARNING: THE CONTENTS OF THE SECURITY PASSWORD LOCATIONS IN THE FLASH MAY NOT BE IN THE EXPECTED STATE. FOR FURTHER DEBUG PLEASE CHECK THE README FILE INCLUDED IN THE LATEST PROGRAMMING ALGORITHM RELEASE (JULY 2004 AND LATER) SPECIFIC TO YOUR DEVICE. "  What could be the possible reason for such an error? 

  • Deepak,

    Do you see any activity on your SPI bus? Can you share your scopeshots?

    Did you make sure EEPROM is not write protected?

    Regards,

    Manoj

  • Have you ever successfully programmed the EEPROM with this setup? or is this the first time? Have you looked at http://www.ti.com/lit/SPRAAW0?

  • We haven't heard back from you for a while. Have you already resolved this issue? Can I close this thread?

  • Actually, due to lock down restrictions here in India, we couldn't further carry out the hardware testing and boot from the flash process. But, the last time we tried to flash the gpio toggle example code ( code that comes with the installation of control suite) for the particular DSP, we could properly program the EEPROM and was working fine.

    But when I tried to flash my custom code with its corresponding  .out file (which was already built and was  properly working when running from RAM), the flashing process was not successful with the following error message "Exceeded algorithm execution timeout.  Failed algorithm execution. Failed at block address 0x00003e00. The program flash failed.   WARNING: THE CONTENTS OF THE SECURITY PASSWORD LOCATIONS IN THE FLASH MAY NOT BE IN THE EXPECTED STATE. FOR FURTHER DEBUG PLEASE CHECK THE README FILE INCLUDED IN THE LATEST PROGRAMMING ALGORITHM RELEASE (JULY 2004 AND LATER) SPECIFIC TO YOUR DEVICE".

    Actually, when I tried to install ccstudio 3.3 in my system,  some error message came up showing " There is some problem with the installation". So I later switched to CCStudio version 5.5 and the .out file which I mentioned earlier was generated from this version. Can this cause any issue when flashing using SD Flash Utility? Kindly reply.

    Regards, 
    Deepak
  • Deepak,

    It is good to know that you were able to get SDFlash utility working with known TI Example code and having problem only when using custom code.

    Did you make sure EEPROM is big enough to hold your custom code? Have you already tried reducing the size of your custom code and see whether programming goes fine.

    Regards,

    Manoj

  • Is this issue resolved? Can I close the thread?