35.5.2.4 Flash Status Check

The SQI module supports a hardware-based Flash status check in DMA, PIO, and XIP modes, thereby reducing the burden on software. The status check option is user-configurable, and checks the status of the Flash by automatically reading the Flash status register and checks the RDY/BUSY status flag. If a specific Flash command (i.e., programming or erase type of operations) requires a status check, the user can use this feature, and when enabled, the SQI module will not proceed with the next command in the queue until the status check on the current command returns the RDY state.

In DMA and PIO modes, the SQI module uses the SCHECK bit (CON<24>) in DMA mode and the DDRCMD bit (XCON1<24>) in PIO mode in combination with the MEMSTAT register to handle the Flash status check operation.

In XIP mode, the INIT1SCHECK (XCON3<28>) and INIT2SCHECK (XCON4<28>) bits in combination with different commands in the same registers facilitates the Flash status check operation.

Note: It is mandatory to set RX_CMD_THRES = 1" for automatic status check to work (even if not doing an actual read from external memory).