AnsweredAssumed Answered

UART Baud Rate Error

Question asked by VanTechniek on Jul 14, 2015
Latest reply on Jul 28, 2015 by emoloney

I am new to ARM programming and I am trying to use UART with the drivers supplied (uart.h, gpio.h, etc.) on the Eval-ADUCM350EBZ . When I try to set the baud rate using adi_UART_SetBaudRate() it gets an error code back for invalid params. I want to set the baud rate to 9600, and I use the (ADI_UART_BAUDRATE_TYPE) 0 as the second parameter. This shows me that I am sending the defined 9600 baud rate value to be set but yet I get an invalid parameter message back.

 

I am lost at an early step in getting UART working and I would appreciate the help to move forward. Below is the snipped of code I am using. I have already ran the initialization for GPIO and UART and the loopback with success.

 

ADI_UART_BAUDRATE_TYPE baudRate = (ADI_UART_BAUDRATE_TYPE) 0;

  uartResult = adi_UART_SetBaudRate(hDevice, baudRate);

  if (ADI_UART_SUCCESS != uartResult)

  {

    printf("adi_UART_SetBaudRate() failed");

  }

Outcomes