Commit graph

12,113 commits

Author SHA1 Message Date
Holt Sun
b44fe22e98 samples: drivers: crc: select protocol by capability
Choose CRC protocol in the sample at build time using
CONFIG_CRC_DRIVER_HAS_* guards (CRC8, CRC16-CCITT, CRC32-IEEE, CRC32-C).
Allow optional verification via EXPECTED_* macros; otherwise log result.
Update README to describe selection and add build instructions for
frdm_mcxe247 in addition to ek_ra8m1.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-12-15 07:27:48 -05:00
Kyle Bonnici
bbff45f1c4 DTS: format files using dts-linter 0.3.7-hotfix2
- Ensure that properties have 2 new lines when node is above it.
- Enures that 1 new line is required between a node and #if/#ifdef...
- Enures that 2 new line are required between #endif and node.
- Wraps property values that exceed 100 characters in length.

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-12-12 15:38:31 -05:00
Jukka Rissanen
869cfb8fd6 samples: net: pkt_filter: Disabling packet priorities by default
The packet priority support is disabled by default so that the
application can work "normally" as a sample for trying network
packet filtering.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-12-12 15:38:18 -05:00
Jukka Rissanen
47941a6f58 samples: net: pkt_filter: Add IPv4/6 address blocklist
Add information how to block IPv4 or IPv6 addresses.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-12-12 15:38:18 -05:00
Jukka Rissanen
9dd57b3405 samples: net: pkt_filter: Fix the readme file
The readme file did not mention the network packet priority
based rules 1-5 introduced recently.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-12-12 15:38:18 -05:00
Aksel Skauge Mellbye
94212fb665 samples: driver: counter: Fix silabs timer name
The Counter alarm sample contains a hard-coded list of devicetree
nodes to use. Since the definition of the counter node was changed
on Series 2 devices in #97912, this sample hasn't compiled.

Update the sample to select the correct devicetree node, and
add representative boards to platform_allow to allow the sample
to be tested on Series 2 boards.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-12-12 15:37:19 -05:00
Aksel Skauge Mellbye
3b15324eac samples: drivers: uart: async_api: Add overlays for silabs boards
Add overlays enabling DMA for Silabs boards to enable use of the
async API on the default shell uart.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-12-12 15:36:58 -05:00
Tim Pambor
7a9b4d3a5c boards: st: stm32h573i_dk: Add TF-M non-secure app support
Add support for building Trusted Firmware-M (TF-M) non-secure
applications for the STM32H573I-DK board.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-12-12 09:57:40 -05:00
Cristian Bulacu
7abba8812f samples: net: openthread: border_router: Add ethernet config
Added project configuration for OpenThread Zephyr Border Router with
ethernet configured as backbone interface

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-12-12 09:57:20 -05:00
Anuj Pathak
cb2109e7d9 samples: drivers: i2s: echo: add MAX32655 support
- reduced block length from 100ms to 33.33ms to compile for low ram
- add compile time conditional option to slave mode
- add overlay file for max32655fthr

Signed-off-by: Anuj Pathak <anuj@croxel.com>
2025-12-12 05:01:31 -05:00
Anuj Pathak
c0b013d2d4 samples: drivers: i2s: echo: Add MAX9867 codec support
Add MAX9867 codec initialization support to the sample
to later use for MAX32655FTHR support

Signed-off-by: Anuj Pathak <anuj@croxel.com>
2025-12-12 05:01:31 -05:00
Krzysztof Chruściński
90bbc47122 samples: boards: nordic: coresight_stm: Benchmark only the cached code
Add additional call before starting time measurement to ensure that
all calls that are benchmarked are already cached. This change allows
to get more stable results as all exectutions are from cache.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-12-12 04:47:50 -05:00
Bjarki Arge Andreasen
1adf52166d samples: boards: nordic: clock_control: add README.rst
Add documentation of the nordic clock control sample in the form of
a README.rst

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-12-11 16:35:54 -05:00
Atilla Filiz
ddd25e81e7 drivers: sensor: add ams as6221 temperature sensor driver support
The as6221 is functionally equivalent to ti tmp108 and ams as6212,
so it is added as a new variant of tmp108.

Signed-off-by: Atilla Filiz <atilla@fi-tech.be>
2025-12-11 16:58:50 +01:00
Alberto Escolar Piedras
addca1250b samples: net: latmon: Use native networking API directly
This subsystem does not use the POSIX_API, and the sample only used one
call to the POSIX API to close a socket instead of using the native
networking API.
Let's just use the native networking API, so we avoid pulling-in more
dependencies.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-11 16:57:22 +01:00
Jilay Pandya
83956260f7 drivers: stepper: split stepper api
- split stepper api into stepper and stepper_drv api
- stepper api now comprises only of motion control apis
- stepper_drv api comprises of apis for configuring stepper
  drivers

- add documentation about stepper and stepper_drv api
- move stepper.rst in a dedicated stepper folder
- add information about stepper_drv api and relevant functions
  in stepper documentation.

- drop motion control functions from all the stepper_drv drivers
- create a common a library for controlling stepper motors by
  toggling gpios via h-bridge or step-dir stepper_drivers

