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

Zephyr / PlatformIO / CMake / external code

I'm pretty new to Zephyr and am having trouble adding and compiling code in a sibling folder. This may be further complicated by using PlatformIO, which has a slightly different build structure than the stock Zephyr structure. The IDE is Visual…
Austin
  • 1,018
  • 9
  • 20
0
votes
1 answer

Zephyr build error when trying to switch board target

I am trying to build zephyr sample code that is meant for board A for board B (i.e. build was written for code A but I need to change it so that it works with board B). I keep coming across this error and I am not sure how to get past it. I have…
PurpleSpark
  • 63
  • 1
  • 10
0
votes
1 answer

Zephyr cmake error `string sub-command REGEX, mode MATCH needs at least 5 arguments total to command.`

Hi I'm trying to run the getting started guide, but I'm having issues, I'm currently on the zephyr directory and I want to run the example, so I try west build -p auto -b qemu_x86 samples/basic/blinky but it gives instead -- west build: generating a…
Rainb
  • 1,965
  • 11
  • 32
0
votes
1 answer

Zephyr AWS IOT Sample Application

I have an embedded application running on Zephyr OS I want to push the sensor data on AWS IOT, there is no sample application for AWS in Zephyr, but there are for Azure and Google IOT Can anyone guide me in writing a sample application using AWS IOT…
md.jamal
  • 4,067
  • 8
  • 45
  • 108
0
votes
0 answers

Zephyr error using llvm, works fine with default toolchain

I'm building for board nrf52833_pca10100 and nrf52840_pca10056. changed toolchain by: export ZEPHYR_TOOLCHAIN_VARIANT=llvm I have llvm-8-dev, clang, clang-8 installed through apt. for ZEPHYR_TOOLCHAIN_VARIANT=zephyr, sample/basic/blinky can build…
Anarchira
  • 13
  • 7
0
votes
1 answer

Building tinycbor module with Zephyr

I'm attempting to test use of tinycbor in the zephyr hello_world application sample in Zephyr 2.1.0. I've added the flags below to prj.conf and make succeeds. However, it does not appear to be pulling in any of the tinycbor sources and any…
Glenn
  • 1,996
  • 2
  • 24
  • 32
0
votes
1 answer

Using C++11 with move semantics - without the standard library (and with Boost.smart_ptr)

I’m working on embedded projects, using Zephyr RTOS with ARM embedded microcontrollers like STM32 Nucleo series (Cortex M4/0). Recently, due to significant C++ support improvements in the recent versions of Zephyr, I’m considering to move from C…
0
votes
1 answer

Linker Script Always Interprets Variables as Zero?

There are a lot of logs and other stuff below, so to skip to the punchline: I have a linker script and am setting variables within it, and using these variables to set up memory sections. But it seems like these variables are always being set to 0…
riley lyman
  • 317
  • 1
  • 11
0
votes
1 answer

ld.lld command failed when build the hello_world sample in zephyr using clang6.0

I want to build samples/subsys/power/device_pm using clang6.0 so I do as follows: export ZEPHYR_TOOLCHAIN_VARIANT=llvm mkdir build and cd build cmake -DBOARD=reel_board .. make Then, I got some errors: [ 95%] Linking C executable…
Tuo Li
  • 3
  • 1
0
votes
0 answers

Zephyr application build fail

I am trying to build my Zephyr application for NRF52 but have an error It seems that the compiler has a problem with the include: #include "cbor.h" I updated my CMakeLists.txt with the relevant library location I appreciate any ideas regarding this…
0
votes
1 answer

How to implement MQTT on Zephyr OS with cellular devices?

I am a beginner on Zephyr OS and wanted to know if it is possible to implement MQTT on Zephyr OS with Cellular Devices like SIM800 or Quectel BG96 that usually work on UART and support TCP protocol which is the base of MQTT. I looked through the…
RishabhHardas
  • 495
  • 1
  • 5
  • 25
0
votes
3 answers

How to override -nostdinc for GCC

I try to cross-compile for STM32 arm-none-eabi using zephyrproject.org. Zephyr adds -nostdinc flag to every C/C++ file. I cannot find how to override this without fixing build system sources. Need option like -stdinc (unrecognized). Is there any?
kyb
  • 7,233
  • 5
  • 52
  • 105
0
votes
1 answer

Compiling C file from vim in a "path agnostic" way

Suppose I launch vim from a large project root folder and want to compile a specific example (I ll use zephyr RTOS for example). This root folder is located under /home//zephyr/ Let's say I run vim samples/basic/blinky/src/main.c. Now if I…
oscillo
  • 3
  • 2
0
votes
1 answer

Zephyr OS boot and flash

I tried to flash my application to Carbon 96 board (successfully). Booting guide created bin and elf files but not image file. How do i make a boot able file ? What are the required files to flash ? Is there any boot image file for zephyr? Can I…
NewZephyr
  • 11
  • 3
-2
votes
1 answer

How are pins defined for sensors in embedded C?

I have a Nordic nRF52840DK board that needs to be connected to an LSM6DSL accelerometer. I am using the Zephyr RTOS and the sample code from Zephyr is shown below: /* * Copyright (c) 2018 STMicroelectronics * * SPDX-License-Identifier:…
1 2 3
9
10