Commit graph

12,113 commits

Author SHA1 Message Date
Sebastian Głąb
3d56c2f8f8 tests: boards: nrf: coresight_stm: Align test to STM driver
There were recent changes to nrf54h20dk and STM driver.
Align test accordingly:
- add Kconfig that boots Radio core,
- update expected timing results.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-10-10 12:53:40 -04:00
Phi Bang Nguyen
ade4e05969 drivers: video: Set format size
Receiver drivers now need to set the format's size to expose it to
the application.

Application should base on the format size to allocate buffers. The
caps' min/max_line_count (which are needed only for HWs that cannot
support the whole image frame) can hence be dropped.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-10-10 12:53:28 -04:00
Titouan Christophe
1d1bf21538 audio: midi: do not cast into unsigned long in UMP_* macros
In commit 5e83d222b6, all bit masking
operations in audio/midi.h were modified to use BIT_MASK(n) instead of
literal hexadecimal constants. However, masking a number with a BIT_MASK
promotes it to an unsigned long (while UMPs are packets of uint32_t aka
unsigned on most platforms). This results in annoying warnings from LOG_*
calls, such as:

    warning: format '%lX' expects argument of type 'long unsigned int',
    but argument 4 has type 'uint32_t' {aka 'unsigned int'}

There is no point in making these long integers, so let's revert the
bit masks as they were before, with literal hexadecimal values.

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2025-10-10 12:52:11 -04:00
Erwan Gouriou
5c8380d32a samples: video: tcpserversink: Add stm32n6570_dk as integration platform
Required to build VIDEO_STM32_VENC.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2025-10-09 22:56:37 +03:00
Hao Zhang
1f1ea10c21 samples: tfm_regression_test: Add MAX32657EVKIT regression tests
Add MAX32657 under tfm regression test case.

There is only one uart interface that used by NS side, so that secure
tests are disabled.

Co-authored-by: Sadik Ozer <sadik.ozer@analog.com>
Signed-off-by: Hao Zhang <Hao.Zhang@analog.com>
2025-10-09 22:56:21 +03:00
Bjarki Arge Andreasen
d54d0849e1 samples: basic: minimal: add no-sw-isr-table option
Add option to build without software isr table for platforms which
support it (ARM and RISCV). The software ISR table takes up
kilobytes of RAM and introduces latency, and it is not needed if
CONFIG_MULTITHREADING=n.

The initially supported nrf54l15 and nrf54lm20 boards additionally
need CONFIG_CLOCK_CONTROL=n for the minimal sample so board configs
have been added for them. Note that the entry in sample.yaml uses
EXTRA_CONF_FILE to not overwrite the board specific CONF_FILE.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-09 22:56:09 +03:00
Anas Nashif
b827253306 doc: tf-m: fix link to documentation
Fix broken link to docs of TF-M.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-09 22:54:44 +03:00
Martin Hoff
93241cc666 samples/tests: adc: silabs: add multiple device overlays.
This commit introduces/updates overlays for multiple silabs boards
for ADC samples and ADC tests.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
8df78c0a62 samples: adc_sequence: differential mode handling in ADC conversion
This commit updates the ADC sequence sample to improve handling of
differential mode readings. It modifies the conversion logic to
correctly interpret 16-bit/32-bit signed values and adjusts the
resolution accordingly. This ensures accurate millivolt conversion
for both differential and single-ended configurations.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
073745e2a2 samples: adc_sequence: add oversampling configuration option
This commit introduces a new Kconfig option for oversampling
in the ADC sequence sample. It allows to test oversampling for
IADC sequences.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Peter Mitsis
b24fa39c70 tests: samples: Extend cpu_freq tests and samples
Extends the cpu_freq tests and samples to support both
SMP and the selection of Stub vs SoC implementations
of cpu_freq_pstate_set().

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
ec9a7f8cdd cpu_freq: Add SMP support
Extends the CPU frequency scaling to support SMP for two models.

Model 1: Each CPU/core can have its frequency scaled independently
of the others.

Model 2: All CPUs/cores use the same frequency scaling.

