Hello!
I have now a working IAP EEPROM driver that works together with interrupts.
I had to move the interrupts vectors to address 0x10000000 into SRAM in order to make it work.
However, since reads and writes are hardware dependent,
I want to know when my read or write operation is done so that I can queue every interrupts and notice the processor.
Is there anyway to add an interrupt handler for the IAP eeprom library that is used?
An hard-fault will occur if I have a for loop and write to the IAP without any delay but if I add a delay of 1 ms things are fine (still testing will run it 1 day).
I want to have working writes and reads in the background (queue based) where an interrupt shall indicate when a write transaction is complete so that I do not write under a write transaction ( causing abnormal behavior such as hard faults and etc).
Is there anyway to add a custom made interrupt handler for this kind of problem ?
What is the way to go?
PS+
This is the continuation of the following problem in :
Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX
The goal is to have an interrupt handler for the EEPROM indicating when a write or read is done:
Here is an example code:
/* EEPROM interrupt handler */
void eeprom_interrupt_in_bgo()
{
interrupt_que_eepromWrite()
interrupt_que_eepromRead()
// when done issue next write or read in order to synch writes
}