I am using q2501b module. I just wanted to ask that if i am using a memory device other than that given in “samples\libraries\drivers” directory do i have to write my own device driver for interfacing that device through spi bus.
If your device has the same interface as the ST M93CX6 (the complete interface - not just the SPI transport), then it should work with the ST M93CX6 driver - if it doesn’t, it won’t!
You will have to check the datasheet to find out.
Even if the interfaces look similar, Pay particular attention to timings…