Skip to content
Browse files

nrf52_bsim: doc: Clarify how to fetch and compile BabbleSim

Clarify a little bit how to fetch and compile Babblesim.
So users will not need to have repo installed,
and to guide them to add the variables to their shell init

Signed-off-by: Alberto Escolar Piedras <>
  • Loading branch information...
aescolar authored and carlescufi committed Jul 22, 2019
1 parent ded4ba0 commit e6131a63ede8814e7dc23481e561256739ba58e8
Showing with 14 additions and 4 deletions.
  1. +14 −4 boards/posix/nrf52_bsim/doc/index.rst
@@ -53,14 +53,18 @@ Building and running
does not support native 32-bit binaries.

To target this board you need to have `BabbleSim`_ compiled in your system.
If you do not have it yet, you can fetch and build it in this way:
If you do not have it yet, in `its webpage <>`_
you can find instructions on how to
`fetch <>`_ and
`build <>`_ it.
In short, you can do:

.. code-block:: console

mkdir -p ${HOME}/bsim && cd ${HOME}/bsim
repo init -u -m everything.xml \
-b master
repo sync
curl > ./repo && chmod a+x ./repo
./repo init -u -m everything.xml -b master
./repo sync
make everything -j 8

Define two environment variables to point to your BabbleSim
@@ -72,6 +76,12 @@ If you followed the previous steps, you can just do:
export BSIM_OUT_PATH=${HOME}/bsim/
export BSIM_COMPONENTS_PATH=${HOME}/bsim/components/

.. note::

You can add these two lines to your ``~/.zephyrrc`` file, or to your shell
initialization script (``~/.bashrc``), so you won't need to rerun them
manually for each new shell.

You're now ready to build applications targeting this board, for example:

.. zephyr-app-commands::

0 comments on commit e6131a6

Please sign in to comment.
You can’t perform that action at this time.