Commit graph

10700 commits

Author SHA1 Message Date
Anas Nashif
7fa52993b0 samples: mpu_test: verify sample using shell harness
Verify sample using shell harness instead of just building the sample.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-02-08 08:13:46 +01:00
Andrej Butok
b10587f2d6 samples: mcux_acmp: allow for mimxrt1170_evk revA
Allow mcux_acmp sample for mimxrt1170-evk revA.
mimxrt1170-evkb does not support ACMP.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-02-08 04:06:42 +01:00
Aurelie Fontaine
1d3681dedc samples: sensor: tdk_apex: update naming
Rename ICM42670 define to ICM42X70 to be aligned with updated driver
to support icm42370-p

Signed-off-by: Aurelie Fontaine <aurelie.fontaine@tdk.com>
2025-02-08 00:31:43 +01:00
Aurelie Fontaine
cd2d6ae90e samples: sensor: 6dof_motion_drdy: update naming
Rename ICM42670 define to ICM42X70 to be aligned with updated driver
to support icm42370-p

Signed-off-by: Aurelie Fontaine <aurelie.fontaine@tdk.com>
2025-02-08 00:31:43 +01:00
Chaitanya Tata
a85eb146a3 samples: net: wifi: shell: Enable coredump logging
This is handy to use Zephyr tools to convert to a coredump for offline
analysis.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-02-07 17:54:51 +01:00
Jukka Rissanen
cd92dc2e2f samples: net: mdns_responder: Increase ZVFS_POLL_MAX
The sample needs a bit more resources. The existing build
assert complains about this

error: static assertion failed: "CONFIG_ZVFS_POLL_MAX must be larger than
 ((1 + (2 + 0)) + (3 + 3) + 0)"
