Hello,
I am trying to get the example "Lpspi_Ip_transfer_s32K344" to work.
I connected the two SPI channels together (LPSPI_0 = master, LPSPI_2 = slave) to do something like a loopback test.
First I tried the code from the example with DMA. But the master didn't get the right bytes:
TxSlaveBuffer ={0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19};
RxMasterBuffer = {0x07, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00};
On the second try (without DMA or with synchronous transfer) the first 4 bytes were transferred correctly. The first 4 bytes I think due to the maximum available master RxBuffer in the controller.
I also tried to solve it simply with interrupts, but it seems that the SPI driver works in polling mode by default, at least I could not set it in the configuration.
Anyone could give me a hint?
Thanks!