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
  • Hi tony55723,

    tony55723 said:
    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.

    Could you please check if it is the same scenario mentioned here: https://devzone.nordicsemi.com/f/nordic-q-a/37735/app_uart_fifo_init-returns-nrf_error_invalid_state-error-0x00000008?

    I also recommend searching up the macro and error on the internet. The nRF5 SDK has been around for quite many years now, and the same question might have been asked in the past, so you would find it faster than waiting for support.

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

    No, it is not sufficient to disregard compatibility issues. Even if you somehow get it working right now, we cannot guarantee it will continue to work.

    Update: Another issue to note is that we do not do Bluetooth Qualification for the nRF52811 with SoftDevice S132, so you will not have a Bluetooth Qualification reference.  

Children
Related