Hi everyone,
I want to connect two TMS570LS3137 over SPI to send data from the Master MCU to the Slave. To do so, I want to use the Multibufered-SPI.
I am already able to transmit data out of the Master via different Transfer Groups. I made an example with HalCoGen, where i call the following funcions to transfer data with group1 and group 2:
mibspiSetData(mibspiREG1, 0, data);
mibspiSetData(mibspiREG1, 1, data2);
mibspiTransfer(mibspiREG1, 0);
mibspiTransfer(mibspiREG1, 1);
But I don't quite get the Multibuffered-SPI receive mechanism yet.
As far as I get it by now, the slave MCU hast to know how many bytes will be received and has to configure the transfer groups accordingly.
At the moment my slave MCU only receives data throug transfer group 1. If i do not enable group 1 in the slave by writing the TGENA bit in TGCTRL
(mibspiREG3->TGCTRL[0] |= 0x80000000;) I do not receive anything at the slave, altough the other transfer groups are enabled.
My questions are:
Is the configuration of the transfer groups relevant for receiving data?
I have to transmit flexible numbers of bytes. Would it be better to use normal SPI mode to send data from the master to the slave?
Thanks in advance
Dominik