dsPIC33 DMA SPI problem
I tried to implement a simple program to learn how to use a DMA feature. I planned to send data to DMA, and I hoped that DMA will automatically send data to the SPI buffer.
Firstly, I have checked an SPI functionality. It was sending data to the sensor as I wanted. After that, I tried to add a DMA functionality. Unfortunately, I failed and I didn't manage to send any data.
I am working a dsPIC33EP128EP204 processor. Configuration was generated with MCC help. Please find my code (full code in attachments) :
// Enable the Global Interrupts
while (DMA0REQbits.FORCE == 1);
IEC0bits.SPI1IE = 1;
// Add your application code
I will be grateful for any help.