I am working on an embedded hardware which has a pxa255 processor with AMD's AM29LV256M flash chip. The system acquires analog input, passes thru the ADC, after processing, stores the data in flash memory. However, sometimes the data is corrupted when writing to the memory. I checked the timing and the voltage levels of the lines and all seem ok. What can the problem be?