Skip to content

Commit

Permalink
boards nrf52_bsim: Fix sample used as example
Browse files Browse the repository at this point in the history
Let's fix the sample used in the example. The peripheral_hr and
central_hr are meant to be run with each other.
Let's also use the :zephyr:code-sample: directive to refer to the
samples so we get a link.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
  • Loading branch information
aescolar authored and mmahadevan108 committed Nov 15, 2024
1 parent 8034de7 commit 24c2c43
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions boards/native/nrf_bsim/doc/nrf52_bsim.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ most Zephyr samples and tests.
When you want to run a simulation with radio activity you need to run also the
BableSim 2G4 (2.4GHz) physical layer simulation (phy).

For example, if you would like to run a simple case with 1 BLE ``central_hr``
sample application connecting to a BLE ``peripheral`` sample application:
Build the ``central_hr`` application targeting this board and copy the resulting
executable to the simulator bin folder with a sensible name:
For example, if you would like to run a simple case with a BLE :zephyr:code-sample:`ble_central_hr`
sample application connecting to a BLE :zephyr:code-sample:`ble_peripheral_hr` sample application:
Build the :zephyr:code-sample:`ble_central_hr` application targeting this board and copy the
resulting executable to the simulator bin folder with a sensible name:

.. zephyr-app-commands::
:zephyr-app: samples/bluetooth/central_hr
Expand All @@ -137,10 +137,10 @@ executable to the simulator bin folder with a sensible name:
$ cp build/zephyr/zephyr.exe \
${BSIM_OUT_PATH}/bin/bs_nrf52_bsim_samples_bluetooth_central_hr
Do the same for the ``peripheral`` sample app:
Do the same for the :zephyr:code-sample:`ble_peripheral_hr` sample app:

.. zephyr-app-commands::
:zephyr-app: samples/bluetooth/peripheral
:zephyr-app: samples/bluetooth/peripheral_hr
:host-os: unix
:board: nrf52_bsim
:goals: build
Expand All @@ -149,7 +149,7 @@ Do the same for the ``peripheral`` sample app:
.. code-block:: console
$ cp build/zephyr/zephyr.exe \
${BSIM_OUT_PATH}/bin/bs_nrf52_bsim_samples_bluetooth_peripheral
${BSIM_OUT_PATH}/bin/bs_nrf52_bsim_samples_bluetooth_peripheral_hr
And then run them together with BabbleSim's 2G4 physical layer simulation:

Expand Down

0 comments on commit 24c2c43

Please sign in to comment.