Other Parts Discussed in Thread: HALCOGEN
I tried the example code for MIBSPIDMA, which works fine.
In this example it uses the MIBSPI1. I change it to MIBSPI3. I also configured MIBSPI using HALCOGEN ,but I don't see any change in RXDATA.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I tried the example code for MIBSPIDMA, which works fine.
In this example it uses the MIBSPI1. I change it to MIBSPI3. I also configured MIBSPI using HALCOGEN ,but I don't see any change in RXDATA.
I have attached my main.c file.
I used the existing example given from HALCOGEN. I used MibSPI3 instead of MibSPI1.
I also made few changes in the infinite loop. I am transferring data after every half a second.
I don't see any change in RXDATA. Can anyone point out what's wrong in my code?
I have one another question about the mibspiDmaConfig(mibspiREG3,0,14,15); I am assuming that this will configure DMA_CH0 with DMA_REQ 14 for the transmitter and 15 for the receiver. But I configured
dmaSetChEnable(DMA_CH0, DMA_HW);
dmaSetChEnable(DMA_CH1, DMA_HW);
So what about DMA_CH1? Do I need to configure DMA_CH1 just like DMA_CH0? 0624.example_mibspiDMA.c
I tried the steps, you mentioned in video. I was able to get MibSPI working which I was able to get it working before. I disable the MibSPI1 driver from Halcogen and enable MibSPI3 driver and configured same as MibSPI1. But code does not work. I have attached my project if you can look at it.
Another issue I have is RXDATA updates only one time even If I transferring in while loop. Note: This also only work with MibSPI1.7282.SPIMaster.zip
The issue is RXDATA does not update. I configured MIBSPI3 same as MIBSPI1. With MIBSPI, it works just fine. I also configured MPU as mentioned in the example.
But still, I don't see the same behavior.