include/zephyr/net/dns_resolve.h:146:1: note: in expansion of macro
 'BUILD_ASSERT'
  146 | BUILD_ASSERT(CONFIG_ZVFS_POLL_MAX >= DNS_DISPATCHER_MAX_POLL,
      | ^~~~~~~~~~~~

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-02-07 17:47:12 +01:00
Jukka Rissanen
9a642f5542 samples: net: mdns_responder: Init VLAN before waiting network
VLANs need to be initialized before the wait_for_network() call
so that VLAN interfaces are ready at the start.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-02-07 17:47:12 +01:00
Carlo Weidinger
c97710cbfd samples: Bluetooth: Improve printing in NUS sample
Removing the message buffer and printing out the message directly.
Creating a message buffer with the size of CONFIG_BT_L2CAP_TX_MTU
creates a large empty buffer, which is expensive for the stack and
can lead to a stack overflow.
This way, the sample can be more easily integrated with
other Bluetooth functionalities, such as Bluetooth OTA.

Signed-off-by: Carlo Weidinger <carlo.weidinger@protonmail.com>
2025-02-06 17:49:27 +01:00
Johann Fischer
4a3ce3334e samples: usb: midi: use correct Class Code triple
USB MIDI2 implementation has IAD and should use an appropriate triple to
indicate it.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-06 17:49:12 +01:00
Johann Fischer
2914174d27 doc: usb: minor fixes to improve consistency
Follow-up on newly introduced USB MIDI2 support.
Prefix with usbd_, use midi2 consistently.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-06 17:49:12 +01:00
Luca Burelli
187a8ad09b samples: fade_led: fix build error when PWM is not enabled
Some boards may define LEDs but disable them by default due to conflicts
with other peripherals. In this case, the new sample code introduced in
a5fd92b ("samples: fade_led: use all available LEDs") fails to build
with a missing symbol error.

Fix this by checking if the PWM device (the parent of the LED alias) is
enabled before using it. This implicitly discards invalid aliases.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-02-06 14:47:15 +01:00
Hake Huang
0d8024d208 samples: dac: simplify meta data
use config from dts to get the supporting status.
remove the platfrom_allow list.

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-02-06 14:45:40 +01:00
Charles Dias
435b6f6cb9 boards: shields: add suport for st_b_cams_omv_mb1683
Add support for ST B-CAMS-OMV MB1683 shield.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2025-02-06 14:44:54 +01:00
Ibe Van de Veire
96a235499b boards: arm: sam4s_xplained: Enable DAC support
Enable DAC entry in device tree and pinctrl (PB13/PB14).
Update doc/yaml files to include ADC info.
Update the sample for sam4s_xplained.

Signed-off-by: Ibe Van de Veire <ibe.vandeveire@basalte.be>
2025-02-06 10:43:17 +01:00
Fabrice DJIATSA
7d6f1067e2 samples: drivers: adc: adc_dt: update adc_dt sample
nucleo_C071rb overlay file contains all ADC node configurations
to be able to run the sample.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-02-06 10:41:45 +01:00
Hake Huang
d40eed4395 samples: sensor: enable sensor trigger
1. enable sensor trigger.
2. add a fixture for cases, as some platform need
   special rework.

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2025-02-06 07:44:55 +01:00
Irfan Ahmad
cc40ec60eb samples: Fix fs format sample README to correct a formatting problem
The Sample Output section is missing a blank line before the code block
markup, resulting in the sample output text showing up with an incorrect
format. Fixed by adding a blank line.

Signed-off-by: Irfan Ahmad <irfan.ahmad@siemens.com>
2025-02-05 14:58:36 +01:00
Robert Lubos
b7cfa54c18 net: tc: Deprecate CONFIG_NET_TC_SKIP_FOR_HIGH_PRIO
Since a separate CONFIG_NET_TC_RX_SKIP_FOR_HIGH_PRIO was introduced for
RX TC queues, CONFIG_NET_TC_SKIP_FOR_HIGH_PRIO became ambiguous,
rename it to CONFIG_NET_TC_TX_SKIP_FOR_HIGH_PRIO and deprecate the old
config.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-02-05 12:37:01 +01:00
Vinayak Kariappa Chettimada
21cb301447 samples: Bluetooth: GATT write commands with connection PHY Update
Update the Central and Peripheral GATT write command sample
to measure throughput across all supported connection PHYs.

Cover the sample in BabbleSIM CI testing to validate the 2M
PHY throughput after all supported PHYs have been changed
once.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-05 08:16:30 +01:00
Marek Matej
b58c424946 samples: Simplify ESP32 overlays moving to socs
Move overlays and conf from boards to socs in following samples :

- samples/drivers/adc/adc_dt
- samples/drivers/counter/alarm
- samples/drivers/dac
- samples/subsys/settings

Signed-off-by: Marek Matej <marek.matej@espressif.com>

add more samples

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-02-05 01:12:26 +01:00
Yishai Jaffe
a5fd92b0ab samples: fade_led: use all available LEDs
Refactored the sample code to use all available PWM LEDs

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
2025-02-05 01:11:48 +01:00
Emil Gydesen
dbabc18940 samples: Bluetooth: Audio: Spring cleanup for audio header files
Add missing and remove unused includes. Fix spelling mistakes.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-04 12:03:04 +01:00
Johann Fischer
694c342885 samples: usb: add sample for the new USB DFU implementation
The sample defines an image that uses RAMdisk and also provides an
option to enable USB DFU flash backend for the "slot-1" flash partition.
Assuming the user runs this sample from the slot-0 partition, uploading
to flash should work fine for evaluation purposes.

If the sample is built with CONFIG_BOOTLOADER_MCUBOOT=y, the sample will
mark the image in slot 1 as pending after an image download.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-04 11:55:25 +01:00
Johann Fischer
3bfe163811 usb: device_next: implement blocklist for classes
In the usbd_register_all_classes(), we may need to skip some instances
as they may have very specific function like USB DFU "DFU mode" which
should not be available by default.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-04 11:55:25 +01:00
Hieu Nguyen
26548fc4a5 samples: drivers: counter: Add supprt for RZ/G3S-SMARC
Add support for RZ/G3S-SMARC to Counter driver sample

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2025-02-04 09:16:34 +01:00
Aksel Skauge Mellbye
bb381005b8 samples: drivers: adc: adc_dt: Add overlay for xg24_rb4187c
Add support for xg24_rb4187c to the ADC sample app. Configure two
channels, one measuring the AVDD supply against the 1.21V bandgap
reference, and one measuring pin PB1 (wired to button 0) against
the AVDD (VDDX) reference.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-02-03 19:51:46 +01:00
McAtee Maxwell
99783513be adc: add cyw920829m2evk_02 overlays to relevant adc samples/tests
- Add overlay for samples/.../adc_dt
	- Add overlay for tests/.../adc_api

Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
2025-02-03 19:50:11 +01:00
Titouan Christophe
9be79bc145 samples: subsys: usb: midi: add new sample
Add a sample application that demonstrates how to use the new USB-MIDI 2.0
device class. This shows how to set up the device tree, how to exchange
MIDI data with the host, and how to use the data accessors provided by
the new API.

Signed-off-by: Titouan Christophe <moiandme@gmail.com>
2025-01-31 19:50:26 +01:00
Jukka Rissanen
6a19162deb samples: net: Do not setup VLAN if there is no VLAN interfaces
No point trying to initialize VLAN interfaces if the VLAN
interface count is zero.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-01-31 16:12:50 +01:00
Aksel Skauge Mellbye
58caab3344 samples: drivers: display: Support line alignment constrained displays
The sample app draws rectangles in the corner of the display.
On devices with the SCREEN_INFO_X_ALIGNMENT_WIDTH capability,
each draw needs to transmit a complete line. Make the sample
work on such displays (e.g. the `ls0xx` driver) by making the
rectangles take up the full width of the display.

Co-authored-by: Benjamin Cabé <kartben@gmail.com>
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-01-31 14:02:40 +01:00
Michał Stasiak
5b34d77d7b samples: basic: add support for nRF54H20 cpuppr PWM
Added support for nRF54H20 cpuppr PWM in blinky_pwm and
fade_led sample.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-01-31 09:38:25 +01:00
Sylvio Alves
40b474c0cf boards: esp32c3: remove invalid adc1 entry.
Remove ADC2 support (identified as adc1 entry)
for additional ESP32-C3 based board targets.
Other boards have those instances already deleted.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-01-30 22:59:21 +01:00
Mahesh Mahadevan
85bdab00de soc: mimxrt1180: Add USB support
This was tested on the MIMXRT1180 EVK board

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-01-30 18:29:33 +01:00
Nikodem Kastelik
50f6142497 samples: nordic: system_off: add retained_mem variant for nRF5340 DK
nRF5340 SoC supports retained_mem driver, which can be
utilized for RAM retention in System OFF sleep mode.
Add sample configuration confirming this.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-01-30 16:21:30 +01:00
Emil Gydesen
645267288c samples: Bluetooth: BAP: Broadcast source use next USB stack
Modify the BAP Broadcast source sample to use the next USB stack.
For simplicity, the changes are minimum and will still do the
same downsampling, and thus use a fixed 48KHz audio input.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-01-30 14:07:37 +01:00
Emilio Benavente
87f11d7efa samples: sensor: fxos8700: Remove Empty Sample.
PR #77335 intended to remove sensor
specific samples and missed a readme file.
This commit removes that file and empty directory.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2025-01-30 09:27:15 +01:00
Hubert Miś
1ee6990fc4 drv: ft8xx: user data in the callback function
The user of the ft8xx driver can register a callback function called
on a touch detection interrupt event. This function is extended to
include a user-defined pointer. The user-defined pointer helps to share
a callback with multiple driver instances.

Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
2025-01-30 02:01:34 +01:00
Hubert Miś
51e732c3ac drv: ft8xx: support multiple instances
Improve the FT8xx display driver to support multiple driver instances.

The ft8xx_reference_api.h still follows the FT8xx programming guides,
limiting the usage of the driver to one instance.

Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
2025-01-30 02:01:34 +01:00
Robert Lubos
3df9b5f873 samples: net: prometheus: Add netif dependency
There's no point building the sample for platforms that do not support
networking, hence add netif dependency to reduce the CI execution
scope.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-01-29 17:56:17 +01:00
Benjamin Perseghetti
4dceb0b917 samples: sensor: sensor_shell: add vmu_rt1170.
Adds support for testing sensor shell streaming
on the vmu_rt1170 with RTIO.

Co-Authored-by: James Goppert <james.goppert@gmail.com>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2025-01-29 15:17:44 +01:00
Luca Burelli
c66a0bb2a9 samples: llext: shell_loader: add hello_world.c, update README
Hello world from the tests is no longer what it once was, a simple
hello_world function that prints. The sample was here to let people
explore and learn about how LLEXT and ELFs work.

Moving the sample extension code to the shell loader sample disconnects
the two and lets the sample remain simpler.

We use the new CONFIG_LLEXT_IMPORT_ALL_GLOBALS to show how to build
an extension with and without the Zephyr build system.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-01-29 11:04:33 +01:00
Ramana Gudipudi
93946dc56c samples: bluetooth: Fix scan stop error in central_multilink sample
Outputs error code to console if bt_le_scan_stop() fails

Signed-off-by: Ramana Gudipudi <ragudipu@silabs.com>
2025-01-29 07:08:15 +01:00
Johann Fischer
81dc390115 usb: device_next: add bulk transfers to loopback function
This allows us to use the testusb Linux kernel tool again. All tests
involving control and bulk transfers should pass. Additionally, add a
shell command that allows the user to manually enqueue bulk transfers.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-01-29 04:16:42 +01:00
Matt Rodgers
ea6ca4e8b7 net: http_server: allow specifying a fallback resource
A _res_fallback parameter to HTTP_SERVICE_DEFINE is added to optionally
specify a fallback resource detail, which will be served if no other
resource matches the URL.

Signed-off-by: Matt Rodgers <mrodgers@witekio.com>
2025-01-28 18:14:36 +01:00
Jukka Rissanen
b80a058e90 samples: net: http_get: Fix format string issue
This issue is seen by at least gcc 11.4.0

samples/net/sockets/http_get/src/http_get.c:44:40: warning:
 format ‘%d’ expects argument of type ‘int’, but argument 2
 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
   44 | #define CHECK(r) { if (r < 0) {
      |                          printf("Error: %d\n", r); exit(1); } }
      |                                 ^~~~~~~~~~~~~
