This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F021 EEPROM problems

Other Parts Discussed in Thread: HALCOGEN, F021FLASHAPI

Hi,

I'm actually working with RM48HDK and F021 flash api. I've configured my flash blocks using Halcogen as follows:

With the first three blocks I've no problems at all, while witing the next blocks (from 4 to 16) cause an abort on the next system startup.

After saving some data on block from 4 to 16 on the next startup the system cannot pass the "TI_Fee_Init" function.

To read and write blocks I'm using (with no errors):

TI_Fee_WriteSync(0x04+block_num,block_mem);

TI_Fee_ReadSync(0x04+block_num, 0, block_mem, BLOCK_SIZE)

 

Where block_num is a number from 0 to 12, block_mem is a RAM buffer of BLOCK_SIZE bytes and BLOCK_SIZE is 4096, as configured in Halcogen.

The strange thing is that if I don't restart the MCU all is working well: I can write and read my data with no errors.

TRM, Datasheet and F012 api reference has not help me.

Do I have to perform some more initialization?

Do I have to perform some more operation when reading or writing?

The Halcogen setup is right? Where can I found the Halcogen parameters explanation? (for example What's EEPS?)

The "block overhead" parameter in Halcogen means that block size must be bigger than my requirements?

Thank you for any suggestion,

Matteo