Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN
Hi team,
I'm trying to establish a spi communication between RM57L843 (Master) and ADSP BF609 (Slave).
I want to receive 20 byte data from slave. I have set baudrate as 5000KHz and configured length as 20 in Transfer group 0 in Halcogen.
So while receiving I'm able receive 8 bytes correctly but after 8 byte 8th byte data is overwritten in remaining bytes.
Here I have attached the snapshot of received data.
I'm not able to figure out where I'm doing wrong. Please suggest a suitable solution.
Here is my code:
#define D_COUNT 20
uint16 tx_data1[D_COUNT] = {0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xAA,\
0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A};
uint16 rx_data1[D_COUNT] = {0};
uint8 tx_flag = 0;
uint8 rx_flag = 0;
/* USER CODE END */
int main(void)
{
/* USER CODE BEGIN (3) */
mibspiInit();
mibspiSetData(mibspiREG4, 0, &tx_data1[0]);
mibspiTransfer(mibspiREG4, 0);
while(mibspiIsTransferComplete(mibspiREG4, 0) == FALSE);
mibspiGetData(mibspiREG4, 0, &rx_data1[0]);
while(1);
/* USER CODE END */
return 0;
}

