Commit graph

12,113 commits

Author SHA1 Message Date
Anas Nashif
16fecc0276 manifest: optional: move lz4 to external
Move lz4 to become external module. It is not in the default manifest
anymore (through submanifests) and will need to be added if application
requires it per the docs.

Samples will be moved to the module itself.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-11-25 13:01:12 +01:00
Hui Bai
0f8228f410 drivers: wifi: Add new config CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE
Added new config CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE and enable it for NXP
wifi chips.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-11-24 17:23:43 +01:00
Bartlomiej Buczek
1a5180d350 samples: drivers: jesd216: add nrf54l15dk cases.
Extend jesd216 sample with nrf54l15dk cases. These platforms have
jesd216 compatible flash memories on board.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-11-24 17:21:13 +01:00
Fabian Blatz
871103d072 manifest: Update LVGL to v9.4
Update the west yaml to point to the new LVGL version.
Update CMakeLists and samples accordingly.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-11-23 05:31:29 -05:00
Rodrigo Peixoto
854eda699c samples: zbus: add async linstener to the hello world sample
Add the async linstener to the hello_world sample.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2025-11-21 11:42:56 -05:00
Rodrigo Peixoto
52ec497937 samples: zbus: async listeners sample
Add a sample for async listeners.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2025-11-21 11:42:56 -05:00
Alberto Escolar Piedras
1329a097c1 net: ocpp: Correct way of getting strdup prototype
Zephyr subsystems' headers should not duplicate C library prototypes
(in this case strdup(), which is either ISO C23 or a POSIX extension to
the C library <string.h>).

Instead they should request those prototypes from the C library.
By now Zephyr only requires ISO C17, but many C libraries will have
strdup() and expose it also when the POSIX extensions prototypes are
requested, so let's request these prototype from the C library by
setting the feature test macro _POSIX_C_SOURCE to version 2008.09
which includes it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-21 11:42:33 -05:00
Lyle Zhu
17384f450e samples: Bluetooth: Classic: Add guide on how to build/run samples
Add guide on how to build and run samples for the Bluetooth Classic.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-21 09:47:42 -05:00
Alberto Escolar Piedras
bc77cfafe6 shell: Fix check for host libc
Let's use CONFIG_NATIVE_LIBC to detect builds with the host C library
instead of pressuming that any build targetting the POSIX architecture
uses it. This has not been the case for several years now, as we can
select different C libraries when targetting the POSIX architecture.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-21 10:09:08 +02:00
Alberto Escolar Piedras
4411efb5a7 samples/subsys/shell/shell_module: Fix use of sys_getopt global status
sys_getopt has now its global status variables prefixed with sys_getopt_
Let's fix the use here. Note this worked as Zephyr's POSIX_C_LIB_EXT
keeps a replica of these variables without the prefix, and it is
enabled by default.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-20 17:14:57 +00:00
Alberto Escolar Piedras
065289e27d samples/shields/npm6001_ek: Fix use of sys_getopt global status
sys_getopt has now its global status variables prefixed with sys_getopt_
Let's fix the use here. Note this worked as Zephyr's POSIX_C_LIB_EXT
keeps a replica of these variables without the prefix.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-20 17:14:57 +00:00
Fabrice DJIATSA
2a662e7ed6 samples: drivers: spi_flash: exclude stm32n6570_dk from CI testing
Decide to remove stm32n6570_dk from this scenario since it seems to
be relevant and work when CONFIG_STM32_MEMMAP is enabled based on
how flash_stm32_xspi.c driver is implemented.

Since there is already a scenario(sample.drivers.spi.flash.stm32.memmap)
that test this mode, excluding from this scenario could also help us
avoid erasing the memory twice every day at the same address.

Note:
  test with dma/interrupt mode will succeed without enable
  CONFIG_STM32_MEMMAP if we remove dependency
  on CONFIG_STM32_APP_IN_EXT_FLASH in 'flash_stm32_xspi_read'.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Fabrice DJIATSA
bcfb5bc055 samples: subsys: usb: uvc: boards: increase main stack size
Increase the size of the main stack to avoid a stack overflow error
when running some sample scenarios.
This occur by example on stm32n6570_dk,
sample.subsys.usb.uvc.encoder.jpeg scenario.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Yurii Lozynskyi
b1fa628433 uart: async_api: add cy8ckit_062s2_ai board support
Add overlay files and sample configuration for cy8ckit_062s2_ai
to enable UART async API functionality.

Signed-off-by: Yurii Lozynskyi <yurii.lozynskyi@infineon.com>
2025-11-20 16:00:16 +00:00
Bindu S
4a0e6d48c9 samples: drivers: uart: async_api: Added support for ADL
Added support for async api application on ADL-n platform

