Hi,NXP team.
I am using S32G-VNP-RDB2 S32G274A_M_core to implement spi slave function,But I had some problems
I create Spi_Ip_Transfer_S32G274A_M7 example project, and I can send spi message with function Spi_Ip_AsyncTransmit, but whenever I change the variable in the array, this function still send the initial value
uint8 TxBuffer[NUMBER_OF_BYTES] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14}; // the array to be sent
// init spi and dma successful
while (1) // the cycle in main()
{ // I want to change the variables but not work
TxBuffer[0] += 1;
TxBuffer[1] += 2;
TxBuffer[2] += 3;
TxBuffer[3] = 7;
TxBuffer[4] = 6;
TxBuffer[5] = 5;
TxBuffer[6] = 4;
TxBuffer[7] = 3;
memset(TxBuffer,0,21);
Spi_Ip_AsyncTransmit(&Spi_Ip_DeviceAttributes_SpiExternalDevice_0_BOARD_InitPeripherals, TxBuffer, RxBuffer, NUMBER_OF_BYTES, NULL_PTR);
do
{
Counter --;
Status = Spi_Ip_GetStatus(Spi_Ip_DeviceAttributes_SpiExternalDevice_0_BOARD_InitPeripherals.Instance);
}
while ( (Counter > 0UL) && (Status != SPI_IP_IDLE) );
}

it is very strange, if I use Spi_Ip_AsyncTransmit to send several different arrays, it can send their initial variables correctly.
And I use Spi_Ip_SyncTransmit to send data, it can send the modified variables correctly, but I don't want to use it because I want to use SPI slave mode and this function will block when waiting the master.
I want to implement spi slave send function,before that, I need to fix the problem that this function can't send variables
My project file is down here, Thank you for your help!
Best regards.
ZC