I am using OSPI to read the flash chip using adi_ospi_DirectRead. At the same time, i am using SPI2 to send a bitstream to an FPGA. When the SPI transactions for both peripherals happen at the same time. The DMA for the OSPI seems to lock up. It never seems to finish it's transaction. When using core mode instead of DMA, the processor locks up. No exception handler or anything. It just stops working.
If i use SPI1 instead of SPI2 there is no issue.
Any idea what might be the issue here? I have tried remapping the memeory of the OSPI by setting *pREG_SCB5_SPI2_OSPI_REMAP = 0x1, but this does not fix the issue.