Hi Divya K
Yes, as you mentioned SPI in FRDM-KW40Z is default connected to Flash memory, you can refer to the FRDM schematic, you will find:

Where:

As you can see, SPI flash memory is connected to SPI0 (SPI0_PCS0). If you want to use SPI0 in frdm you can use another PCS, like SPI0_PCS1 that is connected to PTA0 (J2 pin 2) or SPI0_PCS2 in PTC7 (J1 pin 4). You just have to consider, as it said in user manual, that SPI0_PCS0 and second PCS should not be active at the same time.
Hope this information helps, attached you can find the frdm schematic, please tell me if you have any question related.
Have a great day,
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------