• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

CMakeLists.txtD18-Mar-2025437 1712

README.mdD18-Mar-20251.7 KiB5437

main.cD18-Mar-20255.2 KiB14355

prj.confD18-Mar-202535 20

sample.yamlD18-Mar-2025967 3029

README.md

1# UARTE non-blocking {#uarte_tx_rx_non_blocking}
2
3The sample demonstrates a functionality of the nrfx_uarte driver operating in the non-blocking mode.
4
5## Requirements
6
7The sample supports the following development kits:
8
9| **Board**           | **Support** |
10|---------------------|:-----------:|
11| nrf52dk_nrf52832    |     No      |
12| nrf52833dk_nrf52833 |     Yes     |
13| nrf52840dk_nrf52840 |     Yes     |
14| nrf5340dk_nrf5340   |     Yes     |
15| nrf9160dk_nrf9160   |     Yes     |
16## Overview
17
18Application initializes the nrfx_uarte driver and sends a specified message ( @p MSG_TO_SEND ) using UARTE instance.
19The same instance of UARTE is configured to receive the message.
20To perform this operation, different buffers are used, and data is transferred as follows:
21* @p m_tx_buffer -> @p m_rx_buffer
22
23The @p uarte_handler() is executed with relevant log messages.
24
25> For more information, see **UARTE driver - nrfx documentation**.
26
27## Wiring
28
29To run the sample correctly, connect pins as follows:
30* `LOOPBACK_PIN_1A` with `LOOPBACK_PIN_1B`.
31
32> Refer to pin definitions in `common/nrfx_example.h`.
33
34You should monitor the output from the board to check if it is as expected.
35
36## Building and running
37
38To run this sample, build it for the appropriate board and then flash it as per instructions in [Building and running](@ref building_and_running) section.
39
40## Sample output
41
42You should see the following output:
43```
44- "Starting nrfx_uarte non-blocking example."
45- "Content of TX buffer: Nordic Semiconductor"
46- "Content of RX buffer: "
47- "--> UARTE event: TX done"
48- "Content of TX buffer: Nordic Semiconductor"
49- "Content of RX buffer: Nordic Semiconductor"
50```
51
52[//]: #
53[Building and running]: <../../../README.md#building-and-running>
54