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.

SPI Flashing with Spectrum Digital XDS560v2 and CCS v4.2

Other Parts Discussed in Thread: OMAP-L137, OMAP-L138

I'm trying to program the SPI flash connected on SPI0 with Spectrum Digital XDS560v2 and CCS v4.2. I downloaded OMAP-L137_FlashAndBootUtils_2_20.gz and opened withCCS. and improted CCS projects SPIWriter and SPIWriter_DSP.

Configured my customized board as boot with debugger. Connected to the target. Couldn't build the project because I cannot set any of the projects as Active.

Loaded prebuilt ..\OMAP-L137_FlashAndBootUtils_2_20\OMAP-L137\CCS\SPIWriter\DSP\SPIWriter_OMAP-L137.out to target and run it.

First was asked: Will you be writing a UBL image? (Y or y). Entered y

Then was asked:

Enter the binary AIS UBL file name (enter 'none' to skip):

Entered an AIS generated DSP UBL file name. received error message.

 INFO: File read complete.
 ERROR: Erasing SPI failed.
Enter the application file name (enter 'none' to skip):

I used scope to monitor SPI clock. no signal at all.

What could be wrong?

Dalong

  • If you are using CCSv4 I would recommend using the flashing tools that come with the PSP package rather than the FlashAndBootUtils that you downloaded, which only has CCS3.3 projects and have not been tested with CCSv4.

    Jeff

  • Jeff,

    Thanks for the reply. I downloaded PSP and it could be rebuilt. However when I tried to debug, received error:

    C674X_0: GEL Output:
    omap-l137 DSP Startup Sequence

    C674X_0: GEL Output: Setup PINMUX Registers...C674X_0: GEL Output: [Done]
    C674X_0: GEL Output: PLL Setup Complete
    C674X_0: GEL Output: Setup Power Modules (All on)...C674X_0: GEL Output: [Done]
    C674X_0: GEL Output:  ARM Enabled
    C674X_0: GEL Output:
    Startup Complete.

    C674X_0: GEL Output:
    Invalid file format

    What could it be?

    Dalong

     

  • Some more details:

    A popup message:

    An error was encountered when attempting to load the program.

    You may continue with your debug session if you wish to attempt to resolve the issue by performing such tasks as power cycling the device or editing your startup scripts.

    continue launching?

    When canceled, another one popped up:

    Exception occured during launch

    Reason: Failed to load program 'spiflash_writer.out' on target 'Spectrum Digital XDS560V2 STM USB Emulator_0/C674X_0'.

    Reason:

    Invalid file format

     

  • It looks like you are building and loading an ARM executable. Does the PSP not come with a DSP version of the flashing utility that you can rebuild?

    If not, we might have to go to option 3, which is the serial flashing tool. Does your board have a serial port that it can boot from?

    Jeff

  • I can see only one flassh_writer project in the PSP.

    I have a serial port which I can receive BOOTME string when I configured as UART0 boot. I tried to use serial flashing tool yesterday but wasn't successful. The serial communication aborted at Ping Opcode Sync. I think the problem is that my crystal is 25MHz instead of 24Mhz so the baud rate is not matched. I don't have a 24MHz crystal at hand.

    Dalong

     

  • Found a DSP version of flash writer in SDK package which works. Thanks a lot!

    Dalong

     

  • Could you please give me more details on where you found the working version? I am having the same problem on a pristine OMAP-L138 Eva board.

     

    thank you

    j