Commit graph

12,113 commits

Author SHA1 Message Date
Khoa Tran
67fff480d1 samples: subsys: fs: Add sample support for sdhc on Renesas RA
Add sample support for sdhc driver on Renesas ek_ra8m1 and
ek_ra8p1 board:
- samples/subsys/fs/fs_sample

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-11-13 20:33:44 -05:00
Khoa Tran
291ef0fccc samples: subsys: fs: Add tests support for SCI B SPI
driver using SDMMC card on Renesas RA boards

Add Renesas RA board support for these samples:
- samples/subsys/fs/fs_sample

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-11-13 20:33:44 -05:00
Ederson de Souza
1a52071392 samples/subsys/llext/edk: Add libc partition to extension memory domain
On platforms where `Z_LIBC_PARTITION_EXISTS` is true - such as Cortex-M
- it is necessary to add this partition to the memory domains of
userspace extensions, otherwise they get memory faults.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2025-11-13 23:20:34 +02:00
Ederson de Souza
5755081bb3 samples/subsys/llext/edk: Remove astray debug printk
It somehow got upstream...

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2025-11-13 23:20:34 +02:00
Raffael Rostagno
4f3d0e49a1 samples: openthread: shell: Remove unnecessary file
Remove unnecessary file. Node is already enabled on board's DTS.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-11-13 23:12:14 +02:00
Jiafei Pan
313d12f272 usb: fix build warning for printing format
Use zu% format for size_t type.
Use d% format for int type.
Use u% format for uint32_t type.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Signed-off-by: Jony Zhang <jony.zhang@nxp.com>
2025-11-13 23:11:09 +02:00
Fin Maaß
5e3cbb718c disk: remove redundant DISK_DRIVER_SDMMC
DISK_DRIVER_SDMMC is already by default y,
if it is enabled in the dt, so we shouldn't overwrite
that.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-11-13 11:20:20 -05:00
Benjamin Cabé
dba7304c98 doc: instrumentation: add documentation for the instrumentation subsystem
Add documentation for the instrumentation subsystem as this was missing
from the initial contribution.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-12 09:08:45 -05:00
Charles Dias
097f009348 samples: input: draw_touch_events: avoid avoid OOB writes
When CROSS_DIM doesn’t evenly divide the panel WIDTH/HEIGHT, the last
tile on the right/bottom edge can extend past the display bounds.

Fix by clipping the edge tiles.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2025-11-07 21:23:07 -05:00
Anas Nashif
4e9a4e385a cpu_load: rename conflicting API
We have two places defining cpu_load_get() and trying to the same thing,
one is a core kernel feature supported on all architecture, the other is
part of debug, requires tracing and supported only on a subset of
architectures. Both deliver different results and accuracy.

While we figure our how to merge those into one API and with the
advanatges of both, rename the API so there is no confusion about what
is being used.

Fixes #97845

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-11-07 10:27:50 +02:00
Henrik Brix Andersen
bfbb9714ae samples: drivers: adc: sequence: use fully qualified board names
Use fully qualified boards names for boards with more than one SoC.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2025-11-06 13:57:22 -05:00
Fabrice DJIATSA
6dab9df6e2 samples: drivers: adc: adc_sequence: remove stm32f3 from allow list
The stm32f3_disco board requires an external AD4114 sensor for the
ADC test to pass. Since this sensor is not available by default in
CI environments, the test fails.
Removing stm32f3 from the allow list prevents false negatives during
automated testing.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-06 13:54:32 -05:00
Abderrahmane JARMOUNI
5be6aa13b9 scripts: pylib: twister: expr_parser: some enhancements
Rename dt_node_prop_enabled filtering expression to
dt_nodelabel_prop_enabled as it takes a node label as a 1st argument.

