Re: [Zephyr-users] [Zephyr-devel] nRF52: USART: sending data from Serial terminal to DK


Chettimada, Vinayak Kariappa
 

if you are looking for a shell, tests/bluetooth/shell could be your inspiration.

if you are looking for implementing a transport over uart, then samples/bluetooth/hci_uart could be your inspiration.

other samples and subsystems may be using UART, that could also be close to your needs. Hoping the UART API documentation in Zephyr should suffice your requirements and how to use it.

-Vinayak

On 24 Aug 2018, at 12:46, vikrant8051 <vikrant8051@...> wrote:

I found sample code under main tree i.e zephyr/samples/nfc/nfc_hello 
which read data on UART terminal.

But it is crasing with this log  ...

Sample app running on: arm
***** BUS FAULT *****
  Instruction bus error
***** Hardware exception *****
Current thread ID = 0x20000f24
Faulting instruction address = 0x8fccaf0
Fatal fault in essential thread! Spinning...

So I edit as
uart1_dev = device_get_binding("UART_0")

But still firmware is not printing received data back on
terminal.

Thank You !!



On Thu, Aug 23, 2018 at 6:54 PM vikrant8051 <vikrant8051@...> wrote:
Hi,

I wanna send some chuck of data over USART to #nRF52840_PDK like commands.

Is there any sample code available for it or any configuration is required to enable this USART
read feature ?

Thank You !!



Join devel@lists.zephyrproject.org to automatically receive all group messages.