Hello.
I'm trying to communicate through SPI1. I have the code done with MQX 3.7 and works correctly, however with MQX 4.2 not get it to work. I am working in mode polled. Specifically, they do not change the signal BSP_CS0_SPI1, BSP_SPI1_CLK and BSP_SPI1_MOSI. The first writing I do, changes the signal to 0 BSP_CS0_SPI1 a moment, but the other attempts to write, does not change.
In user_config.h I have:
#define BSPCFG_ENABLE_SPI1 1
#define BSPCFG_DSPI1_USE_DMA 0
I have defined
#define TEST_CHANNEL_POLLED "spi1:"
To read/write, I do:
spifd_5422_1 = fopen (TEST_CHANNEL_POLLED, (pointer)(SPI_FLAG_HALF_DUPLEX));
ioctl (spifd_5422_1, IO_IOCTL_SPI_READ_WRITE, &rw_5422_1);
ioctl (spifd_5422_1, IO_IOCTL_SPI_READ_WRITE, &rw_5422_1);
ioctl (spifd_5422_1, IO_IOCTL_SPI_READ_WRITE, &rw_5422_1);
fclose(spifd_5422_1);
BSP_CS0_SPI1 only change to 0 in the first READ_WRITE
I have to change something to change MQX version?
Thanks.