Enhance dt_node_has_prop inline doc and param name.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-11-06 15:49:28 +02:00
Nicolas Pitre
bd5806d828 samples: zbus: benchmark: also filter SMP from MSG_SUBSCRIBERS test
Commit d93561da68 ("samples: zbus: benchmark: Filter SMP from
benchmark_sync test") avoided the SMP race condition for the
SUBSCRIBERS variant (benchmark_sync) by filtering out SMP configurations,
but the MSG_SUBSCRIBERS variant (benchmark_async_msg_sub) has the
identical race condition and needs the same filter.

Both variants use the same threading model:
- Producer thread: priority 5 (lower priority, runs later)
- Consumer threads: priority 3 (higher priority, runs first)
- Both use asynchronous delivery via queues (msgq vs fifo)

The race condition on SMP (detailed in d93561da68):
  CPU 0 (Producer):              CPU 1-3 (Consumers):
  -----------------              ----------------------
  Publish all messages           Still processing...
  atomic_get(&count)             atomic_add() comes later
  → Reports incomplete count!

The LISTENERS variant (benchmark_async) does NOT need filtering because
listeners are synchronous callbacks. Looking at subsys/zbus/zbus.c:130,
the listener callback executes directly within zbus_chan_pub():

  case ZBUS_OBSERVER_LISTENER_TYPE: {
      obs->callback(chan);  /* Synchronous! */
      break;
  }

All atomic_add() operations complete before the producer checks the
count, so there is no race condition with LISTENERS.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-11-05 15:35:23 -05:00
Zhaoxiang Jin
1ca157ef14 samples: i2s_codec: Remove duplicate configurations
Remove duplicate configurations.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-11-05 13:20:16 -05:00
Alain Volmat
b9a15a95ec samples: video: capture: fix index increment in caps display
Since the i index is already being incremented as part of the
for loop statement, the i++ done as part of the loop body should
not be done since this lead to skip of entries of the table and
moreover might lead to invalid access outside of the table.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-11-03 16:58:56 +02:00
Chris Friedt
8864ac4c1c samples: posix: philosophers: rename 'fork' to avoid POSIX conflict
There is a function, `fork()`, inside of the philosophers example that
conflicts with the POSIX `fork()` function.

Since it is customary to avoid using reserved names, adjust the sample
so that the function in question is called `philosopher_fork()`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-01 08:39:26 -04:00
Chris Friedt
ec84b80981 samples: cmsis: philosophers: rename 'fork' to avoid POSIX conflict
There is a macro, `fork()`, inside of the philosophers example that
conflicts with the POSIX `fork()` function.

Since it is customary to avoid using reserved names, adjust the sample
so that the macro in question is called `philosopher_fork()`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-01 08:39:26 -04:00
Chris Friedt
f6eb86fe6f samples: philosophers: rename 'fork' to avoid POSIX conflict
There is a macro, `fork()`, inside of the philosophers example that
conflicts with the POSIX `fork()` function.

Since it is customary to avoid using reserved names, adjust the sample
so that the macro in question is called `philosopher_fork()`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-01 08:39:26 -04:00
Benjamin Cabé
00770f4f38 samples: instrumentation: remove unnecessary include of instrumentation.h
The instrumentation.h header is not needed to compile the
instrumentation sample and it can be misleading for folks to think they
have to include it in their code to use the subsystem, so remove it.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-30 18:36:32 -04:00
Amneesh Singh
f0222a4e17 samples: adc_stream: fix sample filter
io-channels in zephyr,user is required for this sample to compile, so
add that to the filter and remove the redundant ifdef in the source code.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2025-10-30 15:15:08 +02:00
fb01c781b6 samples: led: fix the CH32V003 overlay
The overlay was done before the PWM node was moved under the timer
node, breaking the build. Fix.

Signed-off-by: Michael Hope <michaelh@juju.nz>
2025-10-29 20:32:52 -04:00
Raffael Rostagno
14d26b2093 samples: openthread: esp32c6: Add testcase
Add testcase for ESP32-C6 for compiling test.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-10-29 20:31:03 -04:00
Cristian Bulacu
536db93e8b samples: net: openthread: border_router: disable wifi blob for rw612
This commit disables monolithic wifi functionality for rw612 platform as
CI environement does not use binary blobs

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-10-29 13:48:11 +02:00
Cristian Bulacu
9049964e52 samples: net: openthread: border_router: Fix compile issues
This commits fixes OpenThread border router application compile issues
generated by latest upstream changes

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-10-29 13:48:11 +02:00
Vinayak Kariappa Chettimada
ce89a157e3 samples: Bluetooth: central_hr: Fix prj_minimal.conf use
Fix prj_minimal.conf as the project configuration and not as
the extra configuration for the sample.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-29 11:44:31 +02:00
Anas Nashif
303af992e5 style: fix 'if (' usage in cmake files
Replace with 'if(' and 'else(' per the cmake style guidelines.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-29 11:44:13 +02:00
Mario Paja
f0da1d79ff samples: i2s: output: fix nucleo_f767zi pllsai clock config
This change fixes PLLSAI clock configuration clock on
nucleo_f767zi board

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-10-29 10:33:12 +02:00
Pisit Sawangvonganan
74b3617003 doc: rst: fix typo in (boards, doc, samples)
Utilize a code spell-checking tool to scan for and correct spelling errors
in `.rst` files within the `boards`, `doc`, and `tests` directories.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-10-29 10:32:30 +02:00
Pisit Sawangvonganan
3678acf40d conf: fix typo in (samples, tests)
Utilize a code spell-checking tool to scan for and correct spelling errors
in `.conf` files within the `samples` and `tests` directories.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-10-29 10:32:19 +02:00
David Leach
4ea4262ab8 samples: usb: uvc: fix target sample filters for board specific overlays
Recent addition of UVC Video encoder added sample targets to the sample
without the proper filter to ensure twister didn't try to automatically
build the sample target.

Not all boards have the zephyr_h264enc and zephyr_h264enc in their
device tree.

Fixes #98275

Signed-off-by: David Leach <david.leach@nxp.com>
2025-10-28 11:47:49 +02:00
Jamie McCrae
dd5a3f1a3e dts: vendor: nordic: nrf5340: Fix SRAM partitioning
Uses the correct way to partition memory as per the linux binding,
also fixes names which were not compliant with the zephyr
devicetree guidelines

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-27 16:26:24 -04:00
Mario Paja
2290b95135 samples: i2s: output: add nucleo_f767zi
Add nucleo_f767zi board in samples/drivers/i2s/output

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-10-25 10:47:19 +03:00
Tomas Barak
71a51d384d samples: dmic: Add sample bit width configuration
- in order to support different bit widths introduce a Kconfig parameter
  SAMPLE_BIT_WIDTH used in the main.c - default is 16 bits
- for platforms with NXP micfil peripheral, default is 32 bits
- BYTES_PER_SAMPLE needs to correspond to BIT_WIDTH

Signed-off-by: Tomas Barak <tomas.barak@nxp.com>
2025-10-24 20:17:20 -04:00
Tomas Barak
2366f18772 samples: dmic: enable on mcxn9xx boards
- add overlays for frdm_mcxn947 and mcxn_n9xx_evk boards in order to
  enable micfil for the dmic sample

Signed-off-by: Tomas Barak <tomas.barak@nxp.com>
2025-10-24 20:17:20 -04:00
Valerio Setti
f960db846c modules: mbedtls: rename MBEDTLS_TLS_VERSION_1_2
Align Kconfig name to the Mbed TLS build symbol.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-24 13:27:59 -04:00
Valerio Setti
e1117f18fc modules: mbedtls: rename MBEDTLS_MD
Align Kconfig name to the Mbed TLS build symbol.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-24 13:27:59 -04:00
Alain Volmat
0f6a0d94fe samples: usb: uvc: add h264 / jpeg encoder test entries
Add entries in sample.yaml for enabling h264enc / jpegenc
uvc based test on the stm32n6570_dk/stm32n657xx/sb platform.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-24 13:25:34 -04:00
Alain Volmat
e761fd7f0f samples: usb: uvc: add h264/jpeg suffixed overlay
Add overlay files in order to enable usage of
the encoder in the UVC sample.
This work with platform defining node label
    zephyr_jpegenc
    zephyr_h264enc

Mode can be selected by using -DFILE_SUFFIX="jpegenc" or
-DFILE_SUFFIX="h264enc" when building the sample while
also adding -DCONFIG_VIDEO_ENCODER_JPEG or
-DCONFIG_VIDEO_ENCODER_H264 as well in the command line.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-24 13:25:34 -04:00
Alain Volmat
6a7aefaadd samples: video: tcpserversink: check video_enqueue/dequeue return values
Add proper check of the return value of video_enqueue / video_dequeue.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-24 13:25:34 -04:00
Alain Volmat
e7ae828f70 usb: usbd_uvc: add frame_based support (currently only H264)
The frame_based descriptors differ from the frame descriptors
in that there is no dwMaxVideoFrameBufferSize field.
In order to do that, add a new uvc_frame_based_discrete_descriptor
structure to be used to fill in proper information into the
frame descriptor. In addition to that, a new format descriptor
is also added for frame based transfer.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-24 13:25:34 -04:00
Alain Volmat
ac4566fa23 samples: usb: uvc: add video encoder support
Allow creating a pipeline as follow
   camera receiver -> encoder -> uvc

If the chosen zephyr,videoenc is available, the sample will pipe
the camera receiver to the encoder and then the UVC device instead
of directly the camera receiver to the UVC.

Current implementation has several points hardcoded for the time
being:
1. intermediate pixel format between the camera receiver and encoder
   is set to NV12. This shouldn't be hardcoded and should instead be
   discovered as a commonly capable format from the encoder / video dev
2. it is considered that encoder device do NOT perform any resolution
   change and that encoder output resolution is directly based on the
   camera receiver resolution.  Thanks to this, UVC exposed formats
   are thus the encoder output pixel format & camera receiver
   resolutions.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-24 13:25:34 -04:00
Alain Volmat
261e25fe28 samples: usb: uvc: add indirection for UVC source device
In preparation for the introduction of video encoder support
add an indirection for handling of the buffers of the UVC
source device. Currently this is only video_dev however it
can also be an encoder device when encoder is introduced
between video capture device and the UVC device.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-24 13:25:34 -04:00
Alain Volmat
0812c110d7 samples: usb: uvc: use video_transfer_buffer helper function
Replace video_dequeue / video_enqueue buffer exchange code by
video_transfer_buffer helper function.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-24 13:25:34 -04:00
Nicolas Pitre
c03653eab9 samples: posix: env: Add delay before printing environment variables
Add a 1 second delay before printing environment variables to give the
shell time to initialize and print its prompt. This prevents a race
condition where the shell prompt could interleave with the environment
variable output on SMP systems, causing test failures.

Without this delay, the output could appear as:
  BUILD_VERSIuart:~$ ON=v4.2.0...

With the delay, the shell completes initialization first:
  uart:~$
  BOARD=...
  BUILD_VERSION=...
  ALERT=

This fixes the sample.posix.env test timeout on FVP v9a/smp where the
test harness regex failed to match the corrupted output.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-10-24 13:22:19 -04:00
Sylvio Alves
1bc2378085 samples: driver: crypto: add ESP32 AES compat
Allow ESP32 SoCs to run AES sample.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-10-24 13:21:24 -04:00
Erwan Gouriou
fc15b749ab samples: sysbuild: with_mcuboot: stm32h7s78_dk: Use ext_flash_app variant
Now that ext_flash_app variant is available, it should be used for
mcuboot related apps on this board.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-10-24 13:21:10 -04:00
Ruijia Wang
41b3824f4a samples: Update XSPI memc and flash samples on RT700
Add memc sample for XSPI PSRAM.
Add spi_flash sample for XSPI Nor Flash.

Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
2025-10-24 08:56:59 -07:00
Josuah Demangeon
1ac86c4925 samples: drivers: video: capture: use DEVICE_DT_GET_OR_NULL for display
Allow the display to also use if() instead of #if by leveraging the
DEVICE_DT_GET_OR_NULL() that permit display_dev to always be defined.
The compiler will const-fold all the unused variables and functions.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00
Josuah Demangeon
db27102be6 samples: drivers: video: make capture sample failure more visible
Centralize exit of all helper functions and display a common message
that indicates clearly that the sample is not blocking on any function
but instead stopped running.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00