Commit graph

12,113 commits

Author SHA1 Message Date
Xavier Razavet
a9e111f6a9 samples: openthread: shell: boards folder creation to support MCXW7x
Creation of the zephyr/samples/net/openthread/shell/boards to support
the MCXW7x boards components.

Signed-off-by: Xavier Razavet <xavier.razavet@nxp.com>
2025-10-17 22:00:29 +03:00
Chris Friedt
d47c68f937 samples: net: capture: use EXTRA_CONF_FILE for native_sim
The generated docs for building this sample suggested using
`-DCONF_FILE=overlay-tunnel.conf`, but that was just an artifact of
using the `:conf:` directive in the kind of generic app-command.

Without specifying `-DEXTRA_CONF_FILE=overlay-tunnel.conf`, which
also pulls in `prj.conf`, there were a few build errors.

Update the docu to provide a concrete example of building for
`native_sim` with `:gen-args: -DEXTRA_CONF_FILE=overlay-tunnel.conf`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-17 17:02:34 +03:00
Jonas Berg
9434b2cb92 boards: shields: Add Adafruit DS2484 1-Wire shield
Product photo from https://learn.adafruit.com/assets/130701
with license CC BY-SA 3.0

Tested with command mentioned in the index.rst page.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-10-17 12:55:06 +02:00
Jamie McCrae
d99cddd4ec samples: mgmt: mcumgr: smp_svr: Add udp_dtls sample
Adds a sample which demonstrates how to use DTLS over UDP. This
copies the certificate files from the echo server sample to use as
dummy certificates

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-17 18:28:08 +09:00
Aksel Skauge Mellbye
c81245ff10 samples: basic: button: Disable led on slwrb4311a
Button 0 and LED 0 share a GPIO pin on slwrb4311a. Remove the
`led0` alias in a board overlay to make the button sample work
out of the box.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-17 11:18:28 +02:00
Chris Friedt
4fd03230d6 samples: net: capture: avoid net_ip.h conflicts with CONFIG_NATIVE_LIBC
The net capture sample is likely one application that does rely on linking
against the native C library rather than Picolibc, since it needs to hook
into Linux's tun / tap interfaces.

However, after removing `<zephyr/posix/...h>` from the default search
path, a number of conflicts appear between the native libc socket types
and Zephyr's in `net_ip.h`.

Issue 97050 already captures this partially. However, there seems to be
some confusion about POSIX headers and types and ISO C headers and types.

There are C libraries that do not include all of the necessary POSIX
headers and types that Zephyr depends on. For example:

* minimal libc
* IAR
* newlib
* picolibc

The latter two might surprise some.

In any case, the work required to properly namespace `net_ip.h` constants
and types is well out of the scope of the current release cycles, so this
small workaround should suffice.

A non-exhaustive list of constants and types from `net_ip.h` that conflict
with native types are

* PF_INET
* PF_INET6
* PF_PACKET
* PF_CAN
* PF_LOCAL
* SOCK_STREAM
* SOCK_DGRAM
* SOCK_RAW
* struct iovec
* struct msghdr
* struct cmsghdr
* struct sockaddr
* struct sockaddr_storage

A non-exhaustive list of errors that arise are of the form(s) below:
```shell
In file included from $HOME/../zephyr/net/ethernet.h:21,
                 from $HOME/../samples/net/capture/src/main.c:15:
../zephyr/net/net_ip.h:45: warning: "PF_INET" redefined
   45 | #define PF_INET      1     /**< IP protocol family version 4. */
      |
/usr/include/bits/socket.h:45: note: this is the location of the previous \
  definition
   45 | #define PF_INET         2       /* IP protocol family.  */
      |
In file included from /usr/include/bits/socket.h:38:
$HOME/zephyrproject/zephyr/include/zephyr/net/net_ip.h:89:9: error: \
  redeclaration of enumerator ‘SOCK_STREAM’
   89 |         SOCK_STREAM = 1,           /**< Stream socket type   */
      |         ^~~~~~~~~~~
/usr/include/bits/socket_type.h:26:3: note: previous definition of \
  ‘SOCK_STREAM’ with type ‘enum __socket_type’
   26 |   SOCK_STREAM = 1,              /* Sequenced, reliable,...
      |   ^~~~~~~~~~~
$HOME/zephyrproject/zephyr/include/zephyr/net/net_ip.h:250:8: error: \
  redefinition of ‘struct iovec’
  250 | struct iovec {
      |        ^~~~~
In file included from /usr/include/sys/socket.h:26:
/usr/include/bits/types/struct_iovec.h:26:8: note: originally defined here
   26 | struct iovec
      |        ^~~~~
```

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-17 11:17:40 +02:00
Lei Xu
53f7d8ca5a samples: fs: fs_sample: Increase CONFIG_MAIN_STACK_SIZE for imx93
Increase CONFIG_MAIN_STACK_SIZE to 8192 to avoid possible crash.