Signed-off-by: Bindu S <bindu.s@intel.com>
2025-11-20 06:04:09 -05:00
Vit Stanicek
587bb77d8c samples: i2s_codec: Enable on mimxrt1170_evk@B/cm4
Add aliases to domain DT overlay and instantiate the wm8962 driver in
it. Add Kconfig fragment and a DT overlay for the sample.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-11-20 06:03:44 -05:00
Vit Stanicek
ea55b27c38 samples: i2s_codec: Enable on rd_rw612_bga
Instantiate the wm8904 driver in rd_rw612_bga's DT. Add MCLK clock
configuration to rw612's soc.c. Modify pinmux definitions to route
those. Add DT and Kconfig fragments to the sample. Document output jack
utilised.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-11-20 06:03:44 -05:00
Vit Stanicek
7341b8ad89 samples: i2s_codec: Enable on lpcxpresso55s69/cpu0
Modify board's pinctrl nodes to include the MCLK signal. Instantiate the
wm8904 driver. Add board specific Kconfig fragment and DT overlay. Set
up the MCLK signal.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-11-20 06:03:44 -05:00
John Batch
3c126ef124 tests: cyw920829m2evk_02: Updating tests boards for multiple socs
Updating supported tests for the cyw920829m2evk_02 board to support
multiple socs.

Signed-off-by: John Batch <john.batch@infineon.com>
2025-11-20 06:02:48 -05:00
John Batch
2e1e786d61 Samples: Updating board files in samples for CYW820829
Updates all supported samples for the cyw920829m2evk_02 board to support
multiple SOC options.

Signed-off-by: John Batch <john.batch@infineon.com>
2025-11-20 06:02:48 -05:00
Alain Volmat
21def020bd samples: add proper display api functions return value checks
Ensure that display api function return values are checked.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-11-20 06:02:40 -05:00
Benjamin Cabé
d78a9baff9 samples: net: ocpp: add websocket path configuration option
Make the websocket path configurable since having it hardcoded in the
sample is not practical.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-19 15:54:11 -05:00
Pavel Vasilyev
b7b35b89ed bluetooth: host: Deprecate CONFIG_BT_SIGNING
This commit deprecates:
- the `CONFIG_BT_SIGNING` Kconfig option
- `BT_GATT_CHRC_AUTH` property

IOW, this commit deprecates the LE Security mode 2 support.

Explanation:

Erratum ES-26047 introduced in Bluetooth Core Specification v6.2
requires SingCounter to be persistently stored to prevent replay
attacks.

Currently, the Host doesn't store SignCounter, therefore the device is
vulnerable to replay attacks after reboot.

Additionally, the current implementation doesn't assume that SignCounter
of a received message can be incremented by more than one and thus may
not validate correct message.

The Bluetooth Security and Privacy Best Practices Guide recommends to
not using Data signing and recommends to use LE Security mode 1 levels
2, 3 or 4 instead.

The Signed Write Without Response sub-procedure, which is the only user
of Data signing, is optional (see Vol 3, Part G, Table 4.1).

See also ES-18901.

The aforementioned reasons make no sense to keep this feature.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-11-19 06:52:38 -05:00
Adam Kondraciuk
127ba8d494 samples: boards: nrf: system_off: Add sample with system clock disabled
Extend the system off samples by adding an option to disable
the system clock. When the system clock is disabled additional
power savings can be observed.
After using the `sys_clock_disable()` function, the GRTC is
turned off making system time-related features unavailable.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-11-19 06:52:24 -05:00
Muhammad Waleed Badar
62cbf13673 samples: ocpp: add native_sim configuration
Disable DHCPv4 and use static network configuration
for native_sim board

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2025-11-18 19:52:52 -05:00
Nicolas Pitre
c01e0943c0 boards: arm: Create unified fvp_base_revc_2xaem board structure
Create unified board configuration to replace verbose board naming
with shorter hierarchical structure. This board works with the new
unified fvp_aem SOC series and supports the v8a architecture variant.

This enables board targets like:
- fvp_base_revc_2xaem/v8a (basic ARMv8-A)
- fvp_base_revc_2xaem/v8a/smp (ARMv8-A SMP)
- fvp_base_revc_2xaem/v8a/smp/ns (ARMv8-A SMP non-secure)

