Questions tagged [zephyr-rtos]

The Zephyr Project is a scalable real-time operating system (RTOS) supporting multiple hardware architectures, optimized for resource constrained devices, and built with security in mind.

The Zephyr Project is an open source collaborative effort hosted by the Linux Foundation to build scalable real-time operating system optimised for resource constrained devices (e.g. embedded systems) across multiple architectures [1]. The project's goal is to establish a neutral project where anyone can contribute technology to reduce the cost and time to market for the billions of IoT devices [2].

  1. https://www.zephyrproject.org/what-is-zephyr/
  2. https://www.zephyrproject.org/what-is-zephyr/
138 questions
0
votes
0 answers

Dealing with include files in C / zephyr-rtos

I have a little project where I want to use the ESP32's ADC, and I want to use zephyr as my RTOS. I am using one of the examples provided by the ESP-IDF to set the register and read input from the ADC pins. This example works if I use the idf.py…
CKiamy
  • 1
  • 1
0
votes
1 answer

How to interpret this Xtensa exception info?

I am debugging on a Xtensa board. But I don't have enough knowledge or reference materials to interpret below exception info. Could anyone familiar with Xtensa arch shed some light? Or point me to the docs explaining the Xtensa registers. I only…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
0
votes
1 answer

Zephyr Porting to an SoC based on already supported CPU

Is there any video or pdf tutorial which shows step by step guide on how to do Zephyr porting to a new SoC. I know there is a page on Zephyr website, https://docs.zephyrproject.org/latest/hardware/porting/arch.html#architecture-porting-guide but…
0
votes
1 answer

Convert string literal to token using Zephyr API

An example of a property I have defined in my bindings.yaml is this: parity: type: string required: false default: "NONE" description: Sets the necessary UART parity required by the sensor. enum: - "NONE" - "ODD" - "EVEN" -…
0
votes
1 answer

How to access the child nodes in a device tree (DTS) in Zephyr using DT_FOREACH_CHILD

I'm developing an application for an nRF52 SoC to access some external devices, kind of detectors in this case, so I have defined a custom format (and its corresponding yaml file) for my device access description node. It is kind of: n: detectors { …
V.Lorz
  • 293
  • 2
  • 8
0
votes
0 answers

Arch Linux CMake looking in wrong directory for `libxml2` dependencies

I running Arch Linux and I have the latest libxml2 package installed through pacman. When I try to build my Zephyr project with CMake I run into this error: /usr/include/libxml2/libxml/encoding.h:31:10: fatal error: unicode/ucnv.h: No such file or…
Voxorin
  • 89
  • 10
0
votes
0 answers

GPIO Configuration Issue Zephyr RTOS+PlatformIO+STM32

This is probably a dumb question but I need some help : I'm trying to simply blink an LED on my STM32L073 board. The LED is connected to the PB6 pin here's my code : #include #include #include #include…
0
votes
1 answer

How can one debug a Zephyr RTOS application which crashes only with the debugger detached?

I have a custom board using the u-blox BMD-350 (Nordic nRF52382) chipset (as well as the u-blox development board, the problem occurs on both). I'm using Nordic's Connect SDK version 1.9.0 which uses Zephyr RTOS version v2.7.99-ncs1. Development…
Anthony
  • 2,256
  • 2
  • 20
  • 36
0
votes
1 answer

NRF SDK 1.8 - CONFIG_BOOTLOADER_MCUBOOT makes fail build process

I want to use fota library, i enabled MCUBOOT but my program won't build after that. I'm using NRF SDK 1.8 with Zephyr 2.7.0 That's what i get : Traceback (most recent call last): File…
MCh
  • 1
0
votes
1 answer

Timer or Delayed work which is more accurate in Zephyr OS?

In Zephyr Operating System, I have to write an application, which will update a variable (can be treated as a counter) every 30ms. Basically I have 2 options A timer which expires every 30ms and update the variable in the ISR A delayed work which…
Prajosh Premdas
  • 970
  • 4
  • 17
  • 40
0
votes
2 answers

Zephyr - K_FIFO Crash

I have a strange error in the k_fifo-useage: Basis is the project "peripheral uart" from nordic I want to answer on specific commands send via bluetooth static void bt_receive_cb(struct bt_conn *conn, const uint8_t *const data, uint16_t…
0
votes
1 answer

Is it possible to have arbitrary data in a zephyr device tree node?

I'd like to use the device tree to store some system level constants. Is it possible to store and retrieve arbitrary values from the device tree? Attempting to load these values fails to compile as build/zephyr/include/generated/devicetree_unfixed.h…
Chris Morgan
  • 1,277
  • 1
  • 13
  • 33
0
votes
1 answer

Building multiple binaries in CMake from Zephyr RTOS project, each with different device address

I have a project that consists of nodes in a mesh, that will communicate between each other wirelessly and will identify each other with a use of addresses. Nodes will be equivalent in their responsibilities so the source code for each them will be…
konin
  • 53
  • 4
0
votes
0 answers

Conflicting of setjmp/longjmp function and ISR in RTOS

Introduction Lua implements co-routine based on setjmp/longjmp functions. I found some problems during porting lua to these RTOS environment: 1. Zephyr RTOS: Failed Heading MISRA C 2012 Rule 21.4 pointed: The standard header file shall…
0
votes
0 answers

Zephyr OS LLVM IR

I want to get the LLVM IR of the zephyr os (https://github.com/zephyrproject-rtos/zephyr) for static analysis. For this I need to get the IR for each file basically. But as pointed out each file cannot be compiled directly as zephyr requires a board…
kratos
  • 11
  • 1