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 函数 Fapi_issueProgrammingCommand

Guru**** 2181980 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/662779/tms570lc4357-api-function-fapi_issueprogrammingcommand

器件型号:TMS570LC4357

大家好、

我使用 API 函数"Fapi_issueProgrammingCommand"将以下字节字符串"0xEA 0x01 0x0C 0xB9 0xEA 0xFF 0xFF 0xFE"写入闪存中、地址为0x0020 0020。
此外、API 函数生成 ECC 并将其写入地址0xF044 0004。

如何从字节串中手动计算 ECC?

我将使用以下具有以下参数的 API 函数:

ReturnValueProgCommand = Fapi_issueProgrammingCommand (  (UINT32 *) dst、
                                                                                                            (uint8 *) src、
                                                                                                            (uint8  ) ulBytes、
                                                                                                            (uint8 *)(0xF0400000u +(src >> 3U))、
                                                                                                            (uint8  )(ulBytes >> 3U)、
                                                                                                          Fapi_AutoEccGeneration);

此致
Lars