Hi,
I have an C6747 starter kit with CCS v3.3 and BIOS 5.33.05. I am reviewing the UART EDMA sample code from
C:\Program Files\Texas Instruments\pspdrivers_01_20_00\packages\ti\pspiom\examples\evm6747\uart\edma\src\uartSample
I have the following questions:
1. This sample code is using UART0 and it is using BIOS configuration to configure the user function. Since the starter kit has the UART2 available with RS232 DB9 connector, I want to use UART2 instead. The sample code is not easy to follow fo this effort. Could you provide a sample code fo UART2? If not, please provide all information need to be changed for UART2.
2. In the BIOS 'UART0 properties', what is the 'device id' of 2 means?
3. I am reading the C6747 EDMA3 Controller User's Guide SPRUFL1C. This is a complex DMA setup with EDMACC and EDMATC. I do not see any of this in the sample code instead of the GIO_create() and GIO_submit(). My guess of the "/UART0" in the GIO_create() function is it has to match with the BIOS 'User-Defined Devices'. Is this correct?
4. Is GIO_submit(hUart_OUT,IOM_WRITE, buf, &len, NULL) is a blocking function? If I am sending 200 bytes out, will this function will be blocked and the rest of my tasks still running?
5. This example is not a good DMA example. In my past experiences, the typical DMA example code with other processors to send a block of data, the application fills up the Tx buffer and calls the DMA function. This DMA function returns right away. When the Tx complete, the application will get an interrupt. Similarly, the applicaton setup a DMA channel for UART Rx, the Rx buffer is fill up with data. The application will get an interrupt when there is data available either due to a timeout after the last receive byte or the buffer length. Do you have this type of UART EDMA sample code?
6. My last question is how reliable of using UART EDMA with baud rate 115200 at any DSP clock speed (25MHz-300MHz)? My concern is I read some problems from the forums that people experienced dropped data with UART EDMA. Is there any information or tips for reliable UART EDMA data transferring? There are times in my applications will transfer 80K bytes of data in battery powered device. I will try to minimize the retries as much as possible.
Thanks,
Dennis