I believe the HALCoGen 04.01.00 SPI driver generated for the TMS570LS20x family contains a bug in the spiGetData() function. If transfer group number is 7, when the end variable value is calculated, the LTGPEND register is being masked with 0x0000EF00. The mask should be 0x00007F00.
The following snippet shows the variable value calculation with the problem highlighted. Could you recommend a way to proceed given this error?
spiRAM_t *ram = spi == spiREG1 ? spiRAM1 : (spi == spiREG3 ? spiRAM3 : spiRAM5);
uint32 start = (spi->TGCTRL[group] >> 8U) & 0xFFU;
uint32 end = group == 7U ? (((spi->LTGPEND & 0x0000EF00U) >> 8U) + 1U) : ((spi->TGCTRL[group+1U] >> 8U) & 0xFFU);
uint32 flags = 0U;