2015-11-03 08:25 AM
Using a logic analyzer, I am seeing that interrupts are not occurring during a write to EEPROM.Here is a basic snippet of how I write a single byte of data to an address:
DATA_EEPROM_Unlock();
DATA_EEPROM_ProgramByte(address, data);
DATA_EEPROM_Lock();
Is this expected/known behavior for STM32L152, or is there something I am forgetting to configure to allow interrupts to occur during EEPROM writes?
#stm32-interrupt-isr-eeprom-write
2015-11-03 08:44 AM
FLASH, or FLASH pretending to be EEPROM, will stall execution if you try to read during an active erase/write process. The length of the delay (stuffed wait-states) should be expressed in the Data Manual.
To avoid this, place code and vector table in RAM.2016-02-12 07:25 AM
Does it mean that the interrupts are ignored during the eeprom writing operation?
2016-02-12 08:22 AM
It means NOTHING is happening if you touch FLASH during a pending WRITE or ERASE operation.
2018-02-21 01:06 AM
As the CPU stalls no interrupts will be processed. It does not mean that nothing happens. By this I mean interrupt flags could be set by pheripherals, so these become than pending interrupts Am I correct here ?