Update FLASH to use spi, support arbitrary data pointers via void *