Main

11.1 EDK - SREC error while trying to program flash in SDK "Error: SREC line is corrupted"

AR# 33006

Search For Another Answer

Topic EDK-FlashWriter
Last Updated 08/06/2009
Status Active
Description

Keywords: SDK, Flashwriter, Flash, SREC

When I use SDK to Program SREC file into Flash, the bootloader always reports the following:

"Error: SREC line is corrupted"

The "Program Flash Memory" Utility in XPS works fine.

Solution

A recent change in SDK added extra bytes in the SREC file. The work-around is to change the following lines in the generated srec.h.

From::
#define SREC_MAX_BYTES 78 /* 39 character pairs maximum record length */
#define SREC_DATA_MAX_BYTES 64 /* 32 character pairs representing data */

To:

#define SREC_MAX_BYTES 255 /* Maximum record length */
#define SREC_DATA_MAX_BYTES 123 /* Maximum of 123 data bytes */

This problem has been fixed in EDK 11.3, available at:
http://www.xilinx.com/support/download/index.htm


 
 
/csi/footer.htm