I'm using an Xmega with 128K of Flash memory. I also need to store about 256K of data that could be pulled by the code while the program runs. Right now I am trying to do this using a micro SD card but even at this point this seems like an issue because the way the card is being read and the data stored in FAT file system.
I would like to connect a serial flash (SPI) that will hold all this non-volatile data, question is - what is the best way to load it onto the serial flash. It seems a little far fetched I could someone program everything using the JTAG debugger at a single go. Loading the code onto the external flash is possible as a separate step but if there is a better way I would like to hear about it.