Commit Graph

10846 Commits

Author SHA1 Message Date
Georgios Vasilakis
0081207078 samples: tfm: tfm_psa_test: Add temporary isolation workaround
Add a workaround which sets the isolation level to 2 in CMake.
The TF-M tests require the large TF-M profile because it supports
the full list of crypto algorithms needed, not because of the
solation level.

For the TF-M tests the isolation level is irrelevant so we
set it to 2 here so that we don't exclude the platforms which
don't support the isolation level 3.

I communicated with a TF-M maintainer and he informed me that this
workaround will be included in the TF-M 2.2 release branch later
so this is a short lived workaround that can be reverted when the
relevant commit from the TF-M branch is cherry-picked.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
2025-07-11 09:41:26 -05:00
Khaoula Bidani
09778c36eb samples: sysbuild: update list of platforms
Add nucleo_u385rg_q boards to test the MCUboot builds.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-07-09 17:15:56 -05:00
Philipp Steiner
aa8b259167 samples: fuelgauge: resolve_merge_artifacts
moves adafruit_feather_esp32s3_tft_reverse_procpu.conf file
to the correct folder after PR was merged.

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-07-09 09:44:35 -05:00
Gaetan Perrot
36fe97f2ee samples: net: mqtt_sn_publisher: Remove shadowed variable
Avoids shadowing the outer 'err' variable by reusing it instead of
redeclaring it inside a conditional block.

This improves code readability.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-08 13:44:28 -05:00
Gaetan Perrot
0dd63fcbd3 samples: shields: x_nucleo_iks02a1: run clang-format
Run clang-format on files.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-08 13:39:47 -05:00
Gaetan Perrot
f33adc5ade samples: shields: x_nucleo_iks02a1: Remove unused variable
The `die_temp` variable declared under `CONFIG_ISM330DHCX_ENABLE_TEMP` was
never used.

Instead `die_temp2` was used without using
`CONFIG_ISM330DHCX_ENABLE_TEMP`.

Removing it to avoid confusion.

The variable `die_temp2` holds temperature data from IIS2MDC.

Since there is no other variable with this purpose anymore, rename it to
die_temp for clarity.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-08 13:39:47 -05:00
Daniel DeGrasse
5700ffe9ad samples: mgmt: hawkbit: force BOOT_MAX_IMG_SECTORS for stm32h573i_dk
The stm32h573i_dk target had the default value of BOOT_MAX_IMG_SECTORS
raised in efdd2a8ff2 (west.yml: MCUboot synchronization from upstream).
This currently causes a build failure on some samples running with mcuboot
because the platform has not been moved to use external flash (which was
the reason for increasing BOOT_MAX_IMG_SECTORS)

To workaround this, force the value of BOOT_MAX_IMG_SECTORS for failing
tests.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-07-08 11:05:36 -05:00
Krzysztof Sychla
a51d3c0f74 kernel: heap: Add allocation metadata to allocated_bytes
The allocated_bytes were missing the allocation metadata. Because of that
the sum of free_bytes and allocated_bytes doesn't remain constant after
each allocation. This convention doesn't match glibc's behavior. This
commit changes the chunksz_to_bytes function to include the metadata in the
calculation. The analysis of the mallinfo2 function from glibc has been
done in #92392 Pull Request.

Signed-off-by: Krzysztof Sychla <ksychla@antmicro.com>
2025-07-07 10:08:58 -05:00
Gerson Fernando Budke
b478cd8f37 linker_script: Remove some remaining SUBALIGN in iterable sections
The #91219 miss some entries when doing the clean-up. This removes
some of remaining SUBALIGN entries in the iterable sections. It do
not consider SECTION_PROLOGUE and zephyr_linker_section entries.

Fixes #92349

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2025-07-07 10:07:56 -05:00
Gaetan Perrot
a16c50472a samples: drivers: i2s: i2s_codec: Remove shadowed variable
Avoids shadowing the outer 'ret' variable by reusing it instead of
redeclaring it inside a conditional block.

