Fail to write data form nrf52840 to nor flash w25q128jv

i am writing data from wav file to w25q128jv and i got error -22 at some offset while writing. i tried many config but it seems the problem is not solved, does anyone have any idea for my case, thank you very much

overlay :

config in code : 

write func :

and I tried logging the offset of the error, and I realized it can change according to the config but it seems like before the write was completely normal for the first 1.4mb

this error randomly appears continuously while I write the file. Everyone's opinion is useful to me at the moment.

Related