Commit graph

10700 commits

Author SHA1 Message Date
Grzegorz Chwierut
df40aa5574 twister: shell harness with commands alongside the harness_config
Allow user to add shell commands in testcase/sample yaml file
alongside the harness_config like in the console harness.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2025-02-14 19:14:38 +00:00
Tomas Galbicka
2589717852 samples: enable multicore samples for RT1180 board
This commit adds support for these multicore samples:
- samples/drivers/mbox
- samples/drivers/mbox_data
- samples/subsys/ipc/ipc_service/static_vrings
- samples/subsys/ipc/openamp

Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
2025-02-14 17:11:50 +01:00
Sylvio Alves
b39a830f0a samples: blinky: add esp32s3_supermini overlay
Add support for the supermini board to be build and run
by default.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-02-14 17:08:03 +01:00
Emil Gydesen
f54991b7dd samples: Bluetooth: Broadcast sink: Refactor audio RX path
Refactor everything related to RX in the sample.
The existing code will moved to new files with more specific
functionality, so that each file will become cleaner and use
fewer #ifdefs.

The USB part will be refactored a bit to follow the design used
by the LE audio shell, to make it easier to maintain both in
a similar way.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-14 17:03:51 +01:00
Dominik Kilian
84a215aff8 ipc_service: icmsg: Add "unbound" functionality
In some cases, CPUs that may need to reset or
temporary stop communication. This commit adds "unbound"
functionality that provides a callback to IPC service user
when connection was interrupted for some reason, e.g.
expected or unexpected CPU reset, closing the
endpoint. The "unbound" callback is optional to implement
by endpoints. This commit implements it in the ICMsg
backend.

Signed-off-by: Dominik Kilian <Dominik.Kilian@nordicsemi.no>
2025-02-14 13:34:49 +01:00
Steffen Jahnke
fa0ac75151 samples: Add necessary configurations for PAN B511 EVB
Running samples for PAN B511 evaluation board needs additional
configuartion.

Signed-off-by: Steffen Jahnke <steffen.jahnke@eu.panasonic.com>
2025-02-14 10:47:54 +01:00
Titouan Christophe
74bef41e0a samples: drivers: i2s: i2s_codec: add support for stm32f4_disco
Add configuration and board overlay in the I2S audio codec sample to
demonstrate usage of the newly introduced audio output feature.

Signed-off-by: Titouan Christophe <moiandme@gmail.com>
2025-02-14 10:42:53 +01:00
Lubos Koudelka
64e48014cd samples: boards: Add MCO support for nucleo_wba55cg
Added overlay and modified sample.yaml to support the nucleo_wba55cg
board in the MCO example. Due to GPIO conflict, UART print out is not
functional.

