This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

UART sending only one character in mesh beaconing application

Hi,

I'm using nRF52832, nRF5 SDK 15.2 and Mesh SDK 3 .I have successfully integrated the UART module from nRF5 SDK / examples / peripheral /uart  in the beaconing example of the nRF Mesh SDK version 3, without errors it is compiling and working also but it sending only one character,i'm unable to find what is the problem, below is my uart code snippet 

uart initialization and sending data

static void uart_init(void)
{
uint32_t err_code;
int i;
const app_uart_comm_params_t comm_params =
{
RX_PIN_NUMBER,
TX_PIN_NUMBER,
RTS_PIN_NUMBER,
CTS_PIN_NUMBER,
UART_HWFC,
false,
#if defined (UART_PRESENT)
NRF_UART_BAUDRATE_115200
#else
NRF_UARTE_BAUDRATE_115200
#endif
};
APP_UART_FIFO_INIT(&comm_params,
UART_RX_BUF_SIZE,
UART_TX_BUF_SIZE,
uart_error_handle,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
printf("Running UART Service Test\n");
app_uart_put('A');
app_uart_put('B');
app_uart_put('c');
}

for receiving the data i'm using tera term application in PC, in that it is receiving only one character that is 'R' from the printf() statement.

TX and RX buffer sizes are 

#define UART_TX_BUF_SIZE 2048 /**< UART TX buffer size. */
#define UART_RX_BUF_SIZE 2048 /**< UART RX buffer size. */

I'm using app_uart_fifo.c only.

i have gone through the cases in the devzone but i didn't get the proper solution for my problem. Can you please help in solving this problem.

Thanks in advance

Satish

Parents Reply
  • I have added the UART project( .c and .h files) which are present in the SDK v15.2.0 to the Mesh SDK v3.0 beaconing example and i have included the file paths also in the project,those modifications only i did..

    which IDE you are using? Segger embedded studio or any other for building the project

    As you suggested i will try to build the project  with fresh SDK's by making changes that you have mentioned above.

    Thanks.

Children
Related