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/TMS320C28346: SPI Flash memory programming failure with MICROCHIP: SST26VF032B-104V/SM

Part Number: TMS320C28346

Tool/software: Code Composer Studio

Hello,

Our application used DSP TMS320C28346 and SPI flashrom MICROCHIP: SST25VF032B-80-4I-S2AF and our product has been manufactured for a few years.

Now the SPI flash memory chip MICROCHIP: SST25VF032B-80-4I-S2AF is EOL component, the IC manufacturer doesn't supply the chip any more, and we need to switch

to new flash memory chip MICROCHIP: SST26VF032B-104V/SM. However, I didn't make any change for project file: bootLoader.pjt, and program file: bootloader.out.

It turns out that bootloader programming operation is not done successfully because the verification failed with 255 read errors on page 0.

And I don't have following files: bootFlash.C, dspFlash.c, dspSPI.c and main.c.

What do I need to do to solve the problem.

Thank you!

  • Your concern is not very clear. Are you saying you are not having success programming the same .out file in the new flashROM chip?
  • Hello,
    Thank you very much for your reply.
    Yes, exactly. The old chip SPI flash memory MICROCHIP: SST25VF032B-80-4I-S2AF can be programmed successfully, but the new chip MICROCHIP: SST26VF032B-104V/SM can not be programmed successfully because verification by the programming program failed with 255 read errors on page 0 that was reported by the programming program. Actually, based on the datasheet of the both model of flash memory, the new one SST26VF032B-104V/SM is compatible with the old one SST25VF032B-80-4I-S2AF in both aspect of hardware and software except something maybe, like device ID number, things like that.
  • While the new chip does appear to be a drop-in replacement for the old chip, it appears the new chip has a few additional modes of operation. Have you carefully read the migration document Microchip has provided at http://ww1.microchip.com/downloads/en/DeviceDoc/20005354A.pdf to understand the differences? You may want to check with Microchip what change, if any, in the new chip could be contributing to these errors. I am not very familiar with the programming process for the SPI-Flash chips that you are using.

  • Hello, Hareesh
    Thank you so much for your important input and providing the source of Microchip migration document.
    I read throughout the Microchip document (pdf file), and find out it's the firmware problem. My programming firmware needs to be upgraded for migration to new chip SST26VF032B. But I don't have relevant source code of SPI-Flash programming to upgrade the programmer.
    Anyway, I would like to describe all the programming kit what I use for our application, would you can help me further to some extent.
    1) TI CCS platinum v3.3 2) TI DSP emulator: XDS510-USB 3) Project file: bootLoader.pjt 4) Program that is loaded on CCS: bootloader.out 5) After bootloader.out is loaded to CCS and running, the bootloader code that is programmed into SPI-Flash chip's slot 0, its file name is: boot.x00
    All the programming kit work very well for old chip SPI-Flash SST25VF032B-80-4I-S2AF, but obviously it doesn't work for new chip SPI-Flash SST26VF032B-104V/SM without any upgrading on all the programming files.
    Unfortunately, I don't have those source file (.C ?) , they are as follows: bootLoader.pjt source file, bootFlash.c, dspFlash.c, dspSPI.C, main.c, source file of bootloader.out, source file of boot.x00
    So, my question is : does TI have relevant source code and object code on programming Microchip SPI-Flash chip SST26VF032B-104V/SM, that is available to user to apply new chip easily?

    My email address: yongbiao.liang@greatwall.com.cn, May I have your email address for further communication easily?

    Thank you!

    Yongbiao Liang
  • Yongbiao,

                Could you clarify if the project you are referring to is a TI supplied project or something that was developed in your company before?

     

    Our preferred mode of support is to have questions posted on the forum, not through direct email. This enables TI to route the question to the most appropriate subject expert. Other users also benefit from the posted solution, besides making all this (archived) knowledge searchable in future. Thank you for your understanding.

  • Could you clarify if your programming solution is based off SDFlash? If so, have you taken a look at this: http://www.ti.com/lit/an/spraaw0/spraaw0.pdf Please examine the associated zip file as well.

  • Hello, Hareesh
    The project is originally designed by an company in USA, and a few years ago the company closed and our company bought its properties.
    I am not sure if the programming SPI-Flash application is developed by the closed company or by TI. On my hand, I just have the user guide on DSP code downloading to SPI-Flash (Microchip SST25VF032B-80-4I-S2AF), project file: bootLoader.pjt, CCS program by XINTF x 16: bootloader.out, bootloader code in Flash Memory Slot 0 (I think it's the bootloader in Flash): boot.x00, and application code in Flash Slot either # 1, #2, #3, or #4.
  • Hello, Hareesh
    Currently our Flash programming means are not based on SDFlash, the process is as follows: TI CCS loading project bootLoader.pjt, Debug-->Connect with target board, then loading bootloader.out program to CCS, running the bootloader.out in CCS, then manual operation interface switched to Hyper Terminal, then choose menu to burn bootloader code boot.x00 to Flash memory Slot #0, then burn application code to Flash memory Slot #1, or 2, or 3 or 4.
    If change to SDFlash means as you mentioned, maybe it is a good idea, and I would like to give it a try either as a option.
    TI CCS version: v 5.3, SDFlash version: 1.66.00 Emulator: XDS510USB
    But Obstacles that I encounter are as follows: 1) I don't know how to modify XINTF Flash programming Algorithms Files.
    2) I don't know how to modify driver for new chip SST26VF032B-104V/SM

    So I thought that if TI provide the available solution to customer.
    So, I really need you help on the solving further.

    Thank you!
  • Yongbiao,      

                It appears the SPI programming tool you are using was developed by the company you are referring to. The solution TI developed is based off the XINTF interface (leveraging the SDFlash tool developed by Spectrum Digital Inc), as outlined in the Application Report SPRAAW0. You refer to "the user guide on DSP code downloading to SPI-Flash". Could you please post that document online? I have a feeling the files you refer to in your 3rd post (bootLoader.pjt source file, bootFlash.c, dspFlash.c, dspSPI.C, main.c, source file of bootloader.out, source file of boot.x00) were written by that company.

     

    As I see it, you have two choices: You could modify the existing SDFlash solution for the SPI port. All the files you need are part of the zip file attached to the Application Report. You need to understand how the tool currently works for XINTF and need to make the necessary changes to use the SPI port (after familiarizing yourself with the programming requirements of the new SPI-flash chip). Alternately, you could explore using the Universal Device Programmer that Microchip provides to program such devices. What you could do is to convert the .out file into a hex file and you may then have to parse/modify this hex file into a format needed by the Microchip programmer. Details about this programmer are at http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DV007004

  • Hello, Hareesh
    You are so much enormous helps for me, and I can't thank you enough.
    I already revised the company's document user guide in pdf on SPI-Flash programming for the project, and I can post it on the forum, but I don't know how to post, pls tell me so that I can post next week.
    Our product code need to be upgraded sometimes by end user, so I would like to try on SDFlash platform instead of using a stand-alone Flash programmer.
    My CCS version: TI CCS version: v 5.3, SDFlash version: 1.66.00 Emulator: XDS510USB
    So I need to find out flashing algortithms to support the Flash chip Microchip SST26VF032B.
    I'm on the way, and need sometime.

    Thank you so much!
  • It appears, in your case, SDFlash  may be the way to go (since you mentioned that you do not have the source files for the existing tool). App.note SPRAAW0 is the most helpful resource for you right now. SDFlash can be downloaded from http://emulators.spectrumdigital.com/utilities/sdflash/ . I think SDFlash works with XDS510USB, but I am not sure about the less expensive and newer XDS100 class emulators. You may want to check with Spectrum Digital on that.

    You could easily attach files to your post by clicking on the "paper clip" icon. I attached the attached file using the same method.

  • Hello, Hareesh

    The file (TI TMS320C28346ZFET to SPI-Flash programming work instruction for the application) has been ready a few days ago, but I still do know how to post the file to the forum because I have ever not post any stuff before.
    Thank you!
  • Hello, Hareesh

    The file (TI TMS320C28346ZFET to SPI-Flash programming work instruction for the application) has been ready a few days ago, but I still don't know how to post the file to the forum because I have ever not post any stuff before. Just let me how to post the pdf file on the forum.
    Thank you!
  • All you need to do is to click on that "paper clip" icon and follow the prompts, as illustrated in my previous post. Once you click on that icon, you will get another screen that lets you browse and choose the file that you would like to upload.
  • Hello, Hareesh

    My internet explorer is application FireFox ESR 52.0.1. After I click the "paper clip" icon in your reply column on Mar 17, 2017 1:23 AM,
    the web page appeared as follows. 0284.Capture.JPG, it's the same the graphic as your attached in your reply column on Mar 17, 2017 1:23 AM, but I have no way to post my document files ( pdf or microsoft word).
  • I didn't intend you click the paperclip in my post. What I meant was when you reply to a post, you can click the paperclip in your post to attach a file.