Signed-off-by: Lei Xu <lei.xu@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-10-17 11:16:48 +02:00
Valerio Setti
1bc2db575f modules: mbedtls: add new helper Kconfig symbol PSA_CRYPTO
The goal of new Kconfig PSA_CRYPTO_PROVIDER is to automatically enable
any of the PSA Crypto API provider available for the platform without
having the user to manually pick the proper one. This provider can be
either TF-M, if that's enabled in the build, or Mbed TLS otherwise.

PSA_CRYPTO_PROVIDER simplifies also modules/subsystem Kconfigs removing
blocks as:
	select MBEDTLS if !BUILD_WITH_TFM
	select MBEDTLS_PSA_CRYPTO_C if !BUILD_WITH_TFM

Kconfig PSA_CRYPTO_PROVIDER_CUSTOM is also added to allow the end user
to add a custom implementation of PSA Crypto API instead of TF-M or
Mbed TLS ones.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-17 11:16:25 +02:00
Etienne Carriere
b5db94d31c samples: net: cellular_modem: stm32: fix dma DTS phandle lists
Correct b_u858i_iot02a DTS overlay file DMA lists that was not split
by phandle and seemed to form a unique phandle. This is not currently
an issue with existing DT parsing macros and tools but may generate
build errors if tools are more strict on the DTS implementation format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
14cb3e2c10 samples: drivers: spi_flash: stm32: fix dma DTS phandle lists
Correct stm32h573i_dk DTS overlay file DMA list that was not split
by phandle and seemed to form unique phandle. This is not currently
an issue with existing DT parsing macros and tools but may generate
build errors if tools are more strict on the DTS implementation format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
775b03af0f samples: boards: st: power_mgmt: suspend_to_ram: fix dma DTS phandle lists
Correct nucleo_wba55cg board DTS overlay file DMA lists that was not
split by phandle and seemed to form a unique phandle. This is not
currently an issue with existing DT parsing macros and tools but may
generate build errors if tools are more strict on the DTS implementation
format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
c79d3d5505 samples: boards: st: uart: circular_dma: fix dma DTS phandle lists
Correct DTS file DMA lists that were not split by phandle and
seemed to form unique phandles. This is not currently as issue with
existing DT parsing macros and tools but may generate build errors
if tools are more strict on the DTS implementation formats.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Holt Sun
8a0d621d9d samples: drivers: rtc: add mimxrt10xx board configs
enable alarm and init priority for mimxrt10xx
sample/drivers/rtc

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-10-16 15:04:18 -04:00
Zacck Osiemo
7f6937dac5 samples: video: capture: Configure frame width and heght for mcxn236
SDMA as the video interface on this board requires
this size frame to be set for the sample to work

Signed-off-by: Zacck Osiemo <coderv63@gmail.com>
2025-10-16 12:17:29 -04:00
Ryan Erickson
282e2c78b1 samples: net: lwm2m_client: support Pinnacle 100 with HL78xx driver
Add support for using the HL78XX modem driver with Pinnacle 100
modem boards.

Signed-off-by: Ryan Erickson <ryan.erickson@ezurio.com>
2025-10-16 17:17:24 +03:00
Ryan Erickson
9f517efce2 samples: net: aws_iot_mqtt: support Pinnacle 100 with HL78xx driver
Add support for using the HL78XX modem driver with Pinnacle 100
modem boards.

Signed-off-by: Ryan Erickson <ryan.erickson@ezurio.com>
2025-10-16 17:17:24 +03:00
Ryan Erickson
b12d6e22ee samples: drivers: modem: hello_hl78xx: add support for pinnacle 100
Add support for Pinnacle 100 modem (HL7800) platforms.