In both models, IPIs are sent from the timer handler to each of the
CPUs to obtain the most up-to-date CPU load information. For the
first model, each CPU sets its next P-state after determining its
load. For the second model, the next P-state is set by the last
CPU/core to determine its load and is based on the CPU/core with the
highest load.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
87570bae3e cpu_load: Make cpu_load_get() SMP safe
Update cpu_load_get() to work with both multiple threads as
well as multiple CPUs.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Andrzej Puzdrowski
56843f8eb0 samples/boards/nordic: align nrf54h20dk overlay
/delete-property/ for newly added aliases which points to nodes
already removed in that overlay.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2025-10-09 12:40:16 -04:00
Filip Kokosinski
eb5566dead samples/subsys/instrumentation: add missing sample.yaml
This commit adds a missing `sample.yaml` file to the instrumentation
subsystem sample.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2025-10-09 12:38:08 -04:00
Robert Lubos
cea1651914 samples: net: sockets: Add CoAP Upload sample
Add a new sample demonstrating various ways of performing CoAP uploads
with the CoAP Client library:
 * short uploads with payload pointer
 * short uploads with payload callback
 * block transfer uploads with payload pointer
 * block transfer uploads with payload callback

The resource names have been chosen so that the sample can run out of
the box against the Zephyr's CoAP server sample.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-10-09 12:37:47 -04:00
Cristian Bulacu
37cc1ff46b samples: net: openthread: border_router: Enable OT network diagnostics
Enablement of network diagnostics vendor info feature.
Updated nxp border router project config

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-10-09 12:36:57 -04:00
Kyle Micallef Bonnici
1476fcb935 Devicetree: remove deprecated ok state
The `ok` state is deprecated and very few files are using this.
The DTS spec also does not have this value.

This PR removes this value once and for all.

Signed-off-by: Kyle Micallef Bonnici <kylebonnici@hotmail.com>
2025-10-09 12:36:43 -04:00
Zhaoxiang Jin
91ab372b6a samples: i2s_codec: Refine sample for samll RAM platforms
- Configure BLOCK count by using kconfig option
'EXTRA_BLOCKS' instad of fixed value. This allows user to
customize the RAM usage based on their platform.
- Keep the PCM data in flash to avoid large RAM usage.
- Refine the sample to get the SAMPLE_BIT_WIDTH
and BYTES_PER_SAMPLE from Kconfig options.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-09 09:37:10 +02:00
Mario Paja
1b533322e9 samples: i2s: output: add nucleo_l552ze_q
Add nucleo_l552ze_q board in samples/drivers/i2s/output

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-10-09 09:36:37 +02:00
Anas Nashif
55af38cdbf samples: move pmci samples into samples/subsys/pmci
Move pmci samples under samples/subsys/pmci, given that pmci is a
subsystem in zephyr.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-08 18:24:27 -07:00
Vinayak Kariappa Chettimada
45d4d4ffb7 samples: Bluetooth: Fix BAP unicast client and server buffer counts
Fix BAP unicast and server sample ISO Tx buffer count to
match the minimum required to consistently transmit SDUs
in every ISO interval.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-08 15:12:32 -04:00
Hugues Fruchet
47e68bece9 samples: video: tcpserversink: add stm32n6570_dk support
Add configuration files for the stm32n6570_dk board.

This enables streaming over ethernet of the images captured by
MB1854 camera module compressed in 1920x1080 H264 video bitstream.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2025-10-08 15:11:56 -04:00
Hugues Fruchet
9497b60fe1 samples: video: tcpserversink: video compression support
Add video compression support to lowerize network bandwidth.

