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.

CCS/TMS320F28075: serial_flash_programmer: Application File Format

Part Number: TMS320F28075

Tool/software: Code Composer Studio

I am using the serial_flash_programmer detailed in the sprabv4b document. (www.ti.com/.../litabsmultiplefilelist.tsp
I have formatted the application file in several different formats using both the Hex2000.exe utility and the Hex2000 Utility built into CCS.
The Kernel loads with no problems.
The problem is loading the (DFU) Application File.
I'm not sure what the format is. I assumed it should be SCI8 using the Hex2000 utility.

"serial_flash_programmer>hex2000 -boot -sci8 -a -o HexFile.txt Application.out"

I debugged the F021_DownloadImage.cpp file to find the following:

//First 22 bytes are initialization data
for (int i = 0; i < 22; i++)
{
fileStatus = fscanf_s(fh, "%x", (unsigned int *)&sendData[0]);
//Send next char
WriteFile(file, &sendData[0], 1, &dwWritten, NULL);
bitRate += 8;
checksum += sendData[0];
}
//Device will immediately ask for checksum
//Receive LSB from checksum
dwRead = 0;
while (dwRead == 0)
{
ReadFile(file, &sendData[0], 1, &dwRead, NULL);
}
//Send ACK as expected
WriteFile(file, &ack, 1, &dwWritten, NULL);

//Receive MSB from checksum
dwRead = 0;
while (dwRead == 0)
{
ReadFile(file, &sendData[1], 1, &dwRead, NULL);
}
//Send ACK as expected
WriteFile(file, &ack, 1, &dwWritten, NULL);

rcvData = (sendData[1] << 8) + sendData[0];
//Ensure checksum matches
if (checksum != rcvData)
{
VERBOSEPRINT(_T("\nChecksum does not match... Please press Ctrl-C to abort."));
while (1){}
}

There is no checksum. It fails. Something is wrong and I don't know what it is. That can't be the correct format.

These are the excerpts from sprabv4b

2. Receive the flash application in boot hex format

NOTE: Both the flash kernels and flash application MUST be in the SCI8 boot format. This was
discussed earlier in Section 3.1 and can be generated from the OUT file using the hex2000
utility.

This shows various hex formats.

Thank you