Hi Robin,
I was not able to see MOSI or clock cycles on the oscilloscope but after changing the buffer size
(bytes of data i’m transferring) values, I can see some signals on it.
1) I see different signals on the oscilloscope if I debug with breakpoint on the SPI_WriteData() function as compared to debug without any breakpoints.
2) Another problem is that, I am seeing less clock and MOSI cycles than expected.(debugging without breakpoints)
for small buffer size (2) I see only one low to high on MOSI and one clock (Yellow - clock, blue - MOSI)

for a large buffer size (100) I see 22 clock cycles as shown below

Shouldnt there be much more MOSI and CLK waveforms as I am transferring 100 bytes of data?
In the above case I kept a fixed baudrate of (baudRate_Bps = 5000U)
but if I increase it to baudRate_Bps = 500000U, I dont get any clock and a low to high transition on MOSI

Could you let me know about these points.
Thanks,