Other Parts Discussed in Thread: C2000WARE, , TMS320F28377D, TMS320F28377S
Tool/software: Code Composer Studio
Hi Expert,
I used TI example project below to develop programming flash through SCI bootrom .
C:\ti\c2000\C2000Ware_3_02_00_00\device_support\f2807x\examples\cpu1\F2807x_sci_flash_kernel\cpu01
But, it seems that flash can't be written. Read back data is 0xFFFF. All oReturnCheck return is OK.
oReturnCheck = Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, (uint32 *)(sectAddress[i]));
oReturnCheck = Fapi_doBlankCheck((uint32 *)(sectAddress[i]), sectSize[i], &oFlashStatusWord);
Buffer[0] = 0x1234;
Buffer[1] = 0x5678;
Buffer[2] = 0x90ab;
Buffer[3] = 0xcdef;
Buffer[4] = 0x1122;
Buffer[5] = 0x3344;
Buffer[6] = 0x5566;
Buffer[7] = 0x7788;
u32Index = 0x80000;
oReturnCheck = Fapi_issueProgrammingCommand((uint32 *)u32Index, Buffer, sizeof(Buffer), 0, 0, Fapi_AutoEccGeneration);
while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);
if(oReturnCheck != Fapi_Status_Success)
{
while(!SciaRegs.SCICTL2.bit.TXEMPTY) { }
SciaRegs.SCITXBUF.bit.TXDT = 0x62;
}
else
{
while(!SciaRegs.SCICTL2.bit.TXEMPTY) { }
SciaRegs.SCITXBUF.bit.TXDT = 0x75;
}
I used other device project to program flash, for example TMS320F28377S , TMS320F28377D, it is all right, no problem . Only TMS320F28075 can't write.
I found the TMS320F2807x project using TMS320F2837xD F021 API. I doubled the API function running incorrectly