Other Parts Discussed in Thread: HALCOGEN,
I'm trying to configure MibSPI that works with DMA, enabling internal loopback to simplify debugging. I modified HALCoGen example 'example_mibspiDma.c' by setting MibSPI5, I also added a DMA channel (DMA_CH1) for SPI reception, so that the message being received is copied directly from the DMA into the RX_DATA buffer to reduce CPU overhead, but it doesn't work.
The transmission buffer from TX_DATA to mibspiRAM5->tx (by DMA_CH0) is correctly, but the reception is wrong, only the first valute (uint16) is compiled from mibspiRAM5->rx to RX_DATA buffer.
The configuring DMA control packet stack for Tx and Rx seems correct, I also tried to enable interrupt for debugging and it works correctly.
Below I attach the sources of the test project and a screenshot where I highlighted the RX_DATA buffer.
Thanks, Davide Battistoli