After a quick review of data sheets, I could not find any difference between the S25FS256S and S25FS128S, so I just switched to that configuration and it seems to be working.
However, I am interested in the rest of the parameters to fl_device and have not found any information on them. The LS1012A_FRDM_init.py sets up the flash device with:
gdb.execute("fl_device --alias qspi --name S25FS512S --address 0x40000000 --waddress 0x10000000 --wsize 0x1FFFF --geometry 8x1 --controller QSPI")
I simply changed the name to S25FS256S and the programming seemed to succeed (better than with the 512 version anyway!). I am pretty confident that the address parameter is correct (address where QSPI is mapped). But I am not 100% sure I understand waddress and wsize refer to- the address and size seem to match the OCRAM, so I am guessing that the rest of the flash code uses that as the write area?
Also, I did not find anything in the datasheets for the S25FS...S parts that state the geometry of the chip. Does anyone know where this value came from and how I can verifiy it is correct for my part change?
Thanks!
.Tim