programming for flash R/W