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

nrf52832 uart buffer size

hi, i have set the uart buffer size as 64. but when i am transmitting data,i found that the size might not enough(eg. there are 100 Bytes to send).how could i do except for expanding the size? i have try to use twice to send the data by for(;;), but it isn't successful.

Parents Reply
  • hi Martin, i am using other's project, ths sdk might be 11 or 12 ,i'm not sure. the init code of uart:

    APP_UART_FIFO_INIT( 
    		&comm_params, 
    		UART_RX_BUF_SIZE,
    		UART_TX_BUF_SIZE,
    		uart_rx_handle,
    		APP_IRQ_PRIORITY_LOW,
    		err_code);  
    
    //and the send data code is 
    for (uint32_t i = 0; i < idx; i++) 
    {
        while(app_uart_put(tx_buff[i]) != NRF_SUCCESS);
    }
    

    i have made some experiments. i found that data couldn't be sent out 100 Bytes once when i set UART_TX_BUF_SIZE to 64(i think it doesn't send out by jlink RTT log)

Children
No Data
Related