The attached code can be used as a reference to test SPI connections on newly designed board with ADSP SC58x/ ADSP-2158x processors.
The code does the following:
How to modify the code for customized system requirements:
How to test that the code works?
The below screenshot shows how the SPI CLK and MOSI signals should look like