Thank you for your reply.
I'm sorry we didn't make this problem clear. Let me rephrase the question.
1.Question description
The official demo program uses SPI_0 and DSPI_0 configurations in SPI communication. Where, the default pin of Chip Select output in SPI_0 is PI15.


We now need to use a different pin as the CS output pin. Here, we chose the PD15 pin in GPIO.


Generate PE code and build.



2.Source program
The source program for SPI communication is shown below.


3.The changed program

First pull the PD15 pin high.

Then, pull the PD15 pin low before communication, and pull the PD15 pin high after communication.
But, the changed program doesn't make the SPI communication. Don't know what the problem is. Thank you for your help. Thanks.