Signed-off-by: Ryan Erickson <ryan.erickson@ezurio.com>
2025-10-16 17:17:24 +03:00
Zafer SEN
268b86aad0 samples: net: lwm2m_client/aws_iot_mqtt: add hl78xx driver config file
add support for HL78xx driver

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2025-10-16 17:17:24 +03:00
Zafer SEN
e7de32617a samples: drivers: modem: hello_hl78xx sample
Add HL78xx driver sample application

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2025-10-16 17:17:24 +03:00
Cristian Bulacu
b6f5d6c93f samples: net: openthread: border_router: Update configuration
Updating border router configuration to increase sistem stability and
enable additional features required by Thread certification suite

-common:
Increased some thread stacks and enabled stack sentinel
Stack sentinel will be disabled once the sample will not be marked as
EXPERIMENTAL
Enabled link metrics, mac filtering, MLD reports
-nxp-wifi-rcp:
Increased number of multicast ipv6 address for conformance testing
Increased number of DNS SERVERS

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-10-16 17:11:43 +03:00
Maochen Wang
2043603363 samples: net: wifi: enable NXP_WIFI_FW_DEBUG for RW612 and IW610
Enable NXP_WIFI_FW_DEBUG for RW612 and IW610 to support save FW dump
into flash for debug purpose.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-10-15 17:37:11 -04:00
Alain Volmat
b24004fa5d samples: video: tcpserversink: add STM32N6570_DK VENC support
Add STM32N6570_DK specific conf files and overlays in order to enable
the VENC encoder.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-15 17:35:25 -04:00
Khoa Nguyen
0f8f14e478 samples: subsys: ipc: Update sram label for Renesas devices
Update sram label for Renesas devices

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-10-15 11:47:07 -04:00
Jamie McCrae
9f8f441300 samples: net: common: Fix variable usage
Fixes variable usage to not use long deprecated environmental
values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-15 11:42:45 -04:00
Etienne Carriere
376d9cb3b7 samples: boards: st: power_mgmt: wkup_pins: add WBA65 boards
Add WBA65RI Nucleo board to ST wkup_pins board sample.
By the way, sort the board names in sample.yaml.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Zhaoxiang Jin
ce9481d3bb tests: adc: fix adc test run failure on NXP platforms
Commit: bf12516cb4
added several features to the NXP MCUX ADC16 driver, such as:
support for selecting the reference voltage between ADC_REF_EXTERNAL0
and ADC_REF_VDD_1. However, many NXP platforms with ADC16 previously
specified ADC_REF_INTERNAL as the reference voltage in the DT. This
caused these platforms to fail in ADC tests/examples.

This commit updates the reference voltage configuration for these
platforms to ADC_REF_EXTERNAL0. This update is backward compatible.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-15 15:37:06 +03:00
Piotr Kosycarz
21076a7426 samples: drivers: watchdog: remove ovarlays for nrf L15 and LM20 flpr
WDT at L15 and LM20 for FLPR core is not enabled.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-10-15 15:36:15 +03:00
Quy Tran
7e1fc96a7a samples: boards: renesas: Add LVD sample for Renesas
Add a simple sample using Comparator API to monitor the
voltage on Renesas boards

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-15 12:07:46 +03:00
Abhinav Kulkarni
2ccb1128b9 drivers: wifi: nxp: Add host sleep support
Added host sleep support for IW416 and IW61X soc.

Signed-off-by: Abhinav Kulkarni <abhinav.kulkarni@nxp.com>
2025-10-15 12:06:12 +03:00
Hui Bai
87619e3e00 samples: wifi: shell: Enable TLSv1.3 in wifi shell example
Enable TLSv1.3 for NXP wifi chips when hostap is enabled.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-10-15 12:04:18 +03:00
Luca Burelli
fa69daa6e9 arduino_uno_q: enable CI tests
Enable relevant Twister tests for the Arduino Uno Q board.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-10-14 17:40:07 -04:00
Erwan Gouriou
45c87c955e samples: fs: Enable building of STM32F7 platform
Add required sample test variant to enable systematic build of
stm32f7 platform using DMA configuration.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-10-14 18:54:10 +02:00
Johan Hedberg
46dddc5e51 Bluetooth: samples/tests: Update auto PHY usage to recent changes
Remove deprecated Kconfig option usage, and replace it with corresponding
options which yield the same behavior as before.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-10-14 18:53:08 +02:00
Minh Tang
90d032a0e7 samples: boards: renesas: Add sample for CTSU input driver
Add sample for CTSU input driver using QE config files on
RSK-RX130-512KB

