The problem encountered when adding UART

Hello Nordic engineer,

I used SDK17.1.0 and examples \ ble_central_and_peripheral \ experimental \ ble_app_multirole_lesc

Chip is nRF52811

I have completed the addition of Nus and successfully ported the S132 (nRF52832) example to nRF52811 by modifying the chip, ROM, RAM, and define settings.

Now I want to add Uart, but I encounter the following problem

The breakpoint on the left side of the image is at line 1057, while the breakpoint on the right side is at line 1063. Should we check the R0 register? If so, it shows 0x09. Do we need to refer to the diagram below?

So the error is 'NRF_ERROR_INVALID_LENGTH'? If so, how should the issue be resolved?

The following are the ROM and RAM settings I configured, hoping they are helpful for identifying the issue.

Thanks

edit new information

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

Parents Reply
  • Hello Hieu,

    Thank you for your reply.

    I tried adjusting both UART_TX_BUF_SIZE and UART_RX_BUF_SIZE to 32. This time the error occurred at APP_UART_FIFO_INIT(), with R0 displaying 0x08, corresponding to the image NRF_ERROR_INVALID_STATE.

    S132 is not compatible with the nRF52811

    Would avoiding the features exclusive to the 52811 and not present in the 52832 be sufficient to disregard compatibility issues? maybe Long Range?

Children
Related