- tmc5xxx devices are a combination of motion controller and
  stepper driver devices. tmc5xxx devices need to be modelled as
  mfds in order to address the split in stepper driver subsystem

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-12-11 05:51:17 -05:00
Maochen Wang
e01e67e1b0 samples: net: wifi: enable supplicant key debug for NXP config
Introduce WIFI_NM_WPA_SUPPLICANT_DEBUG_SHOW_KEYS to allow key dump
when using the NXP board debug configuration.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-12-11 05:49:56 -05:00
Alberto Escolar Piedras
312b1ef04f pmci: mctp: samples: Remove unnecessary include
These samples do not seem to need the unistd.h header, but including it
limits us to C libraries which have it, which as it is a POSIX
extension is not all.
So let's not include it so we do not limit ourselves unnecessarily.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-11 09:18:02 +02:00
Gang He
32c1db7c15 samples: bluetooth: bap_broadcast_sink: add parameter checking
BT_LE_PER_ADV_SYNC_OPT_FILTER_DUPLICATE option is only available when
BT_FEAT_LE_PER_ADV_ADI_SUPP is enabled in chipset.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-12-10 15:44:43 +00:00
Gang He
9c8e72a0d9 samples: bluetooth: bap_broadcast_sink: format source code
Run clang-format to format sample source code.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-12-10 15:44:43 +00:00
Khoa Nguyen
e09d0adf57 samples: modules: lvgl: demos: Enable ek_ra8p1 CM85 using MIPI LCD
Enable ek_ra8p1_r7ka8p1kflcac_cm85 to run with rtkmipilcdb00000be
MIPI LCD shield

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-12-10 07:25:01 -05:00
Robert Lubos
221699228a samples: net: lwm2m_client: Use cert-based DTLS overlay in twister
Make sure that certificate-based DTLS config is built by twister and
also mention it in the README file.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-12-10 07:24:26 -05:00
Robert Lubos
d9cc7845ec samples: net: lwm2m_client: Add missing PSA configs neeed for HS
Add missing PSA configs required for successful DTLS handshake with PSK.
Cert-based config also needed to enable some RSA support, as otherwise
mbed TLS throws errors about some undefined RSA error mapping.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-12-10 07:24:26 -05:00
Stephen Stauts
e260a69c61 samples: boards: nordic: Update command for checking ironside
Uses the modern nrfutil command for checking ironside versions
through the boot report, rather than hardcoded addressing.

Signed-off-by: Stephen Stauts <stephen.stauts@nordicsemi.no>
2025-12-10 10:35:21 +00:00
Dmitrii Sharshakov
7c3762130d samples: settings: cover PSA PS backend
By default, run on mps2/an521/cpu0/ns with TF-M.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-12-10 10:33:34 +00:00
Dmitrii Sharshakov
06eb1473d5 settings: tfm_psa: rename from its
Prepare for extending this backend to also allow storing settings in the
PS (Protected Storage).

Mostly file and kconfig renames, as well as updates
to comments and log messages.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-12-10 10:33:34 +00:00
John Chung
d41d915330 pmci: mctp: Fix MCTP USB Packet Length Issue
According to DSP0283 1.0.1, Length byte in MCTP over USB header
fields should start from the "MCTP over USB Header" to the last
byte in the "MCTP packet payload"

Signed-off-by: John Chung <john.chung@arm.com>
2025-12-09 17:13:56 -05:00
Peter Mitsis
d59b2a29b4 sys: sys_heap: Fix _system_heap type
Changes the type used in _system_heap extern declarations to use
k_heap instead of sys_heap.

Fixes #100530

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-12-09 17:09:25 -05:00
Ederson de Souza
bc480ca3f4 samples/subsys/pmci/mctp: Make host/endpoint sample messages friendly
This patch achieves that by:
  - Waiting one second between each message sent by the host, so people
    can actually follow what's going on;
  - Wraping the content of the messages (strings "hello" and "world") in
    quotes, so it's clear what they are;
  - Toning down the logging to INF - no need for DBG;
  - Removing astray `\n` - LOG_XXX already takes care of that.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2025-12-09 14:55:24 -05:00
Ederson de Souza
b6d0ac47dc samples/subsys/pmci/mctp: Do not repeatedly start RX
It only needs to be started once - all subsequent start will fail with
-EBUSY and possibly print some error message.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2025-12-09 14:55:24 -05:00
Ederson de Souza
3376da8a90 samples/subsys/pmci/mctp: Endpoint needs to reply to host
But it was sending the reply to its own endpoint ID, thus the host was
ignoring it.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2025-12-09 14:55:24 -05:00
Ederson de Souza
308c40c111 samples/subsys/pmci/mctp: Add npcx4m8f_evb overlays
So that one can run the host/endpoint sample on them.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2025-12-09 14:54:56 -05:00
Mathieu Choplain
f7d75fc991 samples: board: st: ccm: update sample for zephyr,dtcm usage
Update the ST CCM usage sample to be compatible with CCM as `zephyr,dtcm`.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-12-09 14:54:36 -05:00
Henrik Brix Andersen
d672bdbdcc samples: can: remove CONFIG_CAN_MAX_FILTER setting
Remove setting of CONFIG_CAN_MAX_FILTER and rely on driver defaults.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-12-09 14:54:02 -05:00
Julien Vermillard
eef720ff3f net: lwm2m: add send scheduler helper objects
Introduce the optional OMA 10523/10524 send scheduler extension to manage
cached resources, including control and sampling rule objects, cache
filter with gt/lt/st and pmin/pmax handling, max-age/max-sample limits,
and registration flush helper.
Add an overlay to the LWM2M client sample.
Add a fake humidity sensor.

