diff --git a/doc/connectivity/bluetooth/autopts/autopts-win10.rst b/doc/connectivity/bluetooth/autopts/autopts-win10.rst index 2ea859232c0..54b609ef1fd 100644 --- a/doc/connectivity/bluetooth/autopts/autopts-win10.rst +++ b/doc/connectivity/bluetooth/autopts/autopts-win10.rst @@ -69,94 +69,7 @@ drivers from installation directory Setup Zephyr project for Windows ================================= -Brief of setup `Getting Started Guide `_: - -Open Git Bash and go to home: - -.. code-block:: - - cd ~ - -Install west: - -.. code-block:: - - pip3 install west - -Get the Zephyr source code: - -.. code-block:: - - west init zephyrproject - -Go into freshly created folder: - -.. code-block:: - - cd zephyrproject - -Run: - -.. code-block:: - - west update - -Export a Zephyr CMake package. This allows CMake to automatically load -boilerplate code required for building Zephyr applications: - -.. code-block:: - - west zephyr-export - -Zephyr’s scripts/requirements.txt file declares additional Python -dependencies. Install them with pip: - -.. code-block:: - - pip3 install -r ~\zephyrproject\zephyr\scripts\requirements.txt - -Setup WSL with Ubuntu -============================ - -Install Ubuntu 20.4 on `WSL `_. - -When finished, perform the Ubuntu setup from `Getting Started Guide `_, -but skip west init and west update commands, as you can use the previously downloaded -Zephyr source code at mounted Windows folder /mnt/c/Users//zephyrproject. -Skip install of udev rules also, because we won't flash the board from wsl. - -Remember to run: - -.. code-block:: - - cd /mnt/c/Users//zephyrproject - west zephyr-export - pip3 install --user -r zephyr/scripts/requirements.txt - -Restart the Ubuntu machine. You may want to shutdown all WSL consoles from -Windows's Git Bash: - -.. code-block:: - - wsl --shutdown - -After Ubuntu restart, go to: - -.. code-block:: - - cd /mnt/c/Users//zephyrproject - -and test if west can build: - -.. code-block:: - - west build -p auto -b nrf52840dk_nrf52840 zephyr/tests/bluetooth/tester/ - -From now on, you can build projects by typing in Windows's Git Bash: - -.. code-block:: - - wsl -d Ubuntu-20.04 -u -- bash -c -i "cd /mnt/c/Users//zephyrproject/ ; west build -p auto -b nrf52840dk_nrf52840 zephyr/tests/bluetooth/tester/" +Perform Windows setup from `Getting Started Guide `_. Install nrftools ================= @@ -199,6 +112,12 @@ In Git Bash, go to zephyrproject cd ~/zephyrproject +Build the auto-pts tester app + +.. code-block:: + + west build -p auto -b nrf52840dk_nrf52840 zephyr/tests/bluetooth/tester/ + You can display flashing options with: .. code-block::