This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Enable DMA in LPC1768

I am Modifying the example of CMSIS Driver USART program. when I am debugging the program DMA is not Enable in GPDMA configuration.

LPC_GPDMA->DMACConfig = GPDMA_CONFIG_E; while ((LPC_GPDMA->DMACConfig & GPDMA_CONFIG_E) == 0);

The control is not coming out of while loop. Can anyone help me in this as I am new to ARM Cortex-M3.

#include "Driver_USART.h"

void initial_USART0(void);
extern ARM_DRIVER_USART Driver_USART0;

int main(void)
{
        initial_USART0();
        Driver_USART0.Send("ABCDEF",7);

        while(1);

}

void initial_USART0(void)
{
        int32_t status=0;
        status = Driver_USART0.Initialize(NULL);
        status = Driver_USART0.PowerControl(ARM_POWER_FULL);

        // configure to UART mode: 8 bits, no parity, 1 stop bit, no flow control, 9600 bps
        status = Driver_USART0.Control(ARM_USART_MODE_ASYNCHRONOUS |
        ARM_USART_DATA_BITS_8 |
        ARM_USART_PARITY_NONE |
        ARM_USART_STOP_BITS_1 |
        ARM_USART_FLOW_CONTROL_NONE, 9600);
        status = Driver_USART0.Control(ARM_USART_MODE_ASYNCHRONOUS, 9600);
        // enable TX output
        status = Driver_USART0.Control(ARM_USART_CONTROL_TX, 1);
        // disable RX output
        status = Driver_USART0.Control(ARM_USART_CONTROL_RX, 1);
}

Regards
Arvin

0