Signed-off-by: Julien Vermillard <julien@clunkymachines.com>
2025-12-09 09:52:11 -05:00
Dmitrii Sharshakov
8725972764 samples: tfm_ipc: remove old overlay for nrf9160dk
The region sizes already match ones in nrf91xx_partition.dtsi,
and the overlay has not been adapted to the new partition DT updates.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-12-08 11:39:06 -05:00
Pieter De Gendt
3695b2c0ca shell: Add user data argument to shell_set_bypass
Allow passing some context to the shell bypass callback function by
providing a void pointer user data argument.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-12-08 09:39:05 -05:00
Seppo Takalo
c4c2c61ccd samples: net: cellular_modem: Remove nRF9160DK examples
Remove nRF9160DK examples from Zephyr's cellular modem sample as
these use nRF91 as an external modem and the pin configuration
heavily depends on the build target.

Therefore we would like to host and document our own examples
within our own repository with the Serial Modem application.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-12-08 09:38:01 -05:00
Mario Paja
b2098af1f5 boards: st: nucleo_h563zi: fix PLL clocks
These changes fix PLL clocks of nucleo_h563zi board

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-12-08 06:13:46 -05:00
Kate Wang
3768890460 samples: lvgl: Add board specific configuration for mimxrt700_evk
The mimxrt700_evk uses DC8000 to drive panel which requires a 64
byte align of buffer address and stride.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-12-06 07:12:26 -05:00
Kate Wang
79182d2d38 samples: drivers: display: Add user configuration
Add user configuration of buffer address alignment and update area pitch
alignment.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-12-06 07:12:26 -05:00
Holt Sun
b045e8fdc0 samples: counter: alarm: add nxp_rtc support.
Enable nxp_rtc device for sample counter alarm.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-12-06 07:10:11 -05:00
Peter Robinson
8e79423f74 samples: net: openthread: coprocessor: Add nrf52840dongle config
Add a config for the nrf52840dongle to use the CDC_ACM interface
for the ot_uart. Without this building the OpenThread coprocessor
fails to build when using the nrf52840 dongle because the UART
isn't defined so fix it.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
2025-12-06 07:09:50 -05:00
Zafer SEN
3e6424de4f sample: hl78xx: Add AirVantage FOTA support
Demonstrate SWIR AirVantage FOTA in the HL78xx sample.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2025-12-05 11:12:48 -05:00
Holt Sun
07a67e81b6 samples: memc: rw612: set AHB RX buffer defaults for FlexSPI cache/DMA
FRDM/RD RW612 overlays are updated to provide explicit AHB RX buffer
configuration for the FlexSPI controller, aligning with RW61x features:
- FlexSPI flash (port A): 32 KiB cache, dynamic decryption, XIP, DMA
- FlexSPI pSRAM (port B): 32 KiB cache, dynamic decryption, XIP, DMA

The rx-buffer-config now assigns a dedicated buffer for the primary
CPU traffic and leaves buffer 7 as the generic fallback, matching the
expected cache/DMA behavior and MCUX SDK defaults. This ensures sane
defaults when PSRAM is enabled without requiring users to patch AHB
buffer settings manually.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-12-05 10:54:12 +02:00
Kevin Chan
162be31386 samples: drivers: uart: async_api: support PSC3 and PSE84
- add overlay files in order to run async_api app.

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2025-12-04 17:12:23 -05:00
Julien Racki
b3cb7040e8 samples: watchdog: Add CI build test for STM32 IWDG EWI
This commit ensures the CI will run test build  for the STM32
that supports the IWDG early wake-up.

Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2025-12-04 17:12:08 -05:00
Fabin V Martin
eee296298e samples: sysbuild: update list of allowed platforms
Add pic32cx sg41 and sg61 cult boards.

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2025-12-04 17:11:43 -05:00
Jaro Van Landschoot
9be9684b53 samples: drivers: pwm: event: Add sample
Add a simple sample demonstrating how the PWM event API can be
used to precisely time 5 periods of a PWM signal.

Signed-off-by: Jaro Van Landschoot <jaro.vanlandschoot@basalte.be>
2025-12-04 14:05:13 -05:00
Mathieu Choplain
0289dec335 samples: board: st: wkup_pins: configure the GPIO pin as input
Certain series (e.g., STM32WBA) require pins to be configured as input
to behave properly as wake-up pins.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-12-04 14:03:17 -05:00