SDFLASH error OTIS -1041 with SDFlash version 1.64.00 on TMS320C28346

Guru 83070 points

A customer has written a custom programming algorithm for their Flash device. They are receiving an error from SDFLASH. The following is their description:

I am attempting to program flash memory connected to the external interface (XINTF) of a TMS320C28346 DSP. I am using the C2834x algorithm obtained from http://emulators.spectrumdigital.com/utilities/sdflash/, and have written custom driver code to interface with my specific flash memory. I have also verified that the driver code is able to read, program, and erase the flash memory (by using Code Composer Studio to exercise various parts of the code).

I am using SDFlash version 1.64.00, and an XDS510LC USB JTAG emulator. SDFlash is able to connect to the emulator and reset the DSP correctly. When I try to erase or program the flash memory using SDFlash, I receive the following error message:
MSG: Sdtsrv.dll interface version 2
MSG: Loaded driver sdgo28xusb.dvr
MSG: DSP reset succeeded
MSG: Loading flash image file
ERR: Failed to initialize the algorithm.
ERR: Erase 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.
ERR: OTIS error, Error = -1041

I have not been able to find any documentation showing what this error message (OTIS error -1041) means. Can you please provide information about this error, and any suggestions on how to fix it?


Spectrum Digital's response (from Danny Corey):

The SDFlash can verify the emulator and target connection and even appears to load the algorithm to the CPU. The failure is the attempt to run the algorithm. The algorithms are built and supported by Texas Instruments. You may refer to any PDFs included with the algorithms for input, but ultimately TI will provide support with the algorithms as provided or modifications to the software. TI suggests contacting them through the E2E Forum at www.ti.com.

Regards,

RandyP

Search for answers, Ask a question, click  Resolved  when complete, Help others, Learn more.

3 Replies

  • RandyP,

    TMS320C28346 device doesn't have flash in it. It is a ROM device.

    Regards,
    Manoj

    ---------------------------------------------------------------------------------------------------

    If a post answers your question, please mark it with the "verify answer" button.

    Other useful links:

    C2000 Getting Started      C2000 Flash Common Issues/FAQs      Emulation FAQ

     

  • Guru 83070 points

    In reply to Manoj Santha Mohan:

    Manoj,

    It is very common for SDFLASH to be used to program external Flash. This is what the customer is trying to do, and why they had to write a custom programming algorithm.

    Can you help with the SDFLASH error message? Can you tell us what to look for in the code or what SDFLASH is complaining about?

    Regards,
    RandyP

    Search for answers, Ask a question, click  Resolved  when complete, Help others, Learn more.

  • In reply to RandyP:

    RandyP,

    My bad, I didn't read the post fully. I believe 1041 is emulator error. If so, then this is what it means.

    1041 -- The JTAG scan manager returned an error -or- the system status JTAG register from the target is corrupted. This would indicate the debug probe is unable to successfully do JTAG scans on the target device. But it can’t be sure if the problem is the probe or the target.

    Did you try loading the code in CCS rather than SDFlash?

    Regards,
    Manoj

    ---------------------------------------------------------------------------------------------------

    If a post answers your question, please mark it with the "verify answer" button.

    Other useful links:

    C2000 Getting Started      C2000 Flash Common Issues/FAQs      Emulation FAQ