Problem Using UART2 on nRF9151 DK

I used the "echo_bot sample and tried to alter it to use UART2 instead of UART0. Aftet changing the code and putting in the needed overlay, the main() program begins to run but never comes back from the call

    int ret = uart_irq_callback_user_data_set(uart_dev, serial_cb, NULL);
This is line 87 of the program I've attached.  uart_dev is configured to point to UART2 (line 24). After trying to execute the line above, the console output appear to stall and it doesn't look like the program execution progresses any further.  I used an nRF9151 DK for this.
Do you know what the issue is?  Have I configured UART2 correctly?
Thank you
Steven Gordecho_bot_uart2.zipon
Parents
  • A few things I noticed on the code you shared.
    Your overlay is for UART1 on pins P0.8 and P0.9.
    these pins are used as Buttons on the nRF9151DK.
    If you are targeting UART2 and open GPIO, you need to change the overlay to UART2 and select pins not used by the DK
    Also you are building for the nRF9151DK_nrf9151 and not for nRF9151Dk_nrf9151_ns

    are you looking to build for a complete secure application versus leveraging TF-M for security by separation
Reply
  • A few things I noticed on the code you shared.
    Your overlay is for UART1 on pins P0.8 and P0.9.
    these pins are used as Buttons on the nRF9151DK.
    If you are targeting UART2 and open GPIO, you need to change the overlay to UART2 and select pins not used by the DK
    Also you are building for the nRF9151DK_nrf9151 and not for nRF9151Dk_nrf9151_ns

    are you looking to build for a complete secure application versus leveraging TF-M for security by separation
Children
No Data
Related