Commit graph

12,113 commits

Author SHA1 Message Date
Martin Stumpf
b316dac7f4 samples: drivers: display: Add support for AL_88 color
Renders three different shades of gray in each corner, with one corner
continually changing color.

Signed-off-by: Martin Stumpf <finomnis@gmail.com>
2025-08-14 22:38:38 -04:00
Pavel Vasilyev
cebbf72e1c samples: bluetooth: peripheral_identity: Restart adv on failed conn
If connection is failed to establish, the sample will get stuck
eventually and won't do anything while it could re-start advertiser to
try establish a connection again.

This commit makes the sample restart the advertuser if such issue
happens.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-14 15:49:09 +02:00
Pavel Vasilyev
87ab1cfe8f samples: bluetooth: peripheral_identity: Stop scanner in privacy
When CONFIG_BT_PRIVACY is enabled, we cannot start an advertiser with an
RPA generated for a different identity than scanner role. Therefore, we
need to stop scanning.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-14 15:49:09 +02:00
Pavel Vasilyev
4083389bcb samples: bluetooth: peripheral_identity: Add more logs
This commit adds more logs to peripheral_identity sample improve clarity
of what the sample is currently doing.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-14 15:49:09 +02:00
Pavel Vasilyev
9038d21953 samples: bluetooth: central_multilink: Add more logs
This commit adds more logs to central_multilink sample improve clarity
of what the sample is currently doing.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-14 15:49:09 +02:00
Nirav Agrawal
27e4533038 bluetooth: tbs: fix issues for setting URI scheme for GTBS
- "bt_tbs_set_uri_scheme_list()" function does not setting URI for
 GTBS instance. Using "inst_lookup_index()" fixes issue to find
 registered GTBS instance for provided bearer_index.
- "bt_tbs_set_uri_scheme_list()" function overrides URI scheme list
 with latest provided list. But the expectation is that it should
 keep previously added URI schemes and only update new scheme which
 are not part existing list. Code is updated to fix this.
- The same function uses net-buf to combine all URI schems for all
 TBS bearer if current request is not for GTBS instance. Currently,
 the code only uses combined URI scheme list for logging purpose and
 it is not used to send for URI Scheme notification to provide
 updated GTBS URI scheme to remote. Code is now updated to add
 dynamic buffer to add all TBS URI scheme list for GTBS instance
 and notify it similar to other functions to optimise memory usage.

Signed-off-by: Nirav Agrawal <nirav.agrawal@nxp.com>
2025-08-14 15:48:50 +02:00
Emil Gydesen
f9a84d4682 samples: Bluetooth: BAP Unicast Server: Improve reporting and TX
Improve reporting by introducing a configurable reporting interval
and make the report text more useful.

Change TX to always send the same size, as that is what is
expected/required by LE Audio.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-14 15:47:53 +02:00
Emil Gydesen
e309ebc9f9 samples: Bluetooth: BAP Unicast Client improve reporting
Make the reporting interval configurable to make it easier
to actually follow. Improve what gets reported.

Add check for SDU size to ensure correctness when not
using LIBLC3.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-14 15:47:53 +02:00
Pieter De Gendt
ffc3c4aa6b samples: boards: nxp: mimxrt1060_evk: system_off: Fix GPIO config
A pull-up should be described in hardware (device tree) instead of
software.
Also interrupt on edges instead of the level.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-13 22:12:46 -04:00
Marek Matej
9735a2b752 samples: ipc: openamp on esp32
Updating openamp samples to work on ESP32 targets.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-08-13 22:12:22 -04:00
Bill Waters
9a2ae1ceb3 samples: drivers: uart: async_api: Add board overlay
Add overlay file for these boards:

  - cy8cproto_062_4343w
  - cy8cproto_063_ble
  - cyw920829m2evk_02

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2025-08-13 22:10:57 -04:00
Iuliana Prodan
7253ad3493 samples: openamp_rsc_table: remove unused config
Remove the FW_READY reply config, as it's not required for
the M7 core on i.MX8M Plus.
This setting triggers an interrupt to the host, which is
unnecessary in the case of M7 (check host-side imx_rproc
driver in Linux).

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-08-13 22:10:23 -04:00
Iuliana Prodan
227f0e4d18 samples: openamp_rsc_table: use vendor-specific rsc table to reply to host
Update for both 8QM and 8QXP, the nxp_openamp_imx8-adsp board
configuration to enable vendor-specific resource table features
instead of FW_READY reply config.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-08-13 22:10:23 -04:00
Iuliana Prodan
164022d8d3 samples: openamp_rsc_table: use vendor-specific rsc table to reply to host
Update the imx8mp_evk_mimx8ml8_adsp board configuration to enable
vendor-specific resource table features instead of FW_READY reply
config.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-08-13 22:10:23 -04:00
Yangbo Lu
6a8d8d0bc7 samples: net: dsa: add imx943_evk_mimx94398_m33_ddr board support
Added imx943_evk_mimx94398_m33_ddr board support.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Aaron Massey
5c5923c233 drives: fuel_gauge: Remove unused battery_cutoff property
The FUEL_GAUGE_BATTERY_CUTOFF enum property was never used and never tested
nor was it intended to be. This property unfortunately made it past review.

