Skip to content

UU-EmbeddedSys/sensor-node

Repository files navigation

Sensor Node

Implementation of the sensor node using Zephyr. The project uses modules.

How to create a new module

Let's look how we created the drivers folder.

  • create the folder
  • inside the module folder create the zephyr folder (should be something like this my_module/zephyr)
  • inside the zephyr folder create module.yml
build:
  cmake: zephyr
  kconfig: zephyr/Kconfig
  • If any configuration are present, create the Kconfig file
  • In order to be linked by zephyr use these in the CMakeFile
  zephyr_include_directories(.)
  zephyr_library()
  zephyr_library_sources(your_source.c)
  • Enable the module can be done manually by adding it to the prj.conf
CONFIG_MY_MODULE=y
  • In your top CMakeFile.txt append your module to the Zephyr ones
  list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/my_module )

Debug Configuration

In the .vscode folder is present a launch.json file. This should work as it is, if not change the gdb that may have a different name.

OpenOCD

Before launching the debugger run OpenOCD in your terminal

openocd -f interface/picoprobe.cfg -f target/rp2040.cfg -s tcl

About

Sensor node implementation on a RPI Pico using Zephyr

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published