Other Parts Discussed in Thread: MSP430F249
I'm using a MSP430f249-EP in avionic equipment.
The embeded code have to erase a segment in the flash memory.
The flash controller freqeuncy is 333KHz, therefore the erase cycle time is about 14.5ms (4819 / 333KHz).
But during this erase cycle, the CPU have to access the flash evry 400us to write some words in other segments.
Also, it is forbidden to use interrputs in this software.
How to do that ?
The erase functional unit code could be in RAM, so it the CPU is not held.
If the sequence below (duration about 450us) is repeated 37 times (total erase time ~14.5ms) :
---> a) - start an erase cycle (segement 30)
| b) - 400us after start, stop the flash erasing (segment 30) by setting EMEX,
| c) - writing some words (segment 20)
Is the flash segment 30 properly erased ?