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.

TMS570LS0432: Use TMS570 flash memory for data (write / read during runtime)

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

As stated by Sunil Oak (I found a thread with this topic), Is his code enough to read and write from EEPROM? If not what must be included?

#define BLOCK_NUMBER 0x01

sint64 value = 0;

void main() {

TI_Fee_Init();

readValue();

// ...

while (1) {

if (/* value changed */) {
writeValue();
}

// ...
}
}

void readValue() {
TI_Fee_Read(BLOCK_NUMBER, 0, &value, 8);
}

void writeValue() {
TI_Fee_WriteAsync(BLOCK_NUMBER, &value);
}