test program for SPI flash programming