double uart

I need to connect  a ble device to a double uart0 and Uart1 over zephyr.

The first uart in used for comunication puupose e message everty 20mS at 115200;

The second uart is used for configuration /debug purpose. I made several attempts I can use an uart . 

The first uart work well. But with the second I have some crash. There is an examples that will help me ?

I have tried to use the ncs/nrf/samples/peripheral/lpuart   But id doesent work.

the samples in zephyr/samples/driver/uart/echo_bot  work if I use a single uant .... but it doesent work if II try tu use uart0 e Uart1

Best Regards

Novello G.

  • Hello,

    I have tried to use the ncs/nrf/samples/peripheral/lpuart   But id doesent work.

    When using lpuart you need to have a lpuart instance configured on both the sending and receiving end. So if you are trying to send data from a lpuart device to a regular uart device or vice versa that won't work in general.

    the samples in zephyr/samples/driver/uart/echo_bot  work if I use a single uant .... but it doesent work if II try tu use uart0 e Uart1

    How did you modify this to make it work for two uarts? Can you show the .overlay and prj.conf files? And if you did some modifications to the src you can include that as well.

Related