This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Hercules™︎ safety microcontrollers forum

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi Sir/Madam,

I have a problem about mibSPI transfer groups. I have read a lot of problems and solutions about the issue in site but i could not solve my probem.

Shortly, i can use TG0,TG1,TG2 and TG3 in mibSPI5 section. I have two device, Q1 and Q2. My host microcontroller TMS570LC4357 is in master mode and communicates over SPI with Q1 and Q2. In Halcogen, TG0 and TG2 is used for Q1; TG1 and TG3 is used for Q3. TG0 and TG1 works well. Moreover i can send 72 byte from my microcontroller to Q1 using TG2 and i can read 42 byte from Q2 device using TG3.

Problem starts here. When i try to send 72 byte from host microcontroller to Q2 by using TG4, my code stucks in "while(mibspiIsTransferComplete(mibspiREG5,4)==0);" . According to my experiments, I noticed something interesting happened. When i clear (make zero) all the length values of the TG0,1,2,3 and make only TG4 length as 72, I see that the code is not stuck in "while(mibspiIsTransferComplete(mibspiREG5,4)==0);" , the code can continue. 

Why other TG's are affecting the TG4? Are the transfer groups somehow linked? How can i solve my problem?  Thank you in advance..