Jump to content
  • 0

SREC Bootloader Fails to Load Target Application from SPI Flash


Johnnie White

Question

Hi,

I'm looking for next steps.

I followed a tutorial on How To Store Your SDK Project in SPI Flash and the boot loader starts but never launches the target application.

https://reference.digilentinc.com/learn/programmable-logic/tutorials/htsspisf/start

I've traced it down to the file xilisf.c where the call to XIsf_GetDeviceInfo() never returns.  It appears to get stuck on XIsf_Transfer() and never returns.

Here's a snip-it of code:

    /*
     * Prepare the Write Buffer.
     */
    InstancePtr->WriteBufPtr[BYTE1] = XISF_CMD_ISFINFO_READ;
    InstancePtr->WriteBufPtr[BYTE2] = XISF_DUMMYBYTE;
    InstancePtr->WriteBufPtr[BYTE3] = XISF_DUMMYBYTE;
    InstancePtr->WriteBufPtr[BYTE4] = XISF_DUMMYBYTE;
    InstancePtr->WriteBufPtr[BYTE5] = XISF_DUMMYBYTE;

    /*

     * Initiate the Transfer.
     */
    Status = XIsf_Transfer(InstancePtr, InstancePtr->WriteBufPtr,
                ReadPtr, XISF_INFO_READ_BYTES);

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...