Remove it. This is unlikely to cause a breakage since no upstream driver
ever implemented it as a property.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2025-08-13 18:30:52 +02:00
Bartosz Miller
86fb21502c samples: subsys: ipc: Run multi-endpoint IPC sample on nrf54h20
Extend IPC multi-endpont sample for 54h20

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-08-13 10:26:38 -04:00
Pieter De Gendt
f8473d1a3d samples: boards: nxp: mimxrt1060_evk: Remove default selected options
Remove Kconfig symbols that are default selected based on the device tree.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-13 11:10:03 +01:00
Vit Stanicek
7181d692b9 samples: rtxxx-amp: amp_blinky: Disable for mimxrt700_evk/hifi4
Add a build error conditional for mimxrt700_evk/mimxrt798s/cm33_cpu0,
thus disabling build for the hifi4 domain. Remove that target from
platform_allow in sample.yaml.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-13 11:09:32 +01:00
Jiafei Pan
b9ee247352 samples: net: zperf: add imx95 evk a55 suppport
Add i.MX 95 EVK A55 support for zperf sample.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-08-13 11:08:39 +01:00
Jonas Berg
8843fd9fe1 Samples: Fix ID for VCNL4040 sensor sample
The ID of the sample is wrong, so it is not possible to link
to the sample documentation. I found this issue when working
on a shield for the VCNL4040 proximity sensor.

To my knowledge, there are no references to the invalid ID yet.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-08-12 20:39:48 -04:00
Hake Huang
6364bafba3 tests: mimxrt1060_evk: adjust i2s testing for NXP mimxrt1060 board
1. enable the codec + i2s sample
2. skip i2s loopback as this conflicts with lcd

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-08-12 18:40:31 -04:00
Johan Hedberg
eb69b43e71 samples: Remove usage of deprecated BT_CTLR Kconfig option
Use HAS_BT_CTLR which has replaced the deprecated BT_CTLR option.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-08-12 18:40:20 -04:00
Michal Smola
c0b439e5ec samples: sensor: accel_trig: Fix harness configuration
Error message HARNESS:Console:no regex patterns configured
is shown when sample.sensor.accel_trig sample is run.
The error occurs because harness configuration is changed
(a fixture is added) in the test case. When the configuration
is changed in a test case, common configuration is not
inherited and required properties need to be redefined.
Add console harness configuration for the test case.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2025-08-12 21:33:52 +02:00
Tim Pambor
7c0e4aecac samples: sensor_shell: Wait for prompt before sending command
Wait for prompt before sending command to ensure shell is ready.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-08-12 21:33:00 +02:00
Johann Fischer
b8b04075fb samples: video: capture: remove stray USB legacy stack configuration
The legacy USB device stack configuration used in the board
configuration overlay files has been deprecated. It is not causing CI
failures because the board lacks a test feature 'video' and is filtered
out in CI.

