Download fulltext - DiVA Portal

Transcript
17.2. EPMP BYPASS MODE
119
The previous examples covered reading and writing to addresses in the flash.
Retrieving data from the flash is straightforward and only requires a “raw” read
as previously mentioned. A write, however, requires a series of write commands,
consisting of various commands that will set up the chip to enter program mode.
This complicated procedure makes sure that it will be very difficult to write to
the flash by mistake. The ONFI specification defines the commands needed to
enter program mode. These commands are the same for both flashes tested in
the thesis. After executing the necessary commands and writing the data, the
datasheet recommends waiting for the program operation to finish. Afterwards,
two sequential reads to same address location should be performed to see if the
data was indeed written [26]. The DQ6 line, doubling as a status register bit
during writes, is continuously read during the program operation in order to see
if the operations has finished. It toggles when the device is busy (see line 237 in
appendix A for details).
17.2
EPMP bypass mode
In order to make any EPMP operation work when the module is controlled by
the graphics controller, the graphics controller must be told to relinquish control.
This is done by setting the MSTSEL bits in the PMCON2 register to 0 (“CPU”),
and back to 3 (“Alternate Master I/Os direct access (EPMP bypass mode)”) for
every operation in the driver [41, p. 7].
17.3
Problems
When testing the driver it was discovered that the flash did not behave as
expected. It performed reads successfully most of the times (easily tested by
reading the manufacturer and device ID), but struggled with write operations.
With the driver working perfectly on the SST39VF400A, it was quickly asserted
that the software was not to blame. Countless hours have been spent testing
different timing configurations, and the hardware has been inspected numerous
times. No solution was found to the problem, and without storage for graphics
data, it was difficult do develop the GUI.