To visualise camera content on host PC, use GStreamer command line:
$> gst-launch-1.0 tcpclientsrc host=<board ip address> port=5000 ! \
          decodebin ! autovideosink sync=false

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2025-10-08 15:11:56 -04:00
Hugues Fruchet
aeb41fa636 samples: video: tcpserversink: N-buffering configuration
Allow to configure the number of allocated capture frames.
This allows to make tradeof between framerate versus memory usage.
2 buffers allows to capture while sending data (optimal framerate).
1 buffer allows to reduce memory usage but capture framerate is lower.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2025-10-08 15:11:56 -04:00
Hugues Fruchet
92eaf08053 samples: video: tcpserversink: sync with capture sample
Sync with video capture sample.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2025-10-08 15:11:56 -04:00
Hugues Fruchet
f40e031d8a samples: video: tcpserversink: change printk to LOG_
Change printk debug traces to LOG_*.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2025-10-08 15:11:56 -04:00
Titouan Christophe
dba0a28f52 samples: subsys: usb: midi: fix compilation warning
This fixes the following compilation warning:

    format '%X' expects argument of type 'unsigned int',
    but argument 2 has type 'long unsigned int'

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2025-10-08 15:06:33 -04:00
Titouan Christophe
f7ccc6bae3 lib: midi2: fix const-incorrect ump_stream_responder_cfg
Passing a USB-MIDI device in a ump stream responder configuration,
as obtained from the device tree with DEVICE_DT_GET(), was wrongly
casting is from const struct device* to void*, hence removing the const
pointer attribute.

This incorrectness introduces some compilation issue. Let's therefore
make the device pointer constant in ump_stream_responder_cfg, and
add a macro to make the proper typecast consistently. Finally, adapt the
corresponding samples to use that new macro.

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2025-10-08 15:06:33 -04:00
Karsten Koenig
0b5bb3c8c4 snippets: nordic-log-stm-tpiu-dict: Added
Added a new convience snippet to redirect logs to STM and then sink them
to TPIU where they can be captured by a trace probe.

Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no>
2025-10-08 10:09:02 +02:00
Karsten Koenig
02fb6fa1c8 snippets: nordic-log-stm: Updated for coresight
Replaced the old tddconf with the full coresight driver that configures
the coresight peripherals locally on the running core.
Also fixed minor bug in the corresponding sample where messages were not
shown for the radio core.

Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no>
2025-10-08 10:09:02 +02:00
Karsten Koenig
d833556ee5 drivers: debug: Moved nrf_etr from misc
Moved the nrf_etr driver from the drive/misc folder into the recently
established driver/debug folder where it is a better fit. Moved the
associated files such as bindings and headers accordingly as well.

Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no>
2025-10-08 10:09:02 +02:00
Abderrahmane JARMOUNI
bc2c089666 samples: drivers: adc: enhance test scenarios filtering
Make ADC samples' test scenarios depend on the existence of
required DT elements.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-10-08 08:47:27 +02:00
Ayush Singh
7781f95f44 samples: subsys: mgmt: mcumgr: smp-svr: Enable for BeagleConnect Freedom
- Add config to enable the sample for BeagleConnect Freedom over 802154
  subg.
- Also add instructions to the docs.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-10-08 08:44:28 +02:00
Titouan Christophe
3c50822e1d samples: net: midi2: new sample
Add a new sample to demonstrate usage of the newly introduced
Network MIDI 2.0 host stack.

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2025-10-08 08:42:27 +02:00
Titouan Christophe
b1d6252dfa samples: subsys: usb: midi: demonstrate usage of UMP Stream responder
Update the USB-MIDI2.0 sample to use the newly introduced
UMP Stream Responder library. This allows the host to discover the
topology and function block names (if supported by the host OS).

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2025-10-08 08:42:27 +02:00
Jakub Zymelka
6d7f429369 tests: comparator: nordic: Align boards overlays for changed input types
Align samples and tests boards overlays
for changed comparator input types.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2025-10-07 22:58:20 -04:00
Alain Volmat
7c4737196e samples: display: add stm32h7s78_dk board dedicated conf
Due to the large display of the STM32H7S78 DK, it is necessary
to have larger POOL_SIZE for display buffers.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-07 22:57:15 -04:00
Hui Bai
50ac559152 drivers: wifi: Add WLAN wakeup for MIMXRT1060-EVK
Added wlan wakeup pin in IW610 overlay file. This WLAN wakeup
support is for IW610 and MIMXRT1060-EVK acts as host. Add wakeup
pin configuration when doing device related initialization.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-10-07 22:55:21 -04:00
Håkon Amundsen
9d5f94f90b soc: ironside: add min and max values for update
The update will fail if the address is outside  of this range.
This failure might trigger a bad state where the device is
non-trivial to recover.