Besides the deprecated configuration, the sample code does not enable
the USB device stack, so it is not used anyway. Even if it were needed,
the correct way to enable logging via USB CDC ACM would be to use the
cdc-acm-console snippet.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-11 13:22:56 -05:00
Johann Fischer
0e3cd5b83a samples: usb: remove zephyr_cdc_acm.inf
This file is not referenced anywhere, and the operating systems that
would require it are EOL. Remove it from the tree.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-11 14:08:00 +03:00
Pieter De Gendt
b694f03741 samples: modules: lvgl: demos: Sync main with LVGL work queue thread
If LVGL uses a work queue thread, we can't call LVGL functions from the
main thread. Use a k_event variable to signal between threads.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-11 12:49:36 +03:00
Phi Bang Nguyen
3ae962fd36 samples: video: capture: Add check for buffer size and count
Verify the buffer size and the number of buffers before allocation.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-08-10 22:09:01 +03:00
Phi Bang Nguyen
c95ec709c8 samples: video: capture: Drop buffers array variable
The buffers array variable is not needed. Drop it.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-08-10 22:09:01 +03:00
Emilio Benavente
8d08da892c dts: arm: nxp: rt11xx: Updated ADC indexing
Updated the LPADC instance numbers in the
device tree to line up with the indexing
done in the RM.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2025-08-07 20:56:01 -04:00
Van Petrosyan
422fdf46a9 samples: modem_cellular: add auto-APN detection and race-free DNS wait
This update makes the cellular-modem sample usable out-of-the-box on
SIMs that require different APNs, without rebuilding the firmware.

* Automatic APN selection
  * New Kconfig options
    * `CONFIG_SAMPLE_CELLULAR_MODEM_AUTO_APN` - enable logic
    * `CONFIG_SAMPLE_CELLULAR_APN_X` - APN for profile X
    * `CONFIG_SAMPLE_CELLULAR_IMSI_LIST_X` - IMSI list for profile X
  * The application now subscribes to the new
    `CELLULAR_EVENT_MODEM_INFO_CHANGED` event, waits for the IMSI, looks
    up the matching MCC+MNC and calls `cellular_set_apn()`.

* DNS-server detection
  * `NET_EVENT_DNS_SERVER_ADD` may fire together with
    `NET_EVENT_L4_CONNECTED`; the previous wait timed out.
  * Replaced the two consecutive waits with a single call that waits for
    both events (`DNS_SERVER_ADD | L4_CONNECTED`) in any order.

Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
2025-08-07 20:55:14 -04:00
Johann Fischer
1747bd7f14 samples: openthread: uset new USB device stack in coprocessor sample
Use CDC ACM serial backend from the new USB device stack.
It was surprising to find out that the porting layer does not only use
the UART API. The legacy USB device stack API used in the porting layer
has been deprecated and is causing CI failures.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-07 15:46:37 +02:00
Lucas Tamborrino
6379ef4a2c samples: mbox: Add support for ESP32C6
Add mbox sample support for ESP32C6 HP and LP Core

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2025-08-07 13:15:36 +02:00
Johann Fischer
da16c8edbd samples: http_server: include USB samples header conditionally
Only include USB samples header when using USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-07 13:13:56 +02:00
Johann Fischer
4af7549d72 usb: deprecate legacy USB device support
Deprecate legacy USB device support.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
31303f7350 samples: usb: update USB samples root documentation
Add note about legacy samples and update USB samples root documentation.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
a89977a216 samples: shell_module: use new USB device stack
Use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
3ffd1675eb samples: http_server: use new USB device stack
Remove netusb code, use new USB device stack and CDC NCM implementation.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
cdc89fa3b7 samples: echo_server: use new USB device stack
Remove netusb code and use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
0dbd99c26a samples: smp_svr: use new USB device stack
Use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
eb8f5666a6 samples: wpan_serial: use new USB device stack
Use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
670df85752 samples: sensortile_box: use new USB device stack
Use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
e2b01357c4 samples: hci_uart: use new USB device stack
The change only affects board nrf52840dongle_nrf52840.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
3f39e1c612 samples: modbus: use new USB device stack
Use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
c2d00d51eb sample: net: remove legacy USB code from the zperf sample
Remove legacy netusb code.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
5edefa3d73 samples: usb: add a sample that covers legacy netusb
Add a sample that covers legacy CDC EEM/ECM and RNDIS functions.
Network functionality is limited to ICMP.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
84d31614c9 samples: usb: move the legacy code out of the HIC USB sample
Move the legacy code from HCI USB sample to a separate sample in the
legacy directory.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
375e8e6ccb samples: usb: move the legacy code out of the USB MSC sample
Move the legacy code from the USB MSC sample to a separate sample in the
legacy directory. Make legacy sample very simple and drop all filesystem
dependencies.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
1e50aaa6e0 samples: usb: move the legacy code out of the HID mouse sample
Move the legacy code from the HID mouse sample to a separate sample in
the legacy directory.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00