Signed-off-by: Minh Tang <minh.tang.ue@bp.renesas.com>
2025-10-14 12:52:50 +03:00
Piotr Krzyzanowski
5bf970516b tests: drivers: gpio: add nrf54h20dk_nrf54h20_cpuppr
Enable GPIO tests on nRF54H20 CPUPPR.

Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
2025-10-14 12:52:03 +03:00
Bartlomiej Buczek
005cf8fce8 samples: drivers: adc: Enable samples for nrf54h20 PPR.
Fill in necessary config files with platforms data.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-10-14 12:51:44 +03:00
Alain Volmat
f2a3f11427 samples: video: avoid K_FOREVER wait on initial buffer allocation
On samples startup, video buffers are being allocated in order to
hold the captured data. Currently the timeout is set to K_FOREVER,
leading to having those samples waiting forever if there isn't
enought memory available on the platform.
Considering that this is done at beginning of the sample and at
that moment there isn't reason to having to wait for the
availability of memory, the timeout is replaced by K_NO_WAIT which
will allow to have the function returning with an error if the
allocation is failing.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-14 12:50:54 +03:00
Robert Lubos
f7e9d21936 net: coap_client: Use buffers instead of pointers for path and options
Use buffers instead of pointers for path and extra options provided in
the struct coap_client_request, so that the library keeps a copy of the
path/options instead of pointers. That way, the library can still work
correctly in case of retransmissions or block transfer in case when the
original path or options were automatic variables that went out of
context.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-10-14 12:50:39 +03:00
Tom Burdick
6c21c3f817 samples: mctp: Add sample.yaml's to samples
Adds the missing sample.yaml's for building these in CI and with
twister.

Fixes a build issue that came up along the way.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-10-13 18:13:23 -04:00
Pieter De Gendt
6728e78576 Revert "shell: Add user data argument to shell_set_bypass"
Revert a change that broke the stable API function shell_set_bypass.
This reverts commit 6b876dba1ba61b659b1b2d4c3ccd0ac41bd56027.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-10-13 18:12:42 -04:00
Richard Wheatley
d50f116279 samples: add overlay for adc samples/tests
adc adc overlay for samples and tests

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
2025-10-13 08:46:04 +02:00
James Roy
44ff3d3805 samples: Add red-black tree sample program
Introduce an example program to demonstrate
how to use the red-black tree API.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-13 08:44:07 +02:00
James Roy
ce8c0eac5b samples: data_structures: Fix the incorrect sample path in README
Change `samples/lib/mini_heap` to the actual path
`samples/data_structures/mini_heap`.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-13 08:44:07 +02:00
Emil Gydesen
1c004a08c3 Bluetooth: CCP: Client: Add support for get provider name
Add support for getting the remote bearer provider
name.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-10-13 08:43:47 +02:00
Philippe Peurichard
87ffb9711e samples: subsys: display: add stm32f469_disco conf file
Add stm32f749i_disco conf file to enable input driver
for touchscreen in LVGL samples applications.

Signed-off-by: Philippe Peurichard <p.peurichard@gmail.com>
2025-10-11 20:06:40 -04:00
Philippe Peurichard
d3f989378c samples: drivers: display: add stm32f469_disco conf file
Add stm32f749i_disco conf file to support samples display driver
applications . Increase the amount of HEAP to ensure
k_malloc allocation goes well.

Signed-off-by: Philippe Peurichard <p.peurichard@gmail.com>
2025-10-11 20:06:40 -04:00
Aksel Skauge Mellbye
48d3aef043 samples: basic: button: Disable led on xgm240 boards
Button 0 and LED 0 share a GPIO pin on xgm240 boards. Remove the
`led0` alias in a board overlay to make the button sample work
out of the box.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-10 20:51:03 -04:00
Chris Friedt
760d0cd500 samples: mcumgr: smp_svr: correct overlay-udp.conf to udp.conf
The EXTRA_CONF_FILE="overlay-udp.conf" should have been "udp.conf" after
with a recent rename.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-10 20:49:12 -04:00
Jamie McCrae
6fb782389c samples: mgmt: mcumgr: smp_svr: Remove overlay from Kconfig files
Removes the `overlay-` name from Kconfig fragment files as
overlay file refers to devicetree overlay files, not Kconfig
fragments

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-10 12:59:18 -04:00
Pieter De Gendt
4fa4329a16 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-10-10 12:53:55 -04:00