serial flash read and write