AnsweredAssumed Answered

32-bit SPI framesize problem CW10.2 MQX 3.8

Question asked by Tom Junkans on Aug 31, 2012
Latest reply on Sep 2, 2012 by Markku Pulsa

When I set the SPI framesize to 32-bit throught the MQX SPI driver, it gets set to 16-bits. 

 

Here is the code:

param = 32; /* Set framesize to 32 bits for QLX SPI Slave*/
printf("Setting framesize to %d for QLX SPI Slave", param);
if (SPI_OK == ioctl(spi2File, IO_IOCTL_SPI_SET_FRAMESIZE, &param)) {
printf("OK\n");
} else {
    printf("ERROR\n");
}


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

 

The result is this: Getting framesize ... 16

It should be 32.

 

Has anyone seen this and is there a work around?

 

Cheers,

Tom

 

Outcomes