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