Other Parts Discussed in Thread: C2000WARE
Refer to the datesheet (SPRSP61B – OCTOBER 2021 – REVISED NOVEMBER 2022),
The addresses of flash sectors for TMS320F280034 is from 0x00088000 to 0x00097FFF.
The addressed of User configurable OTP for TMS320F280034 is from 0x00078000 to 0x000787FF.
we use FLASHAPI FAPI_F28003x_EABI_v1.58.10.lib to program the flash and User onfigurable OTP of TMS320F280034.
See below FLASH API called sequence.
When I use below sequence to program the flash,I can do successfully.
But When I use the same sequecnce to program the User onfigurable OTP of MS320F280034,I can not do successfully.
Fapi_issueProgrammingCommand() will return error code : Fapi_Error_InvalidAddress.
But devaddr is 128bit alignment ,Number of 16-bit words in the Data buffer is 8,and the prorgram address range is in the 0x00078000 to 0x000787FF.I think the Fapi_issueProgrammingCommand() API should not return the error code Fapi_Error_InvalidAddress.
Would you give me some advises to deal with this issue?
Thannks~
FLASH API called sequence:
status = Fapi_issueProgrammingCommand((uint32 *)devaddr,p16data,8, 0, 0, Fapi_AutoEccGeneration);
while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);
if(status != Fapi_Status_Success){
goto __err;
}
oFlashStatus = Fapi_getFsmStatus();
if(oFlashStatus != 0){
status = Fapi_Error_InvalidCPUID;
goto __err;
}