Commit graph

126,787 commits

Author SHA1 Message Date
Jonas Berg
0bc5f7d4db samples: Fix documentation formatting for pressure polling sample
The sample output is not rendered properly, as can be seen on
https://docs.zephyrproject.org/latest/samples/sensor/pressure_polling/README.html

Adjust the formatting so that the code block is rendered properly.
The text "## Default configuration" does not appear in the sample output.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-01 08:34:14 +02:00
The Nguyen
59eb0e41f0 boards: renesas: update SDRAM configuration on ek_ra8p1
Correct pin configuration for SDRAM controller
Correct SDRAM address multiplex shift configuration

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2025-09-01 08:34:06 +02:00
The Nguyen
c092b4e4c3 boards: renesas: update SDRAM pin config for ek_ra8d1
Correct pin configuration for SDRAM on ek_ra8d1 board

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2025-09-01 08:34:06 +02:00
James Wu
ed38ff2b2f modem: add macro MODEM_CHAT_MATCH_WILDCARD_DEFINE
Add a macro MODEM_CHAT_MATCH_WILDCARD_DEFINE, it's complementary to
MODEM_CHAT_MATCH_DEFINE.

Example:

MODEM_CHAT_MATCH_DEFINE(ok_match, "OK", "", NULL);
MODEM_CHAT_MATCH_WILDCARD_DEFINE(version_match, "\"?.?.?-???", "",
                                 ublox_match_sw_version_callback);

MODEM_CHAT_SCRIPT_CMDS_DEFINE(script_cmds,
                              MODEM_CHAT_SCRIPT_CMD_RESP("AT", ok_match),
                              MODEM_CHAT_SCRIPT_CMD_RESP("AT+VER?",
			                                 version_match));

Signed-off-by: James Wu <wu.zhuhua@gmail.com>
2025-09-01 08:33:55 +02:00
Mikhail Siomin
60a12bd336 cmake: fix build using clang when default and target arch do not match
Use CMAKE_C_COMPILER_TARGET to allow clang to correctly determine
the runtime library for the target architecture.
Otherwise, the default runtime library will be selected.

Signed-off-by: Mikhail Siomin <victorovich.01@mail.ru>
2025-09-01 08:33:00 +02:00
Jonas Berg
04dfa77d37 boards: Add Adafruit Feather Canbus board
Add support for the Adafruit Feather Canbus board.
The image is from https://learn.adafruit.com/assets/120914, with
the license CC BY-SA 3.0.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-08-31 06:18:05 -04:00
Anas Nashif
f42dc20073 twister: deal with status/reason setting in handler in one place
Multiple handlers were setting status/reason in slightly different ways,
but the code was mostly trying to do the same. Put this code in the
handler class and implement in one place.

This fixes an issue where in some cases qemu failures were not handled
correctly and status of cases was not updated, leading to multiple
failures.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-31 06:17:16 -04:00
Benjamin Cabé
5f0e96021c include: drivers: ptp: add missing doxygen group
add ptp_clock_interface group and put under io_interfaces

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-31 06:15:33 -04:00
Benjamin Cabé
5fa58ec09c doc: coding guidelines: add more reference to CERT-C
Used https://wiki.sei.cmu.edu/confluence/display/c/MISRA+C%3A2012 to
add references to relevant CERT-C section(s) for each MISRA-C rule,
where applicable.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-31 06:15:06 -04:00
Anas Nashif
02f4290a5e doc: coding guidelines: remove confusing misra severity column
The misra severity is being treated as relevant to whether a guideline
should be followed or not in the context of the zephyr project.

