Hi,
I'm using RM48L952, with CCS 6.1.0 and HALCoGen 04.04.00.
I’m trying to get communication between spi1 and spi2 by polling method.
The HALCoGen setting is as follows:
spi1 - master spi2 - slave
1) Driver TAB
- Select SPI1
- Select SPI2
2) SPI2 TAB
- SPI2 Global SubTAB
- All unchecked
- SPI2 Port SubTAB
- SOMI set to output, all others are in INPUT mode.
3) SPI1 TAB
- Have it default
My problem is, After calling “spiTransmitAndReceiveData” function data is being transmitted but I unfortunately receive 0x00FF in my RX_Data_Master (destbuff),
I also tried to change the Clock Phase or Clock Polarity, but the problem has not been solved.
Can you tell the reason for this?
Regards,
Fatemeh0726.SPI_test2.zip