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.
Part Number: TMDXRM57LHDK
Tool/software: Code Composer Studio
Hello,
I am working on a project that receives and processes a rather large amount of Sensor Data (2k Byte every 60ms). I have found and implemented the Example Code for SCI DMA successfully. So the problem I have is not with the actual receiving of Data, but rather with Notifications.
Ideally I would want to be notified once with every fully received package, so once every ~60ms. Right now I am using a Function that is called periodically every 1-2ms (with every µC Cycle) and should return true if a new Package is received and false in between. With my current Implementation it allways returns true. The Code is as follows:
bool DMATransfer() {
if(dmaGetInterruptStatus(DMA_CH1, LFS)) { // Restart sciREG4->CLEARINT |= SCI_SET_RX_DMA | SCI_SET_RX_DMA_ALL; dmaSetChEnable(DMA_CH1, DMA_HW); sciREG4->SETINT |= SCI_SET_RX_DMA | SCI_SET_RX_DMA_ALL; return true; } return false; }
I would greatly appreciate any advice to solve this problem.
Regards,
Lars