I'm happy for other solutions though, I thought as the internal flash was only 64K and my code size is going to be bigger that that I needed the spi flash to store extra code.
The LD file can be set up to use flash sections and code can be placed in that section.
I need to write a STLink flash driver as well so when the code is deployed to the STM the flash section code gets written to the spi flash.
This memory is then mapped into the STM.
Or have I got it all wrong?