Skip to main content

Setup Tools

Zephyr Tools​

Zephyr is an open-source RTOS for embedded application development.

West​

West is the main project management tool for Zephyr. Each project is based on a manifest that describes the dependencies required for the project, and West facilitates deploying and updating them.

West makes it easy to compile the project and flash the board.

note

The manifest adding support for 6TRON boards is available in this repository.

CMake​

Zephyr uses CMake as its build generation system. CMake is a build file generation tool that allows for configuring, compiling, and generating executables for different development environments.

Kconfig​

Kconfig is a configuration system used by Zephyr to manage project configuration options. It allows developers to customize the features, drivers, and settings of the Zephyr project using a command-line interface or a graphical interface.

Device Tree​

The Device Tree is a structured representation of hardware used by Zephyr to configure devices and hardware resources. It describes the hardware configuration of a specific board independently of the source code, making it easier to port Zephyr applications to different hardware platforms.

Install Zephyr tools​

To install Zephyr tools, follow the instructions on the official website.

note

A Zephyr project is based on a manifest, which describes the modules required for the project.

6TRON provides a manifest file for Zephyr projects, which provides support for 6TRON boards.

This manifest is available in this 6TRON GitHub repository.

Debug probe​

To debug with a SEGGER J-Link probe, install the drivers for your OS from the official website.

Install the downloaded .deb file:

sudo dpkg -i JLink_Linux_Vxxx_x86_64.deb

Build the blinky example​

Deploy the 6TRON Zephyr workspace​

Build the official Zephyr blinky example:

note

Les références ci-dessous doivent être modifiées en fonction de la carte utilisée :

  • ZEST_CORE_BOARD : nom de la carte (par exemple zest_core_stm32l4a6rg)

Initialize a Zephyr OS workspace with 6TRON board support:

west init -m https://github.com/catie-aq/6tron_zephyr-workspace 6tron-workspace

Update the workspace:

cd 6tron-workspace
west update

Build​

Build the blinky example:

west build -b ZEST_CORE_BOARD zephyr/samples/basic/blinky

Flash the board​

Connect to the board with a SEGGER J-Link probe.

Flash the board using west:

west flash