Dear Igor
I realized that the author of document "iMX25 Basic SDMA activities.pdf" is you!
I have read your document and I want to say thank you because the document is very helpful to me for understanding the basic configuration method of SDMA. After reading this document I decide to follow the step listed in the document to set SDMA to let it work with UART.
There are only 4 parameters that I have changed:
=============== CSPI/SDMA =====================
1. CTXT_CH10_PTR[3] = 0x00000200; //R1= event mask [I]
2. CTXT_CH10_PTR[8] = 0x43FA4004; // R6= SPI_TXFIFO address base+4
3. CTXT_CH10_PTR[9] = 0x00000003; // R7 = watermark
......
| 4. reg32_write(SDMA_CHENBL_9, 0x400 ); | // SPI1_TX event (9 event) maps to 10chnl |
==============================================
↓↓↓↓↓↓↓↓↓↓↓↓↓↓
============== UART/SDMA =====================
1. CTXT_CH10_PTR[3] = 0x00080000; //R1= event mask [I]
2. CTXT_CH10_PTR[8] = 0x43F90040; // R6= UART1_TXFIFO address
3. CTXT_CH10_PTR[9] = 0x00000003; // R7 = watermark
......
| 4. reg32_write(SDMA_CHENBL_19, 0x400 ); | // UART_1_TX event (19 event) maps to 10chnl |
==============================================
Unfortunately, after the configuration of SDMA, the SDMA transfer seems well because the following two instructions can be through over:
while(BDCh0[0]&BD_DONE);
while(BDCh10[0]&BD_DONE);
But, UART no any output...
May I ask your help to find out where I have missed for SDMA configuration?
