I am trying to integrate the lpspi_edma_b2b_transfer_master example with the rpmsg_lite_pingpong_rtos example. When I run the LPSPI EDMA standalone example I don't run into any problems, but when running it in the RPMSG example, the callback LPSPI_MasterUserCallback never fires.
I have tried setting the interrupt priorities:
If you look at my code, it is just getting stuck on the line where it waits for isTransferCompleted to be true. I don’t have any other debug logs, all I know is the callback isn’t getting called and there is no data sent on LPSPI1
Check your source code and find that you didn't add BOARD_SetTrdcGlobalConfig, please do more double-check after migrating these two examples.
Adding that doesn't seem to help, It freezes after SRTM init:
LPSPI board to board edma example.
This example use one board as master and another as slave.
Master and slave uses EDMA way. Slave should start first.
Please make sure you make the correct line connection. Basically, the connection is:
LPSPI_master -- LPSPI_slave
CLK -- CLK
PCS -- PCS
SOUT -- SIN
SIN -- SOUT
GND -- GND
Start SRTM communication
This is in the LPSPI example:
The RDC is resource manager between M core and A core, so we should config it. For no low power boot, you can refer the BOARD_HandshakeWithUboot function. It also configure the RDC.