Hi
Am working on SPI with master and slave devices.
Master side is S7G2-DK board and slave is S7G2-SK board
When i send a single byte data, data transfer is proper and it is received properly at slave
But when i send a structure which 5 to 6 variables that time am not getting proper data.
on master side: err = g_spi0.p_api->writeRead(g_spi0.p_ctrl, (void *) &buffer, &reply,sizeof(reply), SPI_BIT_WIDTH_8_BITS);
on slave side:err = g_spi1.p_api->writeRead(g_spi1.p_ctrl, &config_8, &read_reg_8,1 , SPI_BIT_WIDTH_8_BITS);(it gets only first byte properly and other all 0xef ,0xef)
when i cahnge 1 to sizeof (reply)
err = g_spi1.p_api->writeRead(g_spi1.p_ctrl, &config_8, &read_reg_8,sizeof(reply) , SPI_BIT_WIDTH_8_BITS);always a junk data only..ie 0xef,0xef
Is there any issue with writeRead api
Please suugest
Thanks and Regards
Rizwan Syed