Other Parts Discussed in Thread: HALCOGEN
Hi, to all. I had a problem using Fee driver. I use F021_API_CortexR4_BE_V3D16.lib , CCS Version: 10.1.1.00004, HALCoGen: 04.07.01 - Released 11.December.2018,
Halcogen config



when main start i call TI_Fee_Init
/* Initialize FEE. This will create Virtual sectors, initialize global variables etc.*/
TI_Fee_Init();
do
{
TI_Fee_MainFunction();
delay();
Status=TI_Fee_GetStatus(0 );
}
while(Status!= IDLE);
and the other functions are, this to writte
do
{
BlockNumber=0x1;
TI_Fee_WriteAsync(BlockNumber, &SpecialRamBlock_H[0]);
do
{
TI_Fee_MainFunction();
delay();
Status=TI_Fee_GetStatus(0 );
}
while(Status!= IDLE);
// guardo los bloques en memoria
Status= TI_Fee_GetJobResult(0);
}
while(Status != JOB_OK);
and this to read
BlockNumber = 1;
BlockOffset = 0;
Length = 0x1FFF;
Read_Ptr = (unsigned char*)&SpecialRamBlock_H;
oResult=TI_Fee_Read(BlockNumber,BlockOffset,Read_Ptr,Length);
do
{
TI_Fee_MainFunction();
delay();
Status=TI_Fee_GetStatus(0);
}
while(Status!=IDLE);
I writte array of 8191 bytes. and i read it ok. But when i reset the uC in CCS. Memory remains OK.
This goes erased always when I call Ti_Fee_Init(). And I need that information stored in uC.
I don't understand why this happens. It is supposed that left memory untouched, because it has data written.
Any suggestion I am lost. Read all and try many things nothings works.
Thanks in advance





