So, Essentially, I am trying to program my internal flash and external SPI Flash on SPI1-CS0 using an SB file. There is some code regarding the QSPI that may work but I am still mining through it.
My SD file could look like this:
sources {
FIRMWARE = "frdmk22f_led_demo_freedom_a000.bin";
LCDSPLASH= "splash.bin";
EXTRA= "seq20.bin";
}
section (0) {
#1 Erase the LCD Splash Space (64 KByte Blocks 0 & 1) on SPI1-CS0
erase SPI1-CS0 Block 0..1
#2 Load the Splash Screen
load LCDSPLASH > SPI1-CS0 Block 0
#3 Erase the Extra Bin Space (64 KByte Blocks 2 & 3) on SPI1-CS0
erase SPI1-CS0 Block 2..3
#4 Load the Extra Data
load EXTRA > SPI1-CS0 Block 2 & 3
#5 Erase the internal flash
erase 0x0000a000..0x0010000;
#6 Load BIN File to internal flash
load FIRMWARE > 0xa000;
#7 Reset target.
reset;
}