AnsweredAssumed Answered

Error in SPI data transfer after changing the frame size

Question asked by ANJU ANTONY on Apr 24, 2019
Latest reply on Apr 30, 2019 by Kerry Zhou


I am currently working on frdm k64f board.. I am using MQX  4.2 with IAR..  I want to communicate with SPI in 9bit data transfer. The data transfer in frame size of 8 bit is ok. but when i change the frame size as

param = 9; /* Set framesize to 9*/
printf("Setting framesize to %d ", param);
if (SPI_OK == ioctl(spifd, IO_IOCTL_SPI_SET_FRAMESIZE, &param)) {
} else {

printf("Getting framesize ... "); /* Get transfer mode */
if (SPI_OK == ioctl(spifd, IO_IOCTL_SPI_GET_FRAMESIZE, &param)) {
printf("%d\n", param);
} else {


the data transfer is not happening.. 

I have also tried changing the frame size in init_spi.c file , it was also unsuccessful.

anyone please help