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

nrf5340 net core only uart

I am using windows 10, nrfConnect 5340, and the NRF5340DK.

I was searching for an example of how to configure and use the usart/uart 0 port as a 2 way interupt based serial communication.

so far all the examples either stick to printk or they are for the app core. even trying to reverse the app core examples has been tricky for me. 

Is there an example that configures the uart0 of the net core? if not is there some sort of guide on how to set up uart properly in nrf connect.

Thank you

Parents
  • Hi,

    The sample at nrf/samples/peripheral/lpuart uses interrupt driven uart, and it should be pretty simple to configure it to use normal uart instead of lpuart. The code at zephyr/tests/drivers/uart/uart_basic_api/src/test_uart_fifo.c may also be helpful.

    It should be possible to run a lot of the samples on the network core with some adjustments. What issues are you seeing? Have you tried running nrf/samples/nrf5340/empty_app_core on the application core while testing the samples?

Reply
  • Hi,

    The sample at nrf/samples/peripheral/lpuart uses interrupt driven uart, and it should be pretty simple to configure it to use normal uart instead of lpuart. The code at zephyr/tests/drivers/uart/uart_basic_api/src/test_uart_fifo.c may also be helpful.

    It should be possible to run a lot of the samples on the network core with some adjustments. What issues are you seeing? Have you tried running nrf/samples/nrf5340/empty_app_core on the application core while testing the samples?

Children
No Data
Related