Got SPI flash driver write function really close to being good to go, but it still isn't quite sticking. There is a ton of debugging output, which all seems to be correct as far as values go, but the values just aren't being written and read back as expected. Going to try and do byte-by-byte operations to see if that happens to work, and then go from there.