samples/net/sockets/http_get/src/http_get.c:44:49: note: format string is
 defined here
   44 | #define CHECK(r) { if (r < 0) {
                                 printf("Error: %d\n", r); exit(1); } }
      |                                         ~^
      |                                          |
      |                                          int
      |                                          %ld

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-01-28 14:30:49 +01:00
Krzysztof Chruściński
3cc9282a50 samples: drivers: adc: adc_dt: Add nrf54h20dk_nrf54h20_cpuppr
Add overlays for nrf54h20dk_nrf54h20_cpuppr. Moved common configuration
for nrf54h20dk to nrf54h20dk_nrf54h20_common.dtsi. Add configuration
for vpr_launcher on nrf54h20dk_nrf54h20_cpuapp.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-01-28 09:51:31 +01:00
Piotr Kosycarz
d3539d63d8 samples: boards: nordic: coresight_stm: tag stm -> coresight_stm
Plus at tests/boards/nrf/coresight_stm.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-01-28 09:50:38 +01:00
Piotr Kosycarz
9fb40c8ffb samples: drivers: w1: scanner: add w1 tag
w1 tag.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-01-28 09:50:38 +01:00
Piotr Kosycarz
1be84dc45b samples: drivers: i2s: output: add i2s tag
i2s tag.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-01-28 09:50:38 +01:00
Lucien Zhao
4716372277 boards: shields: add p3t1755dp_ard_i2c shield for RT700 cm33_cpu0
Support the shield on MIMXRT700 cm33_cpu0 by I2C way.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-01-28 09:47:32 +01:00