Skip to content

Example out-of-tree application that is also a module. Without all features an application can contain.

Notifications You must be signed in to change notification settings

borrelunde/zephyr-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Run Command Prompt.

Go to the directory where you would like your Zephyr project to be.

cd <path\to\zephyr-projects>

Create a new virtual environment.

python -m venv zephyr-project\.venv

Activate the virtual environment.

zephyr-project\.venv\Scripts\activate.bat

Once activated your shell will be prefixed with (.venv). The virtual environment can be deactivated at any time by running deactivate.

Install west.

pip install west

Initialize the workspace and get the Zephyr source code.

west init -m https://github.com/borrelunde/zephyr-application --mr master zephyr-project
cd zephyr-project
west update

Export a Zephyr CMake package. This allows CMake to automatically load boilerplate code required for building Zephyr applications.

west zephyr-export

Zephyr's scripts\requirements.txt file declares additional Python dependencies. Install them with pip.

pip install -r zephyr\scripts\requirements.txt

Enter the application directory.

cd zephyr-application

Build the application. You can replace the board name nrf52840dk_nrf52840 with a board of your liking.

west build -b nrf52840dk_nrf52840 app

Flash the application to the board.

west flash

About

Example out-of-tree application that is also a module. Without all features an application can contain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published