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.

[参考译文] TMS320F28377D:TMS320F28377D

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1059891/tms320f28377d-tms320f28377d

器件型号:TMS320F28377D
主题中讨论的其他器件: C2000WARE

我在 TMS320F28377D 中使用闪存程序的功能,擦除闪存成功,但无法重写闪存。 使用 Fapi_issueProgrammingCommand 和 Fapi_doVerify 的 API 函数以及  Fapi_issueProgrammingCommand 返回0 Fapi_doVerify reyurn 501。  我会在 consult 中复制该代码。但是它不起作用。 吹气是我的代码。 我找不到为什么它不起作用。

对于(i=0、u32Index = u32_BlockAddr;
(i < u16BlockSize8WordsSize)
&&(st_FlashVariable.oReturnCheck = Fapi_Status_Success)
&&(st_FlashVariable.oReturnVerifyCheck = Fapi_Status_Success);
i++、u32Index+= 8)

for (j=0;j<8;j++)

FlashBuffer8Words[j]= FlashBuffer[i*8+j];


ST_FlashVariable.oReturnCheck = Fapi_issueProgrammingCommand (((UINT32 *) u32Index、
FlashBuffer8Words、
8、
0、
0、
Fapi_AutoEccGeneration);

Fapi_CheckFsmForReady();

ST_FlashVariable.oFlashStatus = Fapi_getFsmStatus ();
ST_FlashVariable.oReturnVerifyCheck = Fapi_doVerify (((UINT32 *) u32Index、
4、
u32FlashBuffer8Words、
st_FlashVariable.oFlashStatusWord);

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

    霍克

    Fapi_CheckFsmForReady()应处于循环状态,等待 FSM 准备就绪。

    请查看 C2000Ware 中提供的示例。

    谢谢、此致、
    Vamsi

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

    Vamsi、

    Fapi_CheckFsmForReady() 已在循环中。

    谢谢、此致、
    霍克

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

    霍克

    请查看 C2000Ware 示例。  它显示 了 Fapi_CheckFsmForReady()的 while 循环。

    谢谢、此致、
    Vamsi

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

    Vamsi、

    我在 Fapi_CheckFsmForReady()函数中写入 while 循环。

    谢谢、此致、
    霍克

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

    霍克

    您可以在循环代码中共享该代码吗?

    谢谢、此致、
    Vamsi