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

Adding External Library to Zephyr

Context: I am trying to add an external library which uses CMake to my Zephyr project. I have explored the modules documentation, but this does not seem a good fit as I am unable to modify the upstream library and would like to avoid forking. To add…
Cole Murray
  • 546
  • 6
  • 12
2
votes
0 answers

Zephyr - event driven firmware

I have a question on how to structure an event driven firmware using Zephyr RTOS. It's a general question which way should be used. Or maybe I am completely wrong? The application isn't time critical. Case A: Using features as k_work, k_timer,…
Manu
  • 922
  • 6
  • 16
2
votes
2 answers

GDB tool on zephyr

I am working a project on zephyr OS and I want to debug my code. Does anyone know how to use GDB debugging tool with west flash or build? Generally to combine it with zephyr west in order to start debugging.
gregni
  • 417
  • 3
  • 12
2
votes
0 answers

How to change an interrupt input to an analog input and back again, in Zephyr?

I am new to Zephyr and I try to get all my embedded software things over to Zephyr. I tried the Zephyr documentation and a lot of googling, but it is hard to figure out how to do this. I try to get to know how the "Device Tree" work, and how to use…
joett
  • 21
  • 2
2
votes
1 answer

How to add application unit-tests in zephyr-rtos project

How would like to start a new application using Zephyr RTOS, including unit-tests for the application sources. I have seen that Zephyr provides a test-framework z-test and a test runner sanitycheck. My goal is to separate production code from the…
LaMontagne
  • 55
  • 4
2
votes
1 answer

How to get system time in Zephyr RTOS?

I'm looking for ways to get current system time displayed in Zephyr RTOS(2.0) from user-space area. I'm using gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu tool-chain. Something similar to 'localtime' supported in GCC.
Ajay
  • 65
  • 1
  • 10
2
votes
1 answer

OpenSSL server packets get fragmented into 270 bytes per packet

Problem I'm trying to analyze the DTLS 1.2 handshake (over IPv6) with OpenSSL s_server and s_client by capturing it with Wireshark. The handshake works as intended but the server packets get fragmented into an extremely small size (270 bytes) for…
afemis
  • 23
  • 4
2
votes
1 answer

Zephyr OS: General BLE API

I am trying to write a little Zephyr OS runtime system that uses BLE to communicate between my two nrf52840dk boards. I have spent the past couple of days reading up on BLE and have gotten acquainted with GATT servers/clients. The API I would…
Robert
  • 165
  • 10
2
votes
1 answer

static declaration of ‘close’ follows non-static declaration static inline int close(int sock)

I have been developing in c for around 6 months and I am very confused about what is going on here at all. I am getting this error when trying to include socket.h header files. static inline int close(int sock) { return…
2
votes
2 answers

Does Zephyr OS needs any BIOS or UBOOT

Does the Zephyr OS(version 1.9) needs any BIOS or UBOOT for booting? Since I am new to this please provide booting process of zephyr RTOS
Antony
  • 51
  • 2
1
vote
0 answers

Cannot communicate with ov2640 sensor on ESP32Cam using ZephyrOS

I've been trying to use Zephyr RTOS and ov2640 cam sensor. I've found the implementation that allows to use this sensor but using espressif SDK, however, I would like to try this using Zephyr. In general, there is an ov2640 driver sensor available…
bielu000
  • 1,826
  • 3
  • 21
  • 45
1
vote
0 answers

Is it possible to share modules and files with multiple Lua states to reduce memory usage?

Setup I am using an STM32 microcontroller with Zephyr-RTOS. Lua is running in multiple different threads and each thread has its own Lua state. Problem The problem is that all VMs need the same modules. Each module is then multiple times in RAM, and…
Max
  • 27
  • 5
1
vote
1 answer

My GPIOs in the overlay file are not defined in devicetree_generated.h, zephyr fails

I am trying to use Zephyr (v.3.2.99) for a small application on the nRF52840 Dev Kit. I set up an overlay file nrf52840dk_nrf52840.overlay that is being read and processed by cmake. I get the devicetree_generated.h but it lacks the definition of…
jfarjona
  • 144
  • 1
  • 7
1
vote
1 answer

How to check if a zephyr thread crashed?

I start a thread in zephyr like this: K_THREAD_DEFINE(my_name, STACKSIZE, my_func, NULL, NULL, NULL, PRIORITY, 0, 0); but it does crash after some time. How do I check it's status to restart it when it crashed?
f.b.
  • 490
  • 1
  • 5
  • 17
1
vote
1 answer

Zephyr USB device string descriptors definition

the question is about USB device implementation in Zephyr OS. We need to add interface string descriptor for ineterface name. Using USBD_STRING_DESCR_DEFINE(primary) I've added that to string descriptor section, but it has index "0" - that's wrong…
Dmitry Kr
  • 11
  • 1
1
2
3
9 10