Skip to content

Commit 24c2c43

Browse files
aescolarmmahadevan108
authored andcommitted
boards nrf52_bsim: Fix sample used as example
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]>
1 parent 8034de7 commit 24c2c43

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

boards/native/nrf_bsim/doc/nrf52_bsim.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ most Zephyr samples and tests.
120120
When you want to run a simulation with radio activity you need to run also the
121121
BableSim 2G4 (2.4GHz) physical layer simulation (phy).
122122

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

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

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

0 commit comments

Comments
 (0)