Remove from the table, the MISRA severity can be looked up in many
public places or in the MISRA coding guielines themselves.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-31 06:15:06 -04:00
Tim Pambor
375d51452e scripts: twister: Fix --flash-before with serial-pty script
Honor the --flash-before option when using a serial-pty script with
--device-serial-pty <script> and start the script only after
flashing the device.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-08-30 18:00:32 +01:00
Anas Nashif
db8e7ab65a workflows: twister: install lcov
Install lcov needed for some tests.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-30 18:00:09 +01:00
Anas Nashif
de8914ddc0 twister: coverage: --gcov-object-directory works with >= gcovr 7.0
This command line option is not available in older versions of gcovr.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-30 18:00:09 +01:00
Anas Nashif
d175b5005d twister: tests: resolve warning about function being uncallable
Get rid of warnings about uncallable functions due to variable names
having test prefix.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-30 18:00:09 +01:00
Anas Nashif
d0675936da twister: tests: fix failing blackbox tests
Few tests failing and were not caught due to CI not running.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-30 18:00:09 +01:00
Lukasz Fundakowski
1c5cfc3ad4 ci: fix github actions for twister blackbox tests
Twister blackbox tests are not executed on CI.
This change fixes the problem.

Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2025-08-30 18:00:09 +01:00
Benjamin Cabé
f5cc5d857c include: drivers: sensor: add missing doxygen for sensor_channel_afbr_s50
Make sure enum has a doxygen documentation

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-30 12:31:47 +02:00
Benjamin Cabé
2ed0d0d44d include: drivers: sensor: enhance Doxygen documentation for FDC2X1X
Complete the Doxygen documentation for this sensor driver,
put in sensor_interface_ext group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-30 12:31:47 +02:00
Benjamin Cabé
b50c314b07 include: drivers: sensor: enhance Doxygen documentation for PAT9136
Complete the Doxygen documentation for this sensor driver,
put in sensor_interface_ext group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-30 12:31:47 +02:00
Benjamin Cabé
5ca4ff8bb5 include: drivers: fpga: add doxygen group
add doxygen group for FPGA driver API

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-30 12:31:21 +02:00
Benjamin Cabé
aa7d79488b include: drivers: comparator: add doxygen doc to comparator_callback_t
While reasonably straightforward, ensure the signature of the
comparator_callback_t is properly documented.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-30 12:31:09 +02:00
Benjamin Cabé
506e95325d include: can: re-organize doxygen groups
group controller and transceiver API under a common umbrella

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-30 12:30:50 +02:00
Emil Gydesen
f6f79f0c5b Bluetooth: Audio: Shell: Reduce memory usage of the shell
Modify values in audio.conf to reduce memory usage.
Most notably disabling logs reduced the FLASH requirements.
Ideally the shell works as expected without debug logs, but
there are far too many profiles and services to verify them all.
All the log options are left in audio.conf so they can easily be
re-enabled when needed.

Memory before this change:
Memory region         Used Size  Region Size  %age Used
           FLASH:     1018512 B         1 MB     97.13%
             RAM:      423146 B       448 KB     92.24%
        IDT_LIST:          0 GB        32 KB      0.00%

Memory after this change:
Memory region         Used Size  Region Size  %age Used
           FLASH:      791308 B         1 MB     75.47%
             RAM:      369090 B       448 KB     80.46%
        IDT_LIST:          0 GB        32 KB      0.00%

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-30 12:30:34 +02:00
Lukasz Fundakowski
71a5f29150 twister: Add configuration reader to pytest-twister-harness
Added a class that helps to read Kconfigs from a configuration file.

Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2025-08-30 12:30:26 +02:00
Etienne Carriere
39e73fe2ed tests: drivers: i2c: i2c_target_api: add nucleo_h503rb board
Add ST nucleo_h503rb board to I2C driver i2c_target_api test.
The board configuration make it testing transfer of 300 bytes data
to ensure the ReloadMode of the SoC I2C controller nicely handles
exchanges of more than 256 byte.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-30 12:30:15 +02:00
Etienne Carriere
81b76e0a4e tests: drivers: i2c: i2c_target_api: configure transfer byte size
Add CONFIG_I2C_TEST_DATA_MAX_SIZE to I2C driver i2c_target_api tests
to set the max data size of tested I2C transfer. The effective I2C
transfer  data size depends on that value and the size of the
EEPROM defined in the board DTS file.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-30 12:30:15 +02:00
Etienne Carriere
2560dca75d samples: drivers: i2c: rtio_loopback: configure transfer byte size
Add configuration options CONFIG_I2C_RTIO_LOOPBACK_DATA_READ_MAX_SIZE
and CONFIG_I2C_RTIO_LOOPBACK_DATA_WRITE_MAX_SIZE to set the number
of bytes exchanged during I2C transfers in I2C driver rtio_loopback
sample.

