Other Parts Discussed in Thread: CONTROLSUITE
Hey, guys,
I am using F28069 right now. I am trying to use DMA to read the ADC result. I follow the example in the ControlSuite. Here is part of my code:
EALLOW;
// Perform a hard reset on DMA
DmaRegs.DMACTRL.bit.HARDRESET = 1;
__asm (" nop"); // one NOP required after HARDRESET
// Allow DMA to run free on emulation suspend
DmaRegs.DEBUGCTRL.bit.FREE = 1;
EDIS;
This code can reset the DMA, but I got an error that DmaRegs is undefined.
But if I move the mouse to DmaRegs, it shows volatile struct DMA_REGS DmaRegs; I assume it means it is already defined. Moreover, if I run the project without, I can still get the value from that register through the Expression window in the CCS. I hope anybody can help me. Thank you in advance.
Xinjun
