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.

TMS570LC4357: API function Fapi_issueProgrammingCommand

Part Number: TMS570LC4357


Hi all,

I wrote the following bytestring "0xEA 0x01 0x0C 0xB9 0xEA 0xFF 0xFF 0xFE" with the API function "Fapi_issueProgrammingCommand" into the Flash at address 0x0020 0020.
Additional the API function generates the ECC and writes it at address 0xF044 0004.

How can I calculate manually the ECC from the bytestring ?

I am using the following API function with the following parameter:

ReturnValueProgCommand = Fapi_issueProgrammingCommand(   (uint32 *) dst,
                                                                                                            (uint8  *) src,
                                                                                                            (uint8   ) ulBytes,
                                                                                                            (uint8  *) (0xF0400000u + (src >> 3u)),
                                                                                                            (uint8   ) (ulBytes >> 3u),
                                                                                                            Fapi_AutoEccGeneration);

Best regards
Lars