This structure replaces the existing overly verbose board designations
with a cleaner, more maintainable organization and provides a foundation
for adding v9a variants.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-11-18 17:49:40 -05:00
Aleksandr Khromykh
613d228002 bluetooth: mesh: update max oob size till 32 bytes
Commit updates maximum OOB authentication size from 8 bytes
till 32 bytes according to specification errata ES-27446.
Since previous OOB API does not allow to expose OOB values
with such width the new API has been introduced.
The previous API was deprecated and hidden under
BT_MESH_PROV_OOB_API_LEGACY option and left for backward
compatibility with existing code base.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2025-11-18 10:48:18 -05:00
Jukka Rissanen
22f9ef0a33 sys: getopt: Rename getopt to sys_getopt to avoid conflicts with Posix
Summary:

As Zephyr getopt is not really compatible with Posix getopt, rename
Zephyr getopt to sys_getopt.

Background:

Zephyr getopt module was introduced in #31356 to be used by the shell.
Zephyr's getopt is not the standard one. It has multiple APIs which make
it more suited for a system like Zephyr where different components may
want to use it for different purposes. Including APIs to init it,
get and set its internal state etc.
Several Zephyr modules (shell, net, wifi, ztest) use this getopt with
these special APIs. The getopt module is bundled in the POSIX
compatibility API subsystem (CONFIG_POSIX_C_LIB_EXT).

Problem description:

As it is not the standard getopt(), no C library can possibly provide
a Zephyr compatible version (even if such C library were to provide a
standard getopt()). As it is bundled in Zephyr's POSIX API in
CONFIG_POSIX_C_LIB_EXT), multiple components that depend on it are
selecting CONFIG_POSIX_C_LIB_EXT. Zephyr core components should not
depend on the POSIX API in this way.

Changes done in this commit:

Rename the getopt*() APIs to sys_getopt*() and move them into a module
under lib/utils with its own Kconfig option to enable it.
Zephyr's users are changed to use this new component.
The POSIX subsystem can continue providing getopt() by calling the new
sys_getopt() and in that way retain backwards compatibility for external
users.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-18 10:46:29 -05:00
Sebastian Głąb
87d15bb2be samples: boards: nordic: spis_wakeup: Run sample on APP+PPR
Extend sample with possibility to use PPR core instead of Radio core.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-11-18 08:17:20 -05:00
Jakub Klimczak
f16f3f641e zvfs: Move fdtable into ZVFS
The file descriptor table is used in every area that expects to work on
files through descriptor indices. It can only be operated on through
functions whose names indicate a relationship with ZVFS (`zvfs_*fd*`).
The integer file descriptor mechanism shouldn't be separate from ZVFS.
This will make cooperation between different file access APIs much
simpler. This commit also makes preparations for the fdtable becoming
optional.

Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
2025-11-18 08:12:19 -05:00
Alexander Kozhinov
881c5b5571 samples: drivers: opamp: output_measure
prj.conf:
	enable logging
	add log buffer size and debug options and comment them

main.c:
	show gain value at runtime as a starting
	use ADC calibration before conversion

README.rst:
	update with sample gain prints

Signed-off-by: Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
2025-11-18 11:19:59 +01:00
Jukka Rissanen
ac859d0e77 samples: net: Add relevant Posix headers for networking
We need certain network related Posix header files so that the
network sample compiles ok. Previously the Posix symbols were
introduced by network stack automatically even if user had not
enabled Posix, but that is no longer the case.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-17 14:01:32 -05:00
Jukka Rissanen
d45cd6716b net: Convert network codebase to use renamed network APIs
Rename network symbols in network stack to use the renamed network APIs.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-17 14:01:32 -05:00
Sean Kyer
05634c3d6c bluetooth: ANS: Add Alert Notification Service
Add alert notification service (ANS) to Bluetooth
subsystem and accompanying sample.

Signed-off-by: Sean Kyer <sean.actor@gmail.com>
2025-11-17 13:49:22 -05:00
Richard Skriwanek
4d6dd7c6a0 samples: basic: blinky_pwm: add nucleo_u385rg_q
The blinky_pwm test was not available for the nucleo_u385rg_q board.
Added the board overlay to the blinky_pwm sample.

