SPIMemory library - Formerly SPIFlash - now supports SPI FRAM as well! :)

Here's working/broken code.

#include <SPIFlash.h>

SPIFlash flash;

void setup()
{
}

void loop()
{
  Serial.begin(19200);
  Serial.println("HELLO");
  Serial.flush();
  Serial.end();
  
  // Commented out - works. Uncommented - broken.
  flash.begin();
}