Tool/software: TI-RTOS
The UART_BasicExample_evmAM572x_armTestproject located at "C:\ti\pdk_am57xx_1_0_5\packages\MyExampleProjects\UART_BasicExample_evmAM572x_armTestproject" is defaulted to UART 3.
I am running the code on a Beagle Board X15 that is part of the AM572x EVM development kit.
It appears that the pinmux for the board has been configured to support using UART 1 and the UART 1 Tx and Rx come off the board to connector.
From what I understand I just need to change the UART_INSTANCE from a default value of 2 (UART 3) to a value of 0 (UART 1).
I have tried this per the following snippet but do not see any activity on the Xmt line looking at it with a scope.
* ======== UART read/write test ========
*
* The test function tests read/write in blocking mode
*/
static bool UART_test_read_write(bool dmaMode)
{
UART_Handle uart = NULL;
UART_Params uartParams;
int length = 0;
uint32_t addrDataPrint, addrScanPrompt, addrEchoPrompt;
UART_Transaction transaction;
bool ret = false;
char outstring[26] = "abcdefghijklmnopqrstuvwxyz";
int i, cnt=10;
/* UART SoC init configuration */
UART_initConfig(dmaMode);
/* Initialize the default configuration params. */
UART_Params_init(&uartParams);
//uartParams.baudRate = 230400;
#define UART_ONE 0
#define UART_THREE 2
uart = UART_open(UART_ONE, &uartParams);
if (uart == NULL)
{
goto Err;
}
for(i=0; i<1000; i++)
{
//UART_jjdbg(cnt++);
UART_write(uart, (void *)outstring, sizeof(outstring));
}
I would appreciate any guidance that could be provided.