I have values coming from SPI port. 512 bytes every 1 sec.
I want to store them in file as I have to check data for inspection. . But I want to store 60 sec data in text file. and problem in array size is 512 bytes only in RAM. Is there any method by which data can be stored during debugging
Note that if you don't store in RAM but in flash, then it will matter what flash, i.e. if you store in a flash memory that will make use of wear leveling or not.
It also matters how often you need to write to your file.
If you haven't enough RAM, then it might be an idea to consider a FRAM memory which is fast and doesn't have issues with total number of read/write/erase cycles supported.