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.

TMS320F280021: FLASH API例程

Part Number: TMS320F280021
Other Parts Discussed in Thread: C2000WARE

第一次接触FLASH API。

我是直接导入C2000提供的例程然后烧录运行(RAM模式),但程序运行

Example_ProgramUsingAutoECC();时,函数中

oReturnCheck = Fapi_issueProgrammingCommand((uint32 *)u32Index, Buffer + i, 8, 0, 0, Fapi_AutoEccGeneration);

返回值为Fapi_Error_InvalidAddress,错误,继而直接进入

void Example_Error(Fapi_StatusType status)
{
    // Error code will be in the status parameter
    __asm(" ESTOP0");
}

程序运行结束。

1.想请教一下为什么这种情况,我该如何解决?

2.想用片内FLASH去存储一些数据,即使重新上电也依旧存在,并支持修改。

   这种情况下,会在原有程序中加入FLASH API函数,那么,请问烧录程序模式是选择FLASH还是RAM?