Add also a bit of verbosity when exchanged data are corrupted.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-30 12:30:15 +02:00
Etienne Carriere
862faccb27 samples: drivers: i2c: rtio_loopback: fix CONFIG_I2C_TARGET_BUFFER _MODE=n
Allow to disable CONFIG_I2C_TARGET_BUFFER_MODE in rtio_loopback I2C
driver sample.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-30 12:30:15 +02:00
Emil Gydesen
bf45652465 tests: Bluetooth: Tester: TMAP BSIM test
Adds BSIM testing of the TMAP features of the BT Tester.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-30 12:30:04 +02:00
Clay Wynn
40e91b4242 os: add __weak to to assert_print to allow customization
System designers may want to change the behavior of assert_print, such as
storing the message off into retained RAM and instantly rebooting. Adding
__weak allows customatization

Signed-off-by: Clay Wynn <cwynn@meta.com>
2025-08-29 22:57:52 -04:00
Julien Panis
22d04f7f93 drivers: crypto: cc23x0: Add power management
Add PM support to cc23x0 AES module.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
2025-08-29 22:55:37 -04:00
Benjamin Cabé
ce97cd1d9c include: devicetree: show DT helpers in their respective device sections
The various DT helpers benefit from being shown in their respective
device sections as it's expected that some users will be looking there
rather than generic Devicetree help pages.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-29 22:55:23 -04:00
Keith Packard
3ed633b69b modules/hal_rpi_pico: Switch boot_stage2 to picolibc
Now that rpi_pico can use picolibc, let's switch to it.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-08-29 19:19:08 -04:00
Anas Nashif
2310331e3e rpi_pico: make it work with picolibc
The picolibc changes were merged upstream; switch to using that revision.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-29 19:19:08 -04:00
Andrei Lalaev
d28a755c02 boards: raspberrypi: rpi_pico2: include LED only for Pico 2
At the moment, "blinky" sample can be built for Pico 2 W, but it doesn't
work as expected because the board has no LED connected to GPIO.

rpi_pico2.dtsi is a common dtsi, used by Pico 2 and Pico 2 W, it
shouldn't contain board specific stuff (like LEDs).
So, include "rpi_pico-led.dtsi" directly in Pico 2 board dts.

Signed-off-by: Andrei Lalaev <andrey.lalaev@gmail.com>
2025-08-29 19:18:48 -04:00
Anisetti Avinash Krishna
e018a7e8dd drivers: pwm: Enable PWM support for PTL-h
Enable PWM support on PTL-h and add 64bit
address support for PWM driver.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-08-29 19:18:28 -04:00
Sven Ginka
0d794df481 board: sensry: ganymed-sk - fix missing gpio/NET_L2
when compiling net-samples then the required gpio is disabled.
the installed vsc8541 phy requires gpio for reset. additionally,
we enable NET_L2 when network is enabled.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
2025-08-29 18:21:26 +02:00
Sven Ginka
bf4c8c2e22 board: sensry: ganymed-bob - fix missing gpio/NET_L2
when compiling net-samples then the required gpio is disabled.
the installed vsc8541 phy requires gpio for reset. additionally,
we enable NET_L2 when network is enabled.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
2025-08-29 18:21:26 +02:00
Chris Friedt
ab8b55ac99 posix: move posix limit definitions to posix_limits.h
Rather than keeping limits defined in a common way, controllable with one
Kconfig, move posix definitions out of the standard common libc header
`<limits.h>` into `<zephyr/posix/posix_limits.h>`, not controlled with
Kconfig. Additionally, include `<zephyr/posix/posix_limits.h>` wherever
an in-tree C library includes a custom `<limits.h>`.