Signed-off-by: Lubos Koudelka <lubos.koudelka@st.com>
2025-02-14 10:41:18 +01:00
Alberto Escolar Piedras
2f2a91a8db samples/*/*shell: filter test with shell harness on bsim targets
The shell harness expects the UART can be routed to stdin/out on POSIX
arch based targets, but this is not the case for the bsim targets (at
least not yet, and not using the native_posix UART configuration option)

This causes these tests to fail timing out in CI => let's filter these
platforms by now.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-14 08:45:04 +01:00
Pierrick Curt
104fa969c6 samples: sensor: accel_trig: add sample tap detection feature.
Add the tap detection trigger to the existing example.
For this example it uses lis2dw12 accelerometer to detect a double
tap. This feature can be enabled with CONFIG_SAMPLE_TAP_DETECTION option.

Signed-off-by: Pierrick Curt <pierrickcurt@gmail.com>
2025-02-14 03:15:54 +01:00
Andrei Menzopol
17cc683c4e samples: echo_client echo_server: update tests
Group openthread tests under the same case and add frdm_mcxw71.

Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com>
2025-02-14 03:08:48 +01:00
Andrei Menzopol
e6be77bc1d samples: echo_client echo_server: add frdm_mcxw7 board overlays
Add frdm_mcxw7 board conf and overlay files for echo_client and
echo_server sample applications.

Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com>
2025-02-14 03:08:48 +01:00
Bjarki Arge Andreasen
846b468715 samples: drivers: i2c: rtio_loopback: add fixture
Add i2c_bus_short fixture to the rtio_loopback sample to ensure it
is only run on boards with the bus shorted. The i2c_bus_short
fixture is also used in the i2c_target_api test suite.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-02-14 00:47:34 +01:00
Tomi Fontanilles
0c368e85b1 secure_storage: add a global registry header file for PSA key IDs
We need to make sure that within Zephyr different users of the PSA APIs
don't interfere with each other because of using the same numerical IDs
for persistent assets.

This takes care of the PSA key IDs when using persistent keys through
the PSA Crypto API.
See the comments in `<zephyr/psa/key_ids.h>` for more information.

This removes the recently-introduced Kconfig options that allowed changing
the base IDs subsystems were using for their persistent keys.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-02-13 20:22:09 +01:00
Jilay Pandya
93b53efbe3 samples: stepper: add tmc50xx sample
Add a minimal tmc50xx sample with spi interface

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-02-13 20:11:11 +01:00
Kamil Piszczek
7c828bd232 bluetooth: dis: add Kconfig for disabling optional characteristics
Added new Kconfig option set that allows the user to control the
presence of the following optional characteristics:

- Manufacturer Name String
- Model Number String

Depreacted the old configuration that can be deleted in the future
Zephyr releases.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
2025-02-13 16:46:12 +01:00
Lucas Tamborrino
53e62cac49 samples: video: capture: Fix sample for esp32s3_eye
Add proper pixel format support for ST7789V display.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2025-02-13 16:43:52 +01:00
Detlev Zundel
4715a30683 samples: modules: lvgl: demos: Increase memory pool to fix crash
Due to the added demos, a memory pool of 49 KiB is no longer enough and
leads to crashes:

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

Increasing the memory pool to 57 KiB fixes the problem.

Signed-off-by: Detlev Zundel <dzu@member.fsf.org>
2025-02-13 12:14:30 +01:00
Khoa Nguyen
f8d05ea9e9 samples: drivers: counter: Add support alarm for ek_ra4m1
Add support counter/alarm to run sample app on ek_ra4m1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Marcin Niestroj
86b9ff37a1 samples: display: lvgl: test sample with 'seeed_xiao_round_display'
This shield is compatible with all XIAO boards. Tested with 2 of them:
 * xiao_ble
 * xiao_esp32s3

Extend sample.yaml for integration testing with both, so there is coverage
across two very distinct SoC vendors and architectures.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2025-02-12 23:16:13 +01:00
Marcin Niestroj
d116c74e7d samples: display: lvgl: s/samples/sample/ in sample.yaml
Use 'sample.' in the sample definition, in order to follow Zephyr
convention.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2025-02-12 23:16:13 +01:00
Marcin Niestroj
cd7b17a504 samples: display: lvgl: deduplicate sample.yaml using 'common' section
Move 'tags' and 'modules' into common section in samples.yaml, so test
definitions are deduplicated a bit.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2025-02-12 23:16:13 +01:00
Marcin Niestroj
92b71f4324 samples: display: lvgl: increase main stack size to 4k
When tested with xiao_esp32s3 + seeed_xiao_round_display main stack is
occupied with 3504 bytes (checked with 'kernel thread stacks' command).

Increase main stack size from 2k to 4k in order to make this sample work at
runtime.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2025-02-12 23:16:13 +01:00
Yasin Ustuner
2d11a1ed03 samples: drivers: w1: Add MAX boards sample overlay files
Enable w1/scanner sample for:
 - MAX32655EVKIT
 - MAX32666EVKIT
 - MAX32666FTHR
 - MAX32690EVKIT
 - MAX78000EVKIT
 - MAX78000FTHR
 - MAX78002EVKIT

Signed-off-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-02-12 23:15:57 +01:00
Anas Nashif
82bb172bc6 samples: flash_shell: filter on flash-controller
Sample expects flash-controller to be enabled as chosen.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-02-12 20:26:13 +01:00
Emil Gydesen
3b6a15a24d samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable
The BLE acronym is not an official description of Bluetooth
LE, and the Bluetooth SIG only ever refers to it as Bluetooth
Low Energy or Bluetooth LE, so Zephyr should as well.

This commit does not change any board or vendor specific
samples, and the term BLE may still be used in those.
It will be up to the vendors to update it if they want,
since many of them are using the term BLE in their
products.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-12 12:24:18 +01:00
Neil Chen
cb772b0f60 board: nxp: frdm_mcxa156: add config CONFIG_LPADC_DO_OFFSET_CALIBRATION
Update config CONFIG_LPADC_DO_OFFSET_CALIBRATION in soc level.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-02-12 09:49:17 +01:00
Emil Gydesen
49d9b4cb69 Bluetooth: PACS: Remove BAP infix for pacs_register_param
Since the PACS service is not part of the bt_bap API it should
not use the bt_bap prefix, and instead just be bt_pacs like the
rest of the PACS API.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-12 09:41:49 +01:00
Fengming Ye
4ffa27568d wifi: nxp: kconfig: decouple dependency of soft AP
Decouple dependency of CONFIG_NXP_WIFI_SOFTAP_SUPPORT.
Add wifi defconfig to set default kconfig options when soft AP
enabled.

Signed-off-by: Fengming Ye <frank.ye@nxp.com>
2025-02-12 09:40:38 +01:00
Jukka Rissanen
70c96b2642 samples: net: mdns_responder: Enable probing in CI
Make sure we have a compile test in CI for probing support.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-02-12 09:40:15 +01:00
Lubos Koudelka
37d143e436 samples: uart: single_wire: Add support for nucleo_wba55cg
Added support for the nucleo_wba55cg board to the uart/single_wire example.
- Updated the overlay file to configure USART2 and LPUART1 for single-wire
  mode.
- Modified sample.yaml to include nucleo_wba55cg in the list of supported
  boards.
- Updated README.rst to provide generic, board-agnostic instructions for
  building and running the application.

Signed-off-by: Lubos Koudelka <lubos.koudelka@st.com>
2025-02-12 09:39:09 +01:00
Hake Huang
9dcef722ac samples: magn_trig: fix the fixture name
the fixture name shall align with applications

also update dts to support trig mode

fixes: #85444

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2025-02-12 05:44:38 +01:00
Hake Huang
76a06086ae samples: accel_trig: add dts trigger mode for unsupport platform
mimxrt1040_evk and twr_ke18f need board rework for trigger mode
so dts need changed to add gpio trigger

fixes: #85444

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2025-02-12 05:44:38 +01:00
Marcin Niestroj
03cfd0b4fd samples: drivers: w1: s/samples/sample/ in sample.yaml
Use 'sample.' in the sample definition, in order to follow Zephyr
convention.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2025-02-12 05:43:36 +01:00
Rob Cornall
e40a11ec32 samples: drivers: spi_flash: Add MAX32655 support
Enable spi_flash sample for MAX32655FTHR and MAX32655EVKIT
which have an external Winbond W25Q128jv external flash.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
Signed-off-by: Rob Cornall <Rob.Cornall@analog.com>
Signed-off-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
2025-02-12 02:27:12 +01:00
Johann Fischer
5914131852 samples: usb: clean up legacy USB CDC ACM console sample
Remove the configuration for the new USB device stack, as there is now a
separate sample that demonstrates how to use it with Kconfig option
CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-12 02:22:18 +01:00
Johann Fischer
be5e666eb3 samples: usb: add console sample for the new USB device stack
Add sample to shows how to use the CDC ACM UART provided by the new
experimental USB device stack as a serial backend for the console.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-12 02:22:18 +01:00
Jérôme Pouiller
2deab04cfe tests: drivers: wifi: Enable board siwx917_rb4338a
Ensure nobdy break compatibility with SiWx91x chipsets.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-02-11 22:07:11 +01:00
Yangbo Lu
7a22dc9bec samples: net: dsa: add mimxrt1180_evk board support
Added mimxrt1180_evk board support.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-02-11 22:03:48 +01:00
Yangbo Lu
bffe46d5b1 samples: net: dsa: move platform specific options to board
Moved platform specific options to board.
Also changed IP/Gateway to align documentation.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-02-11 22:03:48 +01:00
Yangbo Lu
5dfe0710fd samples: net: dsa: rework for flexibility and extensibility
Current DSA sample is initially for ip_k66f board with a switch PHY,
while it is expected as a common DSA sample for all DSA devices.

This patch does not change any function. It only reworks the sample
with new added CONFIG_NET_SAMPLE_DSA_LLDP for ip_k66f with 3 LAN
ports.
Ideally this should be common for all DSA devices, but for now, ip_k66f
is the only platform supporting it.
As there will be more DSA functions supported, better to allow each
function enablement via option to suit hardware or device driver support
status.

Also improved dsa_ll_addr_switch_cb return value with enum value instead
of plain value.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-02-11 22:03:48 +01:00
Yangbo Lu
3cc12b5db7 samples: net: dsa: clang-format dsa_lldp.c
Fixed style problem for dsa_lldp.c with clang-format.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-02-11 22:03:48 +01:00
Yangbo Lu
3f6413d87d samples: net: dsa: handle disabled slave ports
The multiple ports DSA device may have some ports disabled in
dts. This should be handled in the sample.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-02-11 22:03:48 +01:00
Khoa Nguyen
bbebef3683 samples: drivers: dac: Add support for RA to test sample DAC
Add overlay to support RA to test sample DAC

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-11 11:44:40 +00:00
Valerio Setti
eb8fe504f7 samples: net: http_server: remove unused DER key file
"ca.der" contains an RSA key, but this file is now useless for this sample
as the sample is using EC keys. It's likely a leftover from some initial
development, so it can be removed.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-02-10 14:33:38 +01:00
Valerio Setti
9ddaee49c7 samples: net: http_server: update README file
Add a section with a practical example on how to build the sample in
order to test it with:

- real device
- ethernet over USB

and test it with a Linux host system.

Fix also references to overlay files that must be enabled to build the
HTTPS version.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-02-10 14:33:38 +01:00
Valerio Setti
cb19e26306 samples: net: http_server: use PSA Crypto instead of legacy Mbed TLS APIs
This commit also moves the TLS (overlay) configuration to a separate file
named "overlay-tls.conf". In this way the simple HTTP (without TLS) will
not enable Mbed TLS.

A new test case is added to sample.yaml to test HTTPS scenario.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-02-10 14:33:38 +01:00
Johann Fischer
baced6d315 sample: dumb_http_server: remove unused netusb configuration
USB device stack is not enabled and is not used in this sample, there is
no usb_enable().

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-10 11:31:25 +01:00
Anas Nashif
88b5f1232d samples: flash_shell: use shell harness
Use shell harness for basic testing of this sample.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-02-08 08:13:46 +01:00
Anas Nashif
f92ae6d844 samples: shell: use shell harness
Use shell harness for basic testing of this sample.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-02-08 08:13:46 +01:00