nRF52840 UART send more than 256 bytes

I'm sending some data from nRF52840 to another device through wired UART. When data is less than 256-byte long, it works fine. But when it's larger than 256 bytes, I get ERROR 4 [NRF_ERROR_NO_MEM]. I have already changed UART_TX_BUF_SIZE to 1024 in APP_UART_FIFO_INIT. Is there anything else I should change? Thanks

Parents Reply
  • Yes, I can access the ticket. Are you logging the UART output from the device when the error arises? I see that you are sending UART data from multiple places in your code and it would be helpful to know how much data has been sent before the error occurs. The issue is likely that data is being added to the FIFO buffer faster than it's being transmitted over UART. 

    Also, where did you increase the packet length to 257 bytes?

Children
Related