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.
141
questions
0
votes
0
answers
17
views
Zephyr Driver Usage Example
I'm just getting started with Zephyr Development and getting accustomed to the device tree model. In particulat the ov2620 camera on the esp32 board. Basic applications work fine so I guess the setup ...
0
votes
0
answers
35
views
How to access linux host file system using Zephyr QEMU X86_64
I am trying to access my Linux host file system from Zephyr running in their QEMU X86_64 target to have easy file sharing.
Following this QEMU wiki, qemu -drive file=fat:rw:some/directory can be used ...
0
votes
1
answer
26
views
arm-zephyr-eabi-g++: error: unrecognized command-line option '-arch'; did you mean '-march='?
When we tried to build a Zephyr project in Mac Mini M2, we're getting this issue.
arm-zephyr-eabi-g++: error: unrecognized command-line option '-arch'; did you mean '-march='?
Tried setting,
set(...
0
votes
0
answers
11
views
Redirect zephyr LOGS statements to host stderr
When executing a zephyr app like a native_posix application is it possible
to have LOG statement redirected to stderr, while printk statements goes to stdout ?
-1
votes
0
answers
30
views
Seeed Xiao Ble Sense pin definition for internal IMU lsm6ds3tr
XIAO BLE SENSE PIN CONFIGURATION FOR INTERNAL IMU
I am facing a very strange issue. I have a seeed xiao ble sense board which has an nrf52840 microcontroller. I am trying to use internal IMU. As I ...
0
votes
0
answers
25
views
lsm6ds3tr IMU for XIAO BLE Sense in Nordic Connect SDK
I am very new to Nordic SDK and currently having a really hard time with Zephyr. I want to use the inbuilt IMU i.e., lsm6ds3tr_c. Zephyr does not have a driver for the sensor but so far all I could ...
0
votes
0
answers
57
views
zephyr RTOS (STM32) custom node not imported: undefined reference to `__device_dts_ord_xx`
This is definitely doable, because I have been able to do it on another PC, but on this PC that I am working, I have ran into issue, it seems that I have forgotten something, but I cannot be sure why.
...
0
votes
0
answers
24
views
Undefined reference in my Zephyr project is referenced [duplicate]
Im trying to create an application that connects to my wifi, but I did not get really far. Look at my small application (main.c):
#include <stdio.h>
#include <zephyr/kernel.h>
#include &...
1
vote
1
answer
26
views
Is it possible to relocate MergedGlobals to specific bss/data regions?
I am using the MPU to grant access to specific regions of memory. (Target is a microcontroller + zephyr-rtos, rust compiled as a static lib). The app crashes with an MPU Fault. I have traced the ...
0
votes
0
answers
35
views
How to implement event-driven transitions for a finite state machine using the state machine framework in zephyr OS?
I have been trying to program a finite state machine using the zephyr RTOS. I chose this framework because of its extensive libraries and its finite state machine framework. However there is not that ...
0
votes
0
answers
17
views
Zephyr: panic alarm after exiting a thread
I have a simple thread, created by
k_thread_create(&bme2380_thread,bme280_stack,K_THREAD_STACK_SIZEOF(bme280_stack),bme280_handler,
NULL, NULL, NULL, // some of these NULL's will be ...
0
votes
0
answers
43
views
Is it possible to use the Zephr coAP API in conjunktion with openThread?
We are currently in the process of figurine out how to implement a coAP Server on an
nrf5240. Since we have experience in developing the Zephyr, we wanted to use the coap library zephyr brings with it....
0
votes
1
answer
113
views
How do I check if zephyr-rtos is present with a preprocessor directive?
I need to port some legacy code to zephyr-rtos. I'm using the _GNUC_ preprocessor directive to switch some code.
#ifdef __GNUC__
// do new code
#else
// do legacy code
#endif
I would need ...
0
votes
1
answer
95
views
Devicetree overlay for STM32 DAC using Zephyr
I'm trying to use the DAC on PA4 of the STM32F4 Discovery board with Zephyr.
In order to do that, I have created the following dtoverlay file. I have tried a handful of different overlay ...
0
votes
0
answers
84
views
'west espressif update' returns a usage error
I am trying to set up zephyr on my esp32 by following this tutorial.
Unfortunaly, when I try west espressif update as it is written, I get the following error:
usage: west espressif [-h] [-b BAUD] [-p ...
0
votes
0
answers
319
views
fatal error: zephyr/kernel.h: No such file or directory when using adding add_executable() or add_library()
Update: I could not able to build the Zephyr Project when adding these lines in add_executable() or add_library().
My Project is a standalone project which means it is placed out of zephyr root ...
0
votes
0
answers
48
views
Wrong parameters when setting up sensor trigger
I'm trying to integrate accelerometer MCP6050 in my Zephyr project but I'm having some problem. sensor_trigger_set returns -88 which points to invalid argument. It's fairly basic trigger I think;
...
0
votes
0
answers
128
views
Using Ceedling with West
I'm trying to set up ceedling with a zephyr based repo. I have a very basic example minimal repo and minimal test setup. I can run individual tests successfully with cmake files and west build -p -b ...
0
votes
1
answer
133
views
Strange build errors with Zephyr and GPIO
I've hooked a led and resistor to GPIO33 and trying to get it to blink. I'm new to Zephyr and trying to learn GPIO and overlay, so I made my own overlay:
/ {
leds {
compatible = "gpio-...
0
votes
0
answers
439
views
Zephyr OS runtime memory usage
There is only a ram report to analyzing the Zephry application,
but it looks like there is no shell command or method to check the runtime memory usage on Zephyr OS,
Does anyone know how to check the ...
2
votes
1
answer
191
views
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-...
0
votes
0
answers
26
views
How to raise jira ticket automatically based on Zephyr test case failed
I am new to Zephyr.
I have a requirement where I need to raise a jira tickets automatically when a test case failed in Zephyr .
Could any one suggest how to do this.
0
votes
1
answer
190
views
Enable WiFi Drivers for Esp32 board in zephyr
I am using the wifi sample app from zephyr,
https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/net/wifi
I tried to build this application for esp32 board by setting the below lines in ...
0
votes
0
answers
78
views
How to integrate Espressif Hal Module in Zephyr Build?
As I am very new to Zephyr Build System as well as embedded programming, Someone might help me to know the exact steps need to taken care for integrating espressif hal modules in zephyr build system.
...
0
votes
1
answer
82
views
Is it possible to use the nrf native_posix board on windows?
I have a project built for an nrf board. The project uses zephyr os. Right now we're developing on windows. We'd like to add unit testing with unity/cmock. I've been looking in to the nrf documents ...
0
votes
0
answers
149
views
`region 'RAM' overflowed` error when using lvgl for a Zephyr project
I am getting region 'RAM' overflowed errors when building a Zephyr project using lvgl 8.3 using nRF Connect for VS Code add-in. I see a lot of references to lvgl when building, such as:
[352/429] ...
0
votes
0
answers
42
views
CLion changes Project Folders after loading CMake.txt
I want to develop an application with Zephyr RTOS in CLion. For that I opened the Hello World sample. Then I configured in the CLion Settings CMake: CMake Settings in CLion but after pressing apply my ...
0
votes
1
answer
163
views
How to use I/O pins on the STM32L496G-Disco board using Zephyr
Hi I have a few sensors that I've wired up on a breadboard, and I want to connect one to a simple GPIO RX pin and another to a pair of UART RX/TX lines on a STM32L496G-Disco board. I'm utilizing ...
0
votes
0
answers
89
views
expression must have a constant value on BT_GATT_SERVICE_DEFINE
I was following this demo and trying to set up BT_GATT_SERVICE_DEFINE on VSCode using nRF Connect and adapt it for the nRF52 DK (52832) I keep getting the following error:
expression must have a ...
0
votes
0
answers
61
views
PyOCD package manager is not able to update list
I'm trying to add package stm32wl to Zephyr but Im having problems with pyocd.
pyocd pack --install stm32wl
0001491 W No matching devices. Please make sure the pack index is up to date. [pack_cmd]
...
0
votes
1
answer
863
views
Cannot get device binding in Zephyr
I want to get a device binding using the device name, but for some reason, it fails when I use just a node id. When I use the "full" node id it works.
Here is my code
#include <zephyr/...
0
votes
1
answer
473
views
Unable to use Zephyr header files
Greetings of the day!
I'm new to Zephyr and CMakeLists.txt I'm trying to include Zephyr header files in my project, so I downloaded Zephyr and keeping inside my project to include Zephyr to my project ...
0
votes
0
answers
81
views
Zephyr BLE Server Read Request
I am trying to write BLE code for the server side of a connection and am having issues with dealing with read request from the client. Ideally what I want to do is when the client sends a read ...
0
votes
0
answers
335
views
zephyr pin control on device tree
I'm trying to create an overlay with for a pwm output for a pin in zephyr rtos , the overlay has pinctrl-1 and a pinctrl-name for pin configuration ,however a .dts file was already define with ...
0
votes
1
answer
81
views
I need to initialize and start the PLLI2S for MCO2 output at 50Mz for eth ref clock at boot, is there a good way to do it?
Im new to Zephyr. Im using a STM32F429xx MCU where we want to use MCO2 to output a 50Mhz clock for eth reference clock. If i run the syslock at 150Mhz and use that for MCO2 with a div3 it works fine. ...
1
vote
0
answers
184
views
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 ...
0
votes
0
answers
155
views
Bluetooth Mesh provision between bluez and zepyhr failed
I am trying to open a bluetooth mesh network with my Raspberry Pi and a Qorov DWM3001CDK dev board where I run a Zepyhr RTOS.
I like to work with Python to do that so I got the bluetooth-mesh package ...
1
vote
0
answers
103
views
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 ...
0
votes
0
answers
229
views
Intellisense always "Loading" in VS Code on Zephyr project in MacOS
At some point in the last year (because it was working at some point), the Visual Studio Code setup I use to edit a firmware project based on Zephyr ( https://zephyrproject.org/ - the actual project ...
0
votes
0
answers
127
views
Porting Zephyr to a new CPU/SOC/SOC series
I want to port Zephyr to my soc , which is based on ARM-M4 but customised and based on Zephyr's documentation, I have to port SOC Family, SOC Series , SOC , Board. So I have started off with a ...
0
votes
0
answers
37
views
MAX9867 Not redirecting MICLP input to LOUTP
I'm having problems configuring max9867 as a direct output without going through I2C. I perform the settings of the following registers. I'm using zephyr as rtos.
[00:00:01.709,625] <dbg> ...
1
vote
1
answer
622
views
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 ...
0
votes
0
answers
101
views
How can I run one task without finishing another in vscode?
i'm developing embedded firmware on zephyr RTOS. Zephyr env. works on WSL2. And "Vscode remote client" works in Win10 "Vscode Server" works on Ununtu 22.04.
I use Jlink debbugger ...
3
votes
1
answer
93
views
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.
...
0
votes
0
answers
41
views
Need to understand the ML model deployment through MicroMutableOpResolver
I am new to tensorflow lite, and I have noticed that many examples are using static tflite::MicroMutableOpResolver < > micro_op_resolver;
So, my question is: how many layers can we add here when ...
0
votes
1
answer
416
views
Zephyr-RTOS logging with DMA on STM32L432KC
I'm trying to run Zephyr Logging by using DMA on UART on STM32L432KC.
That's simple main loop:
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(example, ...
0
votes
0
answers
335
views
Synchronized PWMs from two different Timers on ZephyrRTOS (STM32h7)
I'm working on a C Project for University where I need to measure a Laser with a TCD1304 CCD-Sensor.
Therefore I am using Zephyr as OS on an STM32-H7(A3ZI-Q).
Since the TCD1304 has to receive ...
0
votes
0
answers
137
views
Disable or Exclude Device Tree (DTS) in Zephyr OS Build
we are just using the West tool to build an application in Zephyr OS, it seems the build process is quite dependent on DTS.
We would like to use only Zephyr Kernel Core, and we would like to use our ...
2
votes
0
answers
125
views
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 ...
3
votes
1
answer
489
views
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 ...