Note: the only reason any of the `<limits.h>` files exist, is to define
the POSIX limit PATH_MAX without declaring `_POSIX_C_SOURCE`, which would
be necessary according to the standard, and each of the custom `<limits.h>`
files is nearly identical in this regard.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-08-29 18:21:10 +02:00
Chris Friedt
c4533d1b69 posix: move limit definitions to common libc limits.h
In order to reduce conflicts with limits defined in external C libraries,
move Zephyr's POSIX limits from posix_features.h to limits.h in the
common C library sources.

In order to give the implementation better control over where POSIX
limit definitions originate, use `#include_next <limits.h>` to pull in
the corresponding header of the C library, and provide a non-user
configurable option `CONFIG_TC_PROVIDES_POSIX_LIMIT_DEFS` that may be set
in order to ensure that the C library version of POSIX limits are used.

Note: this may mean that runtime invariant values are inconsistent with
parts that are actually in use within Zephyr, so applications are
encouraged to use `sysconf()` with external C libraries that implement
parts of the POSIX standard to query system configuration values at
runtime.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-08-29 18:21:10 +02:00
Vinayak Kariappa Chettimada
67126ab8aa Bluetooth: Controller: Fix building with Privacy without LE Encryption
Fix building with Privacy feature without enabling LE
Encryption support. This should allow being either Observer
or Broadcaster role with Privacy features.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-08-29 18:20:22 +02:00
Pieter De Gendt
c2a2f99202 soc: nxp: imxrt10xx: Configurable DCDC voltages
Allow users to configure the DCDC target voltages for low power and normal
mode.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-29 18:20:08 +02:00
Tomi Fontanilles
90650158bb doc: secure_storage: document the 30-bit UID
Add a bullet point for this new, relatively important deviation from
the official specification.

Also, advertise the Zephyr-specific zephyr/psa/* header files as they
are related and probably need more attention from end users.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00
Tomi Fontanilles
1e78561cff secure_storage: use %# flag character for hex printing
Instead of literally having 0x in the format string, use the %# flag
character so the printf implementation adds the 0x for us.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00
Tomi Fontanilles
91029d7c0b samples: psa: specify integration_platforms
Explicitly specify native_sim as integration platform for better PR
CI coverage.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00
Tomi Fontanilles
254a1daa07 tests: secure_storage: remove an integration platform
nrf54l15dk/nrf54l15/cpuapp already covers the non-emulated case as
part of the integration_platforms.
Having ophelia4ev/nrf54l15/cpuapp does not bring any additional value
and increases CI load, so remove it.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00
Tomi Fontanilles
f399ae95eb doc: migration guide: document Secure storage UID size change to 32 bits
Add a migration guide entry regarding the modification of the UID size
as it is by default a breaking change.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00
Tomi Fontanilles
772db024da tests: secure_storage: psa: its: fix ZMS test
77f19eb1b5 made ZMS depend on
FLASH_MAP.
Enable that Kconfig option in the ZMS Kconfig overlay file.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00
Tomi Fontanilles
45ea4327fa tests: secure_storage: psa: its: add test scenarios for 64-bit UIDs
Add test scenarios for the newly-added CONFIG_SECURE_STORAGE_64_BIT_UID
enabled with both the ZMS and Settings backends.
They don't test backward compatibility but it makes sure that secure
storage compiles and works fine with this configuration.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00
Tomi Fontanilles
1a477748aa secure_storage: its: use %l printf length modifier
Cast the UIDs to unsigned long when they are 32 bits.
This allows to use a single %l length modifier instead of the double
one for long long.

Certain printf implementations only support the former and not the
latter length modifier, so this has the advantage to work with them
now that the UIDs are 32-bit by default.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00