This improves code clarity.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-07 10:05:24 -05:00
Tim Pambor
f682a173d8 net: socket: mgmt: Fix function signature
Update the trigger_events function signature to match the expected
k_thread_entry_t type:
typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3);

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-07-04 14:21:23 -10:00
Francois Ramu
3978ca15ff samples: boards: st: blink with low power mode management in DEBUG
Add a precision about the CONFIG_DEBUG :
When CONFIG_DEBUG is set, the system will not enter the low power mode
The DEBUG is possible but with higher power consumption of the target.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2025-07-04 13:10:12 -05:00
Johan Hedberg
c85cc47b5b Bluetooth: samples: Fix off-by-one bug in atomic API usage
The code was accessing bits 1 and 2 (but not 0), effectively needing three
bits, but still requesting only 2 when calling ATOMIC_DEFINE().

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-07-04 13:05:22 -05:00
Phi Bang Nguyen
7a3737b9bb samples: video: capture: Enable deferred logging
Immediate log mode may use a lot of stack and hence may cause some stack
overflow on some boards.

Enable deferred log mode to have the least impact on the application.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-07-03 11:56:30 -05:00
Phi Bang Nguyen
1c9f8904ed samples: video: capture: Add condition for test pattern test
Add condition to do the test pattern fixture test only if the test
pattern control was successfully set.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-07-03 11:56:30 -05:00
Alain Volmat
706895cc27 samples: video: capture_to_lvgl: add crop/compose support
Demonstrate the crop/compose API by introducing 4 new
CONFIG options in order to define the crop area.
Moreover, if the selection API is available and if
the targetted size is different from the current crop
size, then try to apply a compose in order to reach
the targetted format size.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-07-03 11:56:07 -05:00
Alain Volmat
aa345401bb samples: video: capture_to_lvgl: add stm32n6570_dk/fsbl conf
Add the conf file for the stm32n6570_dk in its FSBL variant

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-07-03 11:56:07 -05:00
Alain Volmat
5508534685 samples: video: capture: add conf for stm32n6570_dk fsbl
Add the board conf file for the stm32n6570_dk in its fsbl
variant.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-07-03 11:56:07 -05:00
Jonathan Nilsen
b18c326946 soc: nordic: move nrf_ironside from drivers/firmware to soc/nordic
Move the IronSide APIs to soc/nordic from drivers/firmware since
these are vendor specific APIs. The header files are now included
from <nrf_ironside/*.h>. Adjust code that uses these APIs accordingly.

Also move the DT binding for "nordic,ironside-call" from
bindings/firmware to bindings/misc.

Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
2025-07-02 17:57:45 -05:00
Grzegorz Swiderski
75dd614437 drivers: firmware: nrf_ironside: Update the spelling
s/IRONside/IronSide/g

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2025-07-02 17:57:45 -05:00
Vit Stanicek
fe11acc21c samples: i2s_codec: Fix i2s API misuse
Replace i2s_write invocation with i2s_buf_write invocation for test sine
wave playback.

When CONFIG_USE_DMIC=n, this sample attempts to play back a test sine
wave encoded in sine.h. As the i2s_write treats the given buffer as a
memory slab, it overwrites parts of it, resulting in data corruption and
improper playback. i2s_buf_write accepts a buffer existing outside the
playback queue (heap).

Manually tested on mimxrt595_evk/mimxrt595s/cm33 where it was first
observed.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-07-02 03:52:35 -10:00
Pisit Sawangvonganan
a163f9db61 kconfig: fix typo in (arch, boards, kernel, modules, samples, share)
Utilize a code spell-checking tool to scan for and correct spelling errors
in `Kconfig` files within the `arch`, `boards`, `kernel`, `modules`,
`samples`, and `share` directory.
Additionally, incorporates a fix recommended by the reviewer.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-07-01 10:58:54 -10:00
Cong Nguyen Huu
a53582dab8 tests/samples: drivers: create test, sample for psi5 driver
Create test, sample for psi5 driver

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2025-07-01 10:53:59 -10:00
Sylvio Alves
72b0f08d0b samples: i2s echo: guard audio_codec configuration
Ensure the I2S echo sample only configures the audio_codec driver
when the `audio_codec` node is defined and enabled in the devicetree.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-07-01 10:15:14 -05:00
Alex Zhou
9aa0ae9378 samples: Bluetooth: PAWR: Fix Response Slot Delay Value is too Small
Previously, reponse slot value is 5* 1.25ms = 6.25ms , on nxp rw61x
platform, host got the periodic adv report v2 and after about 6ms,
send reponse data cmd,  it is too late , so always rpt the 0x46 too
late err code to host , in order to send the response , so make rsp
delay update to 10ms.

Signed-off-by: Alex Zhou <alex.zhou@nxp.com>
2025-06-30 17:37:19 -05:00
Josuah Demangeon
28639862ba samples: drivers: video: capture: remove invalid build instruction
Remove the build instruction from README about using the native_sim
without using the video-sw-generator snippet, as it cannot build.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-06-30 15:24:03 -05:00
Josuah Demangeon
53dfa28367 samples: drivers: video: add DT_HAS_CHOSEN() safeguards
Add macros giving hints to users using #error, about what might be
missing to build and run the samples, such as a missing "chosen"
devicetree node.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-06-30 15:24:03 -05:00
Yishai Jaffe
3b45feeb8b samples: fade_led: add direction per LED
Fixed a bug where that was caused because the different LEDs use the
same 'dir' variable and that caused them to eventually lose
synchronization.

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
2025-06-30 15:16:37 -05:00
Flavio Ceolin
8caef68264 samples: tfm_psa_test: Set TFM_PROFILE
TEST_PSA_API requires TFM_PROFILE to be set to "profile_large".

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-06-27 18:52:39 -05:00
Sylvio Alves
f775f9a96e samples: bluetooth: add esp32c6 testcase
Allows CI to build and test bluetooth driver of ESP32-C6 SoC.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-06-27 18:27:15 -05:00
Karol Lasończyk
061036f9e3 tests: samples: Extend support for nRF54LM20A
Extends support and adds new overlays.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-27 18:26:57 -05:00
Martin Hoff
0fcffb5d87 samples: subsys: nvs: add overlay for siwx917_rb4338a board
siwx917_rb4338a board needs a custom conf to run the nvs sample.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-06-27 08:50:14 -10:00
Kate Wang
22c23ea037 samples: modules: lvgl: Enable example for g1120b0mipi on mimxrt798s
Enable lvgl example for g1120b0mipi shield on mimxrt798s board.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-06-27 08:49:44 -10:00
Iuliana Prodan
cae6321cd8 samples: use address translation ops in openamp_rsc_table sample
Update openamp_rsc_table sample to use `metal_io_ops` for address
translation, if configured.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-27 08:44:56 -10:00
Iuliana Prodan
0300c88380 samples: enable OpenAMP address translation on i.MX8ULP
Enable address translation in board config for imx8ulp_evk_mimx8ud7_adsp.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-27 08:44:56 -10:00
Peter Wang
cec6d68284 boards: frdm_mcxa166, frdm_mcxa276: add temperature sensor support
1. enable temperature sensor support
2. verified samples/sensor/die_temp_polling

Signed-off-by: Peter Wang <chaoyi.wang@nxp.com>
2025-06-27 09:53:28 -05:00
Federico Di Gregorio
22210724c7 boards: opta: external flash and BLE support
This set of changes adds support for QSPI-based external flash and
Bluetooth to the device tree. This make it possible to correctly build and
execute the fatfs and several Bluetooth samples out of the box.

Also added a function to read the external flash OTP to extract
information about the Opta model and hardware features and a second
function to retrieve the "official" Opta serial number.

Signed-off-by: Federico Di Gregorio <fog@dndg.it>
2025-06-27 09:52:42 -05:00
Alain Volmat
e4348ad877 samples: video: capture: add a stm32mp135f_dk config
Add a configuration file for the stm32mp135f_dk board.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-06-27 12:25:52 +02:00
Josuah Demangeon
b60609adea samples: usb: add new UVC sample
Following the addition of USB Video Class, this adds a sample that makes
use of the zephyr,camera chosen node of any board to stream the video
source to the host. A snippet video-sw-generator can be used to test
and debug devices without a zephyr,camera chosen node.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-06-27 12:25:41 +02:00
Saravanan Sekar
e4ae7d0b56 samples: pwm: add the lp_mspm0g3507 to the blinky_pwm and led/pwm samples
The lp_mspm0g3507 has a red LED that can be driven by GPIO or PWM TIMA0
CH0, set maximum prescale and divider to arrive lower timer clock from
clock source. Add to the samples.

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2025-06-27 10:57:05 +02:00
Saravanan Sekar
8b4a97f12c dts: arm: ti: mspm0: Set timer node name per datasheet
Set timer node name per datasheet for timg0.

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2025-06-27 10:57:05 +02:00
Cong Nguyen Huu
1a3f46ce6e tests/samples: drivers: create test, sample for SENT driver
Create test, sample for SENT driver

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2025-06-26 18:50:07 -10:00
Philipp Steiner
67211341ca samples: fuelgauge: unify fuel gauge sample
Replace IC specific fuel gauge example with a generic fuel gauge example
and move the fuel gauge sample to sample/drivers folder

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-06-26 22:08:44 -05:00
Philipp Steiner
ebaf31c8c1 boards: adafruit: add initial support esp32s3_feather_tft_reverse
The Adafruit Feather ESP32S3 TFT Reverse is a development board in the
Feather standard layout, sharing peripheral placement with other devices
labeled as Feathers or FeatherWings. The board is equipped with an
ESP32-S3 mini module, a fuel gauge, a USB-C and Qwiic/STEMMA-QT connector.
This variant additionally comes with a 240x135 pixel IPS TFT color display
on the backside of the boards and with 3 buttons.

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-06-26 10:44:53 -10:00
Fin Maaß
ab0c9b861e samples: add CONFIG_LOG_TIMESTAMP_USE_REALTIME
add CONFIG_LOG_TIMESTAMP_USE_REALTIME to a sample,
so building with it is tested.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-06-26 11:03:22 -05:00
Sayooj K Karun
e719ba239f include: zephyr: sys: simplify MIN_HEAP_FOREACH macro
Refactor the `MIN_HEAP_FOREACH` macro to use a cleaner
for-loop style removing the need for a third `body` argument.
Update the sample application with the new macro changes.

Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2025-06-26 11:58:05 -04:00
Jeppe Odgaard
dffbd4fc88 license: fix copyright owner
Change license owner to Prevas due to initially wrong owner due to company
mix-up during co-development.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-06-26 10:56:48 -05:00
Duy Nguyen
5ac1e5e39e samples: Add exclusion for twister harness on qemu_rx
The qemu_rx is having issue with twister harness, command cannot
be send from twister test to qemu console, this commit temporary
disable them for further checking

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-06-26 14:07:03 +02:00
Lewis Lee
6d34549ff3 drivers: audio: dmic: Add Apollo510 PDM driver for DMIC.
Add PDM driver for DMIC.
This driver is compatible with samples/audio/dmic application.

Signed-off-by: Lewis Lee <llee@ambiq.com>
2025-06-26 14:06:49 +02:00
Marek Matej
e93a6338d4 samples: ot: shell: update the sample configuration
Add l2 shell and ieee802154 node to the samples.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-06-26 11:12:34 +02:00