Hello,
I couldn't understand the predefined header files for the spi, so I'm building the spi code from scratch.
To build init_spi function, It's clearly mentioned in the datasheet that I have to configure the pins to be used before enable the spim.
So, I did, and no signal from sck pin nor mosi pin.
My questions are:
Is there any function I need to build and initialize before using any peripheral specially spim, as I'm not using any of the predefined headers?
Do I've to build spi slave to get them work together as the master won't send without a slave to send to, and if so, can both of them initialized and work on the same devkit?
Any insights will be appreciated, thanks.