Signed-off-by: Håkon Amundsen <haakon.amundsen@nordicsemi.no>
2025-10-07 14:06:24 +02:00
Pieter De Gendt
cbef8679f4 net: lib: coap: Convert client response callback arguments to struct
Make it easier to modify the response callback data by passing it as a
struct pointer rather than a long list of arguments.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-10-07 11:00:50 +02:00
Jordan Yates
75cb327336 samples: nordic: nrf_sys_event: test SOC_NRF_FORCE_CONSTLAT
Validate that `CONFIG_SOC_NRF_FORCE_CONSTLAT=y` compiles.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-07 10:59:38 +02:00
Marek Matej
e36132359f samples: subsys: Fix ESP32 SoCs support
Fix ESP32 and ESP32-S3 support:

* Add Espressif overlays for default and remote target.
* Add remote targets for Espressif boards.
* Fix remote runtime by increasing the stack size in case of ESP32.
* Make the test cycle config option.
* Make the test stacks config options.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-10-07 10:58:20 +02:00
Filip Kokosinski
f5a349f45c scripts: move zaru.py to a separate directory
This commit moves the `zaru.py` script to `scripts/instrumentation`, and
adjusts references to the script in other places.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2025-10-06 15:06:25 -04:00
Raffael Rostagno
47a7038a2f samples: esp32: deep_sleep: Internal pull support
Some SoCs support EXT1 wake-up pins (RTC IOs) but do not provide
IOMUX features like internal pull-up/down resistors. Support for
these features is indicated by SOC_RTCIO_INPUT_OUTPUT_SUPPORTED.
This change updates the test configuration to account for this
and fixes EXT1 pin mapping for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-10-06 20:00:52 +03:00
Anisetti Avinash Krishna
caead9f4a9 tests: drivers: Add PTL-h overlays to support two applications
Added support for disk_access and I2C with bme280 application
for ptl-h platform.
-samples/sensor/bme280
-tests/drivers/disk

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-10-05 10:06:05 -04:00
Gustavo Romero
5d02fac803 samples: instrumentation: Add a sample for instrumentation subsys
Adds a sample to show the tracing and profiling features when the
instrumentation subsystem is enabled (CONFIG_INSTRUMENTATION=y).

The sample consists in two threads in ping-pong mode, taking turns to
execute loops that spend some CPU cycles. This allows a couple of
context switches and so to demonstrate tracing of thread scheduling
events.

The sample also has an example on how to capture and show traces and
profile info via the CLI tool zaru and also how to export the traces
so they can be loaded in the Perfetto Trace Viewer tool.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
Signed-off-by: Maciej Sobkowski <msobkowski@antmicro.com>
2025-10-05 06:18:25 -04:00
Detlev Zundel
abd0919bc9 samples: modules: lvgl: demos: Increase memory pool on native
Due to the added overhead on 64 bit native, we also need to increase
the memory pool size to fix crashes as described in here:

https://github.com/lvgl/lvgl/issues/7648

Signed-off-by: Detlev Zundel <dzu@member.fsf.org>
2025-10-03 21:00:40 -04:00
Detlev Zundel
e05a272817 samples: modules: lvgl: demos: Increase main stack to fix crash
The increased complexity of the LVGL code now overruns the 4 KiB stack
of the main thread. Increase it to 6 KiB to fix the error.

Fixes: #94473

Signed-off-by: Detlev Zundel <dzu@member.fsf.org>
2025-10-03 21:00:40 -04:00
Andrej Butok
e5c37d417d littlefs: boards: delete frdm_mcxa156 configuration
Deletes special LittleFS configuration for the FRDM-MCXA156 board.
It's not required after MCXA156 flash write-program-size
was reduced from 128 to 16 bytes.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-10-02 21:58:04 +02:00