|
| 1 | +.. _nrf5340_remote_shell: |
| 2 | + |
| 3 | +nRF5340: Remote IPC shell |
| 4 | +######################### |
| 5 | + |
| 6 | +.. contents:: |
| 7 | + :local: |
| 8 | + :depth: 2 |
| 9 | + |
| 10 | +You can use this sample to run the remote shell on the nRF5340 network core through the IPC service. |
| 11 | + |
| 12 | +Requirements |
| 13 | +************ |
| 14 | + |
| 15 | +The sample supports the following development kit: |
| 16 | + |
| 17 | +.. table-from-rows:: /includes/sample_board_rows.txt |
| 18 | + :header: heading |
| 19 | + :rows: nrf5340dk_nrf5340_cpuapp |
| 20 | + |
| 21 | +Overview |
| 22 | +******** |
| 23 | + |
| 24 | +The sample shows how to run remote shell on the remote CPU using IPC service backend for shell. |
| 25 | +It collects shell data from the IPC endpoint and forwards it to the terminal over USB transport or UART. |
| 26 | +If the shell runs on the network core, you might want to use a peripheral that the network core does not have, for example USB. |
| 27 | +You can use this sample to demonstrate how to forward shell data from the network core to the application core and connect the shell terminal through the application core. |
| 28 | + |
| 29 | +Building and running |
| 30 | +******************** |
| 31 | + |
| 32 | +.. |sample path| replace:: :file:`samples/nrf5340/remote_shell` |
| 33 | + |
| 34 | +.. include:: /includes/build_and_run.txt |
| 35 | + |
| 36 | +.. _remote_shell_testing: |
| 37 | + |
| 38 | +Testing |
| 39 | +======= |
| 40 | + |
| 41 | +To test the sample, complete the following steps: |
| 42 | + |
| 43 | +1. Program the sample to the application core. |
| 44 | +#. Program the :ref:`radio_test` sample to the network core. |
| 45 | +#. Plug the DK into a USB host device. |
| 46 | + The DK is visible as a COM port (Windows) or ttyACM device (Linux) after you connect the development kit over USB. |
| 47 | +#. |connect_terminal| |
| 48 | + |
| 49 | +Dependencies |
| 50 | +************ |
| 51 | + |
| 52 | +This sample the following Zephyr libraries: |
| 53 | + |
| 54 | +* :ref:`zephyr:kernel_api`: |
| 55 | + |
| 56 | + * ``include/device.h`` |
| 57 | + * ``include/drivers/uart.h`` |
| 58 | + * ``include/zephyr.h`` |
| 59 | + * ``include/sys/ring_buffer.h`` |
| 60 | + * ``include/sys/atomic.h`` |
| 61 | + * ``include/usb/usb_device.h`` |
0 commit comments