SPI2.transfer(tx_buffer, rx_buffer, sizeof(rx_buffer), NULL); gives me hardware error

Thanks,
I also tried with electron as master, I checked with oscilloscope. It’s giving out proper data from mosi, sck and ss pins. but nothing is received on the P1 side. I can share the code if required.