^

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

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.

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


AR# 33006
Date Created 06/19/2009
Last Updated 08/06/2009
Status Active
Type
Feed Back