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
7
votes
1 answer

Zephyr CMake error

When trying to build Zephyr for the first time I am getting this error message: CMake Error at CMakeLists.txt:1 (include): include could not find load file: /cmake/app/boilerplate.cmake -- The C compiler identification is GNU 5.4.0 -- The…
Sebastian Bøe
  • 479
  • 1
  • 3
  • 8
5
votes
2 answers

ZephyrOS: how to add driver module to out of tree project

I haven't found a definitive info on how to add a driver module to out-of-tree Zephyr project, so I will provide the answer by my own.
Andrejs Cainikovs
  • 27,428
  • 2
  • 75
  • 95
4
votes
0 answers

FastAPI: WebSocket connection close after ~40s

I try to ping/pong json packages between a FastAPI websocket endpoint and a client using the websocket library from Zephyr RTOS. Unfortunately the connection is closed by the FastAPI server after ~40 seconds. This time seems to be constant. My guess…
El tornillo
  • 437
  • 3
  • 16
4
votes
1 answer

Unit testing c++ code into Zephyr with googletest

We are starting to work with Zephyr and have decided to use C++. I am now trying to figure out how to unittest the code. As I understand ztest and unity which is already integrated into zephyr/nrfconnect doesn't support c++. I have decided to use…
Cyril Praz
  • 41
  • 2
4
votes
0 answers

How to enable Long Range for BLE Mesh in Zephyr OS

I’m working on Bluetooth mesh network solution and I have requirement to increase range. I’m using nrf52840 DK and nrf52840 dongles, nrf5SDKforMeshv310. In Nordic Devzone I found solution which, enables BLE long range mode in NRF SDK for mesh. NOTE!…
Felix
  • 51
  • 4
4
votes
1 answer

Why Zephyr RTOS from Linux Foundation uses Apache license?

Zephyr RTOS https://www.zephyrproject.org/ is a Linux Foundation project. And Linux is well-known for its GPL license. Why then Zephyr RTOS uses Apache 2 license? (How does it affect adopters/users of this new OS?)
pfalcon
  • 6,724
  • 4
  • 35
  • 43
3
votes
1 answer

How to boot 2 operating systems in a single QEMU instance?

I try to model a multicore CPU with a service core using QEMU. eg. A 3-core CPU where Linux runs on 2 cores, and an RTOS runs on the 3rd core. The communication should be based on shared memory. Currently I'm able to boot each OS separately.
segfault
  • 489
  • 4
  • 16
3
votes
1 answer

Hard fault RP2040 pico Zephyr

I'm using RP2040 under Zephyr and MCUboot. The final goal is to be able to update the firmware using MCUMGR over an UART bus. MCUboot use A/B seamless (dual slot memory) method to provide a safe update algorithm. When device reboot, MCUboot check if…
Thisora
  • 51
  • 4
3
votes
1 answer

How to use Zephry SPI driver directly?

I couldn't find any sample that uses SPI API directly from the application. Instead, there are many sensors that use SPI as a bus. Trying to write it from scratch, I've encountered a problem with getting the device binding to a spi-device node. I…
JD.
  • 455
  • 6
  • 15
3
votes
0 answers

Zephyr RTOS and i.MX RT1020 eval board accessing Arduino header pins via Device Tree

I'm thinking about doing a project using an NXP eval board with the RT 1020 processor. I want to experiment with and get familiar with Zephyr RTOS. How, in code, would I access the various Arduino header PINS with the given Device Tree snippet? …
Chimera
  • 5,884
  • 7
  • 49
  • 81
3
votes
3 answers

Bluetooth mesh for Raspberry Pi

Problem I am currently working on a Bluetooth communication library for Raspberry Pi. It only has to support simple messaging. The main requirement is that is it decentralized I therefore thought that Bluetooth mesh would be the best solution. I…
edym
  • 33
  • 1
  • 6
2
votes
1 answer

Zephyr RTOS: Enabling C++ Exceptions

I'm trying to enable C++ Exceptions for Zephyr (Version 3.2.99). The documentation only states, that CONFIG_EXCEPTIONS must be enabled. Where do I have to enable cpp exceptions, so that -fno-exceptions is not passed? I enabled it in the…
Tim
  • 21
  • 5
2
votes
0 answers

QEMU virtio-pci-pmem memory addresses over 4G

I want a persistent memory in a qemu 32bits machine that I can access directly from my code. My idea is to place a virtio-pci-pmem memory just after the RAM (at 0x400000) and reload the persistent memory file at the same address at each reboot. I…
2
votes
2 answers

Location of source file #include

I am trying to find the source file used in an example program (push button interrupt). I am not able to locate drivers/gpio.h I thought this source file would be ~/zephyrproject/zephyr/drivers/gpio/, but I am not seeing it there (see file list…
2
votes
0 answers

Visual Code Studio with C/C++ extension: How to disable warnings

I'm working with Zephyr OS in the Visual Code Studio IDE. Zephyr uses a lot of Macros but the C/C++ extension does not like that and throws Warnings. One example of a warning you can see here on the screenshot "The function call is not allowed in a…
1
2 3
9 10