Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hi Guys,
I am trying to generate a .hex file out of a simple blinky_c28 application. The generated hex file outputs a strange format as below:
:0C806000761F01381E24761AFF69000606
:20806600FFFFA00000000001FFFEA002000000000000FFFEA004000000000000FFFEA00678
Now i program data from first line above starting from address 0x138060 it until 0x138065 and when i go to next line to start programming the data from address 0x138066 its throws an error called "Fapi_Error_AsyncIncorrectEccBufferLength".
Now how could i solve this problem ?
Below is a code snippet of how i deal with record length from .hex file.
if(reclength == 0x0C)
{
oReturnCheck = Fapi_issueProgrammingCommand((uint32 *)flashsectoraddress,
data_buffer,
6,
0,
0,
Fapi_AutoEccGeneration);
}
else if (reclength == 0x04)
{
oReturnCheck = Fapi_issueProgrammingCommand((uint32 *)flashsectoraddress,
data_buffer,
2,
0,
0,
Fapi_AutoEccGeneration);
}
else
{
oReturnCheck = Fapi_issueProgrammingCommand((uint32 *)flashsectoraddress,
data_buffer,
8,
0,
0,
Fapi_AutoEccGeneration);
}
Thanks!