214 questions
0
votes
0
answers
20
views
Arduino UNO Q with Zephyr OS
I am trying to set up my Arduino UNO Q to program using zephyr. I tried to set up a build enviroment as explained here: https://docs.zephyrproject.org/latest/develop/getting_started/index.html and ...
0
votes
0
answers
15
views
GPIO Toggle on imx95evk using Zephyr
I was trying to toggle GPIO_IO16 using M Core of imx95evk. By default the pin is muxed to sai3 therefore I had to use pinmux to remap the pin to gpio_io_bit_16 and deleted sai3 nodes to avoid any ...
0
votes
0
answers
38
views
Tell Zephyr to pad out image size outside of using the signed image tool
I've been using Zephyr to compile projects for the STM32 without any issues with the generated binaries as such. However, switching over to working with TI chips and having to use UniFlash to ...
3
votes
1
answer
80
views
Running CANopenNode 4x on Zephyr result in TX buffer overflow when threads are used?
Currently the CANopenNode stack used by Zephyr is extremely out of date which the team is well aware of:
https://github.com/zephyrproject-rtos/zephyr/issues/70285
I have the fork from the National ...
1
vote
1
answer
224
views
clang-format is not formatting files as expected
I am developing a Zephyr application and want to format all my source files to have the Zephyr coding style. I found the following .clang-format file in the Zephyr repository below. I put this in the ...
1
vote
0
answers
129
views
Undefined reference to mbedtls functions using Zephyr
I am building an application for a Nordic NRF5240 with Zephyr. In my security code I am attempting to derive a session key with the following function:
int derive_session_key(const uint8_t *...
-4
votes
1
answer
81
views
Platformio with VSCode and No module named 'distutils'
I am trying to get a blink example on my bbc:microbit controller working using vscode with PlatformIO and the zephyr framework. The host system is a fresh Ubuntu 24.04 and I am getting the following ...
0
votes
0
answers
53
views
nRF Connect SDK (Zephyr RTOS) new/delete in splitted class declaration and implementation
I get the error undefined reference to operator new(unsigned int)'` upon using splitted class declaration and implementation.
My (failing) code:
My CMakeLists.txt:
cmake_minimum_required(VERSION 3.20....
0
votes
0
answers
67
views
Android BLE: Involuntary Disconnect on Third Connection with Status 8 (GATT_INSUFFICIENT_AUTHORIZATION)
I'm working on an Android app that connects to a Nordic nRF52833 BLE peripheral (Zephyr 3.7.99 / NCS 2.9.0). I'm encountering a consistent issue where:
The app connects to the peripheral and bonds ...
0
votes
0
answers
51
views
Diagnose issue with PWM on nrf53 using Zephyr: seems to be ready but not erroring or working
I am looking for ways to diagnose a problem with a vibration motor NFP-3C-03208B using Zephyr on a custom nrf5340 boardh. I have working on a nordic dk but is not working on a custom board. The device ...
1
vote
1
answer
106
views
Zephyr ILI9341 Display Driver Compilation Errors - Missing Devicetree Properties
I'm trying to use an ILI9341 display with nRF52840 in Zephyr (v4.1.99). The build fails with multiple errors about missing Devicetree properties when compiling display_ili9xxx.c:
error: '...
0
votes
0
answers
36
views
zephyr b_u585i_iot02a cellular_modem example does not work for bg96?
I tried the b_u585i_iot02a cellular_modem example with the bg96 module , does this work for anyone? The ATE0 command at the beginning runs into a timeout.
I connected the BG96 (MB1329-B03) to the CN3 ...
0
votes
0
answers
200
views
Problem with the Pitch and Yaw data from IMU ICM20948
I'm having a problem on the yaw angle. The Roll and the Pitch are behaving correctly with values between -180° and 180°, but the Yaw gives me values between -25° and 30° and usually if I stop the ...
1
vote
1
answer
409
views
Timers vs Threads (Zephyr RTOS) - which is more appropriate where?
Hi I have been working with RTOS environments for some time now (FreeRTOS and Zephyr) and I was wondering if, generally speaking, RTOS timers are considered more lightweight than threads. I am ...
0
votes
0
answers
29
views
Why can’t I enable CONFIG_MODEM on my NCS 2.6.0 project using Zephyr 2.5.99?
I am trying to enable it in my prj.conf file:
# # Networking
CONFIG_NETWORKING=y
CONFIG_FPU=y
# CONFIG_NET_NATIVE=y
# CONFIG_NET_L2_PPP=y
CONFIG_NET_IPV4=y
CONFIG_NET_UDP=y
CONFIG_NET_SOCKETS=y
...
1
vote
0
answers
215
views
Combining Zephyr's Socket API with MbedTLS for DTLS and Custom PSK Callback
I am currently working on a project where I need to use Zephyr’s socket implementation in combination with MbedTLS for DTLS. Specifically, I want to integrate MbedTLS so that I can manipulate the ...
1
vote
1
answer
69
views
Run Zephyr on Spike (riscv -isa-ism)
I been reading about Zephyr for a few days. It seems to provide the QEMU rv32/rv64 support, like I can run tests straightforward.
But is there a way I can try out Zephyr's tests on Spike? I mean, it’s ...
1
vote
1
answer
272
views
Converting accelerometer value to m/s^2
I'm trying to understand the method to convert raw accelerometer's output to m/s^2
Suppose I'm using ADXL345:
the range is set to +-16G
the resolution is 10 bits
focus on positive values
scaling ...
1
vote
1
answer
155
views
Clarification of the meaning of "App" in ZephyrOS
The Zephyr project comes with lots of "apps". The definition seems to me to be "App = your program + ZephyrOS"
The word "app" to me implies you could have many inside one ...
0
votes
1
answer
648
views
Zephyr flash project error - west flash command fail
I'm referring to the following getting started guide: https://docs.zephyrproject.org/latest/develop/getting_started/index.html
west build -p always -b rpi_pico samples/basic/blinky
I'm getting the ...
0
votes
1
answer
301
views
Creating a Device Tree Binding for LSM6DS3TR-C (only i2c nodes accepted issue)
I am trying to use the LSM6DS3TR-C IMU on the Seeed xiao sense board using Zephyr. Through discussions I have seen that the bindings of the examples only work in particular conditions so as a result I ...
1
vote
0
answers
335
views
BLE Central "failed" to automatically reconnect to a BLE peripheral
Introduction
I'm developing a BLE Central using Zephyr 3.7.0
I can connect, pair and bond to my BLE Peripheral, read and write characteristics. I've set the BLE security to level 3 (Encryption and ...
2
votes
0
answers
185
views
Is there a way to change the values of the project configuration file in zephyr with CMake arguments?
I have developed an application for the nodes in a BT Mesh network. Each node in this network should now have the same code. The only difference for each code is the CONFIG_BT_DEVICE_NAME symbol, ...
1
vote
0
answers
89
views
How to use net_eth_carrier_on() in Zephyr?
I am running a project using Zephyr 2.4, my goal is to check if the Ethernet cable is physically connected or not.
I saw they have these functions available :
net_eth_carrier_on and ...
4
votes
2
answers
2k
views
How can I compile the zephyr example-application as a freestanding application?
The Zephyr documentation recommends to use the example-application as a starting point. The given approach using Git is wrong, however. According to the example's README, it needs to be initialized ...