Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 907c2542 authored by Jason Kridner's avatar Jason Kridner
Browse files

Update zephyr-cc1352-development.rst

parent 4c8e6ac6
Branches
Tags
1 merge request!40Merge BeaglePlay and latest BeagleConnect documentation
...@@ -42,65 +42,65 @@ Setup Zephyr development on BeaglePlay ...@@ -42,65 +42,65 @@ Setup Zephyr development on BeaglePlay
#. Download and setup Zephyr for BeaglePlay #. Download and setup Zephyr for BeaglePlay
.. note:: .. note::
Currently, https://git.beagleboard.org/beagleplay/zephyr-beagle-cc1352 isn't public, so you'll need Currently, https://git.beagleboard.org/beagleplay/zephyr-beagle-cc1352 isn't public, so you'll need
to replace that with git@git.beagleboard.org:beagleplay/zephyr-beagle-cc1352 to replace that with git@git.beagleboard.org:beagleplay/zephyr-beagle-cc1352
.. note:: .. note::
Currently, the active branch is `patches-for-cc1352p7`, not `sdk`. I plan to make `sdk` a slightly Currently, the active branch is `patches-for-cc1352p7`, not `sdk`. I plan to make `sdk` a slightly
cleaner version. cleaner version.
.. code-block:: bash .. code-block:: bash
cd cd
sudo apt update sudo apt update
sudo apt install --no-install-recommends -y \ sudo apt install --no-install-recommends -y \
beagleconnect beagleconnect-msp430 \ beagleconnect beagleconnect-msp430 \
git vim \ git vim \
xz-utils file wget \ xz-utils file wget \
build-essential \ build-essential \
cmake ninja-build gperf \ cmake ninja-build gperf \
ccache dfu-util device-tree-compiler \ ccache dfu-util device-tree-compiler \
make libsdl2-dev \ make libsdl2-dev \
libxml2-dev libxslt-dev libssl-dev libjpeg62-turbo-dev libmagic1 \ libxml2-dev libxslt-dev libssl-dev libjpeg62-turbo-dev libmagic1 \
libtool-bin pkg-config autoconf automake libusb-1.0-0-dev \ libtool-bin pkg-config autoconf automake libusb-1.0-0-dev \
python3-dev python3-pip python3-setuptools python3-tk python3-wheel python3-serial python3-dev python3-pip python3-setuptools python3-tk python3-wheel python3-serial
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.15.1/zephyr-sdk-0.15.1_linux-aarch64_minimal.tar.gz wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.15.1/zephyr-sdk-0.15.1_linux-aarch64_minimal.tar.gz
tar xf zephyr-sdk-0.15.1_linux-aarch64_minimal.tar.gz tar xf zephyr-sdk-0.15.1_linux-aarch64_minimal.tar.gz
./zephyr-sdk-0.15.1/setup.sh -t arm-zephyr-eabi -c ./zephyr-sdk-0.15.1/setup.sh -t arm-zephyr-eabi -c
west init -m https://git.beagleboard.org/beagleplay/zephyr-beagle-cc1352 --mr sdk zephyr-beagle-cc1352-sdk west init -m https://git.beagleboard.org/beagleplay/zephyr-beagle-cc1352 --mr sdk zephyr-beagle-cc1352-sdk
cd $HOME/zephyr-beagle-cc1352-sdk cd $HOME/zephyr-beagle-cc1352-sdk
west update west update
west zephyr-export west zephyr-export
pip3 install -r zephyr/scripts/requirements-base.txt pip3 install -r zephyr/scripts/requirements-base.txt
echo "export ZEPHYR_TOOLCHAIN_VARIANT=zephyr" >> $HOME/.bashrc echo "export ZEPHYR_TOOLCHAIN_VARIANT=zephyr" >> $HOME/.bashrc
echo "export ZEPHYR_SDK_INSTALL_DIR=$HOME/zephyr-sdk-0.15.1" >> $HOME/.bashrc echo "export ZEPHYR_SDK_INSTALL_DIR=$HOME/zephyr-sdk-0.15.1" >> $HOME/.bashrc
echo "export ZEPHYR_BASE=$HOME/zephyr-beagle-cc1352-sdk/zephyr" >> $HOME/.bashrc echo "export ZEPHYR_BASE=$HOME/zephyr-beagle-cc1352-sdk/zephyr" >> $HOME/.bashrc
echo "export PATH=$HOME/zephyr-beagle-cc1352-sdk/zephyr/scripts:$PATH" >> $HOME/.bashrc echo "export PATH=$HOME/zephyr-beagle-cc1352-sdk/zephyr/scripts:$PATH" >> $HOME/.bashrc
echo "export BOARD=beagleplay" >> $HOME/.bashrc echo "export BOARD=beagleplay" >> $HOME/.bashrc
source $HOME/.bashrc source $HOME/.bashrc
#. Verify Zephyr setup for BeaglePlay #. Verify Zephyr setup for BeaglePlay
.. code-block:: shell-session .. code-block:: shell-session
debian@BeaglePlay:~$ cmake --version debian@BeaglePlay:~$ cmake --version
cmake version 3.22.1 cmake version 3.22.1
CMake suite maintained and supported by Kitware (kitware.com/cmake). CMake suite maintained and supported by Kitware (kitware.com/cmake).
debian@BeaglePlay:~$ python3 --version debian@BeaglePlay:~$ python3 --version
Python 3.9.2 Python 3.9.2
debian@BeaglePlay:~$ dtc --version debian@BeaglePlay:~$ dtc --version
Version: DTC 1.6.0 Version: DTC 1.6.0
debian@BeaglePlay:~$ west --version debian@BeaglePlay:~$ west --version
West version: v0.14.0 West version: v0.14.0
debian@BeaglePlay:~$ ./zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc --version debian@BeaglePlay:~$ ./zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc --version
arm-zephyr-eabi-gcc (Zephyr SDK 0.15.1) 12.1.0 arm-zephyr-eabi-gcc (Zephyr SDK 0.15.1) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc. Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Build applications for BeaglePlay CC1352 Build applications for BeaglePlay CC1352
...@@ -108,6 +108,13 @@ Build applications for BeaglePlay CC1352 ...@@ -108,6 +108,13 @@ Build applications for BeaglePlay CC1352
Now you can build various Zephyr applications Now you can build various Zephyr applications
.. note::
Currently, https://git.beagleboard.org/beagleplay/micropython isn't public, so you'll need
to replace that with git@git.beagleboard.org:beagleplay/micropython
#. Build and flash Blinky example #. Build and flash Blinky example
.. code-block:: bash .. code-block:: bash
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment