Skip to content

Latest commit

 

History

History

02_devicetree_basics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Devicetree from first principles

This Zephyr freestanding application is used in the third article of the "Practical Zephyr" series. The application itself is just a dummy, the important files are the Devicetree overlay files to demonstrate the basic Devicetree types used by Zephyr:

The following command can be used to build the application for Nordic's nRF52840 development kit:

west build --board nrf52840dk_nrf52840 --
    -DEXTRA_DTC_OVERLAY_FILE="dts/playground/props-phandles.overlay;dts/playground/props-basics.overlay"

The goal of this application is only demonstrating the basic Devicetree syntax and types: No code is generated for the corresponding nodes, the only output is build/zephyr/zephyr.dts. The next demo application shows Devicetree bindings, which leads to the generation of the corresponding macros.

Note: The tasks.py script is used by the GitHub action for building this application using invoke.