See the spi_flash.rst in the programming guide folder for more details.