Signed-off-by: Richard Skriwanek <richy@fnc.at>
2025-11-17 13:48:31 -05:00
Josuah Demangeon
a62dd577bd style: samples: apply coding style on CMakeLists.txt files
Apply the CMake style guidelines to CMakeList.txt files in samples/.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-11-17 13:48:03 -05:00
Cristian Bulacu
fd7c368f69 samples: net: openthread: border_router: Update project config
Updated border router sample configuration to adapt newly added NAT64
functionality

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-11-17 09:15:16 -05:00
Emil Gydesen
25500c61b7 samples: Bluetooth: hci_uart: Add board files for nRF5340ADK
Add board file for nrf5340_audio_dk_nrf5340_cpuapp identical
to the ones for nrf5340dk_nrf5340_cpuapp

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-11-15 11:35:51 +01:00
Mathieu Choplain
19e1b2b72b samples: boards: st/pm/stop3: use series-agnostic STM32 LL headers
Use the series-agnostic STM32 LL headers from the STM32Cube HAL module
instead of series-specific ones in this sample.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-14 12:19:48 +02:00
Zafer SEN
6fa982854f samples: modem: Add modem at client sample
This PR adds a new sample application demonstrating bidirectional UART
communication between console and cellular modem using the Zephyr modem
subsystem.

 Purpose
- Interactive AT command interface for modem testing
- Transparent bridge for firmware updates via XMODEM
- Reference implementation of uart_pipe + modem_pipe integration

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2025-11-14 10:30:00 +02:00
Chen Xingyu
e0e3612c36 samples: modules: lvgl: screen_transp: Add overlay for M5Stack CoreS3-SE
Add a device tree overlay to enable the MIPI-DBI bus on the M5Stack
CoreS3-SE.

The overlay removes SPIM2_MISO_GPIO35 from the pinctrl so that the MISO pin
can be used as the LCD_DC signal.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-11-14 10:27:55 +02:00
Chen Xingyu
51a53b0329 samples: modules: lvgl: demos: Add overlay for M5Stack CoreS3-SE
Add a device tree overlay to enable the MIPI-DBI bus on the M5Stack
CoreS3-SE.

The overlay removes SPIM2_MISO_GPIO35 from the pinctrl so that the MISO pin
can be used as the LCD_DC signal.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-11-14 10:27:55 +02:00
Chen Xingyu
479a675d1e samples: subsys: smf: smf_calculator: Add overlay for M5Stack CoreS3-SE
Add a device tree overlay to enable the MIPI-DBI bus on the M5Stack
CoreS3-SE.

The overlay removes SPIM2_MISO_GPIO35 from the pinctrl so that the MISO pin
can be used as the LCD_DC signal.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-11-14 10:27:55 +02:00
Chen Xingyu
1f94025f8d samples: subsys: display: lvgl: Add overlay for M5Stack CoreS3-SE
Add a device tree overlay to enable the MIPI-DBI bus on the M5Stack
CoreS3-SE.

The overlay removes SPIM2_MISO_GPIO35 from the pinctrl so that the MISO pin
can be used as the LCD_DC signal.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-11-14 10:27:55 +02:00
Chen Xingyu
6994e6efda samples: drivers: display: Add overlay for M5Stack CoreS3-SE
Add a device tree overlay to enable the MIPI-DBI bus on the M5Stack
CoreS3-SE.

The overlay removes SPIM2_MISO_GPIO35 from the pinctrl so that the MISO pin
can be used as the LCD_DC signal.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-11-14 10:27:55 +02:00
Jonas Berg
a76dfca84a boards: shields: Add Adafruit MCP4728 DAC shield
The product photo is from
https://learn.adafruit.com/assets/86699

Tested with the command mentioned in the index.rst file.

Compile testing of the overlay file is done via the DAC sample.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-11-13 20:43:19 -05:00
Grzegorz Chwierut
c542b258db samples: sysbuild: hello_world: Get second UART from Twister params
Use --device-serial command line option to specify multiple serial
ports. Split test into two separate test functions.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2025-11-13 20:42:31 -05:00
Xavier Razavet
fbadac59fe samples: openthread: shell: prj-ot-host.conf file updated
Settings configuration is removed in the
zephyr/samples/net/openthread/shell/prj-ot-host.conf file.
No more used.

Signed-off-by: Xavier Razavet <xavier.razavet@nxp.com>
2025-11-13 20:42:22 -05:00
Holt Sun
2e02d29295 boards: nxp: frdm_mcxe31b: enable rtc device.
1. enable RTC and rtc-counter alias for
frdm_mcxe31b.
2. enable sample driver counter alarm.
3. enable sample driver rtc.
4. enable counter_basic_api test.
5. fix misc mcxe31b dts format error.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-11-13 20:41:39 -05:00
Marcio Ribeiro
cb433ace2e samples: boards: espressif: add retained_mem api to deep_sleep sample
Adds retained_mem api to espressif deep_sleep sample and enables it for the
following platforms:
- esp32_devkitm/esp32/procpu
- esp32c3_devkitm
- esp32c6_devkitc/esp32c6/hpcore
- esp32h2_devkitm
- esp32s2_devkitc
- esp32s3_devkitm/esp32s3/procpu

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-11-13 20:36:45 -05:00