Hello,
i'm working with the TMX320 F28377DZWTT device and have some problems with writing to the Flash.
I executed the following example code and viewed the memory with the memory browser in the Code Composer Studio.
The code contains 3 Flash api write calls, all writing 1 word, but the second call doesn't write the desired word to flash. The other 2 calls are OK.
Are there some restrictions i forgot about?
The return values are always Fapi_Status_Success.
//Flash sector H erased before,
EALLOW;
//start of sector H
uint16_t* pu16StartAddress = (uint16_t*)0xA0000;
uint16_t pu16DataBuffer = 0x0FFF;
uint16_t ui16WordsToWrite = 1;
//working, data@0xA0000 changes to 0x0FFF
oReturnCheck = Fapi_issueProgrammingCommand((uint32_t*)pu16StartAddress,
&pu16DataBuffer,
ui16WordsToWrite,
0,
0,
Fapi_AutoEccGeneration);
while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);
pu16StartAddress = pu16StartAddress+1; //0xA0001
pu16DataBuffer = 0x3FFF;
//not working, data @0xA0001 remains 0xFFFF
oReturnCheck = Fapi_issueProgrammingCommand((uint32_t*)pu16StartAddress,
&pu16DataBuffer,
ui16WordsToWrite,
0,
0,
Fapi_AutoEccGeneration);
while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);
pu16DataBuffer = 0x0FFF;
//working, data@0xA0001 changes to 0x0FFF
oReturnCheck = Fapi_issueProgrammingCommand((uint32_t*)pu16StartAddress,
&pu16DataBuffer,
ui16WordsToWrite,
0,
0,
Fapi_AutoEccGeneration);
while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy);