Tested flash memory write/read by writing the value 55 to a location at the far end of user space flash memory when the pattern is correct.  Ran the program, entered the correct pattern, powered off the device, turned it back on, and it successfully read the value 55 back from that same memory location.