Commit graph

12,113 commits

Author SHA1 Message Date
Johann Fischer
a7b0f71925 samples: usb: move the legacy code out of the CDC ACM sample
Move the legacy code of the CDC ACM 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
a466cd8026 samples: usb: make console-next sample default
Move legacy console sample to legacy directory and make console-next
sample default.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
089482ee0f samples: usb: make WebUSB next sample default
Move legacy WebUSB sample to legacy directory and make WebUSB next
sample default.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
a53b49fd31 samples: usb: make USB DFU next sample default
Move legacy USB DFU sample to legacy directory and make USB DFU next
sample default.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
eb50aec6f5 sample: usb: move Audio 1.0 samples to legacy
Move Audio 1.0 headphones-microphone and headset samples that
demonstrate only legacy device stack functionality to the legacy
directory.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Saravanan Sekar
fcefe855b0 samples: net: ocpp: Charge Point test sample
A test sample for ocpp charge point with 2 connectors, central
system steve server is used with test setup (public available)

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2025-08-06 11:57:13 -04:00
Fabio Baltieri
d9f2f70133 samples: ensure struct addrinfo is always zero initialized
There's few samples with a struct addrinfo on the stack that only
initialize some of the fields, feeding whatever is on the stack for the
rest to the getaddrinfo() code. Bumped into an issue where that
sometimes happens to set the bit of the (ai_flags & AI_NUMERICHOST),
making host resolution failing.

Add a couple of memset on the affected samples so this does not happen.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-08-06 12:15:49 +03:00
Fabio Baltieri
9fc2201502 samples: add a couple of missing freeaddrinfo
Add a freeaddrinfo() call on a couple samples using getaddrinfo(). Not
really relevant since these execute once and exit but good to have in
case someone copy paste that in a loop.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-08-06 12:15:49 +03:00
Declan Snyder
c96d891f75 samples: http_server: Fix warning about integer name
When building with CONFIG_DEBUG=y, there is a build warning about the
name being truncated due to integer size is larger than MAX_NAME_LEN.
So fix MAX_NAME_LEN to be large enough to handle 10 digit integer, which
is maximum.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-08-06 12:11:25 +03:00
Raffael Rostagno
aa09a56e45 samples: bluetooth: Add testcase for ESP32-C2
Add testcase for esp8684_devkitm (ESP32-C2).

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-06 12:10:59 +03:00
Yago Fontoura do Rosario
ca06a1d80d Bluetooth: Add configuration to control the dynamic connection callbacks
This commit allows to the user to control the use or not of dynamic
connection callbacks.
The stack is not using the dynamic connection callbacks so they are
only needed if the applications want to use it.
Setting it to true for backwards compatibility.

With dynamic connection callbacks

           FLASH:      176600 B       512 KB     33.68%
             RAM:       27428 B        64 KB     41.85%
        IDT_LIST:          0 GB        32 KB      0.00%

Without dynamic connection callbacks

           FLASH:      176376 B       512 KB     33.64%
             RAM:       27428 B        64 KB     41.85%
        IDT_LIST:          0 GB        32 KB      0.00%

Signed-off-by: Yago Fontoura do Rosario <yafo@demant.com>
2025-08-05 13:28:06 -04:00
Michał Stasiak
fce6b2f919 samples: nordic: system_off: check for supported reset causes
Check whether used reset causes are supported by hwinfo
driver.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-08-05 13:27:10 -04:00
Sylvio Alves
c6935ba8ab samples: espressif: update deep-sleep test case
Update deep-sleep test case to enable CI tests.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-08-05 13:26:20 -04:00
Daniel DeGrasse
7765485646 samples: mgmt: mcumgr: add testcase for ramload with revert
Add testcase to build mcuboot and smp_svr application using ramload
with revert mode

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-05 11:53:58 +01:00
Daniel DeGrasse
ace8207f4c samples: subsys: mgmt: mcumgr: add support for ramload on mimxrt1050_evk
Add support for using the ramload mode of MCUBoot on the mimxrt1050_evk

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-05 11:53:58 +01:00
Daniel DeGrasse
7b45235545 samples: subsys: mcumgr: rework ram load support for multiple boards
MCUMgr ram load support was hardcoding the overlay file for the
nrf52840dk. To make this support generic, move the _ram_load overlay
file to the MCUBoot repository, as part of the mcuboot application.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-05 11:53:58 +01:00
Piotr Kosycarz
9b92629435 samples: boards: nordic: spis_wakeup: fix boot for h20
Explicit start radio core.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-08-05 10:26:13 +01:00
Sebastian Głąb
e701a8e544 samples: drivers: Remove nrf54l09pdk from supported boards
Remove possibility to run samples on nrf54l09pdk as this is
an obsolete board that is going to be removed.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-08-05 10:24:48 +01:00
Vinayak Kariappa Chettimada
43232215a4 samples: Bluetooth: peripheral_hr minimal configuration update
Updated peripheral_hr sample to use separate Zephyr
Controller overlay for minimal configuration.

For bbc_microbit:
Memory region         Used Size  Region Size  %age Used
           FLASH:       96268 B       256 KB     36.72%
             RAM:       16296 B        16 KB     99.46%
        IDT_LIST:          0 GB        32 KB      0.00%

For nrf54l15dk/nrf54l15/cpuapp:
Memory region         Used Size  Region Size  %age Used
           FLASH:       95012 B      1428 KB      6.50%
             RAM:       17744 B       188 KB      9.22%
        IDT_LIST:          0 GB        32 KB      0.00%

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-08-04 17:02:19 -04:00
Vinit Mehta
c1e7b2e8d8 samples: bluetooth: pbp_public_broadcast: Align ISO TX netbuf size
- Change netbuf buffer pool to use CONFIG_BT_CONN_TX_USER_DATA_SIZE to
  avoid inconsistency and have enough buffer room when sending ISO data

Signed-off-by: Vinit Mehta <vinit.mehta@nxp.com>
2025-08-04 19:56:08 +01:00
Gordon Klaus
5da1baac69 samples: bluetooth: Add support for nRF54lm20a to two samples
Add support for nRF54lm20a to the beacon and peripheral_hr samples.

Signed-off-by: Gordon Klaus <gordon.klaus@nordicsemi.no>
2025-08-04 19:55:37 +01:00
Pieter De Gendt
e4f32fefff samples: modules: lvgl: Add Kconfig guard for LV_Z_DEMO_RENDER
Add a guard to the Kconfig symbols that are available for the render demo.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-04 19:54:08 +01:00
Bas van Loon
d8bd0f9232 samples: fs: Add EXT2 automount sample.
Add a simple sample that tests the functionality of the EXT2 automount
feature. The sample creates a ramdisk and writes some content and tries
to read it back after unmount and mount operation.

Signed-off-by: Bas van Loon <bas@arch-embedded.com>
2025-08-02 13:18:15 +02:00
Robert Lubos
4300820e43 samples: net: zperf: Disable timeslicing
Throughputs achieved by the sample are a bit better with timeslicing
disabled, therefore disable it for best out-of-the-box experience.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-08-01 19:37:52 +01:00
Lauren Murphy
c792d78cb3 llext: add fixes for various tests on mwdt / harvard arch
Adds fixes to get LLEXT tests to work for NSIM VPX on MWDT.

Excludes prelocated extensions for MWDT for now.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-08-01 19:36:59 +01:00
Fan Wang
7ea280466b drivers: sdhc: Add support for Apollo510 SDIO host
This commit added support for Apollo510 SDIO host driver and
ambiq board configuration in fs_sample and disk_performance

Signed-off-by: Fan Wang <fan.wang@ambiq.com>
2025-07-31 17:16:12 -04:00
Vit Stanicek
9969ae59d9 samples: rtxxx-amp: Enable mimxrt700_evk/mimxrt798s/hifi4
Add remote target selection. Explicitly enable GPIO support in
amp_blinky. Disable peripherals driven from the hifi4 domain in the
cm33_cpu0 domain to overcome resource conflicts. Select mailboxes for
amp_mbox. Set CONFIG_DMA_TCD_QUEUE_SIZE for amp_audio_output and
amp_audio_loopback. Select i2s devices for amp_audio_loopback.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-07-31 10:52:33 +01:00
Vit Stanicek
837e745b06 samples: amp_audio_loopback: Change sample rate and initial block count
Decrease the sample frequency to 16 kHz to accomodate memory
constraints. As the SAI driver in RX mode requires more than a certain
amount of blocks to be free, change count of those prefilled.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-07-31 10:52:33 +01:00
Mario Paja
b5ab475ac1 samples: i2s: output: add nucleo_u385rg_q
Add nucleo_u385rg_q overlay and SAI conf
in samples/drivers/i2s/output

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-07-30 17:34:19 -04:00
Andrey Dodonov
286362087d net: http: service: extend HTTP service with config
Update the HTTP service API to allow setting per-service configuration,
currently it is only custom socket creation callback,
but in the future it can be extended with other parameter

Signed-off-by: Andrey Dodonov <Andrey.Dodonov@endress.com>
2025-07-30 17:32:43 -04:00
Daniel Kampert
bf3eba1c31 drivers: sensor: APDS9306: Add lux conversion
- Add lux conversion to APDS-9306 driver
- Change settings of gain, resolution and
frequency to index-based settings
- Add Device Tree overlay sample for APDS-9306
- Fix wrong board name in light_polling README
- Add value checks for the attribute set API call
- Remove the reading of the sensor attributes
from the sensor and use buffered values instead
- Rename `frequency` property to `measurement period`

Closes #91104

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>
2025-07-30 06:10:09 -04:00
Benjamin Cabé
bed4ad299c drivers: haptics: add DRV2605_SEQ_WAIT_MS macro
Add a macro to simplify the creation of wait/delay values for the
waveform sequencer.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-07-29 22:51:46 -04:00
Neil Chen
a128f55b5d boards: frdm_mcxa156: add temperature sensor support
1. enable temperature sensor support
2. verified samples/sensor/die_temp_polling

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-07-29 11:21:29 +01:00
Neil Chen
db1abaaf67 boards: frdm_mcxa153: add temperature sensor support
1. enable temperature sensor support
2. verified samples/sensor/die_temp_polling

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-07-29 11:21:29 +01:00
Neil Chen
48bbe114a9 boards: frdm_mcxn236: add temperature sensor support
1. enable temperature sensor support
2. verified samples/sensor/die_temp_polling

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-07-29 11:21:29 +01:00
Charles Dias
d37ec5136b samples: video: capture: add a stm32h7b3i_dk config
Add a configuration files for the stm32h7b3i_dk board.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2025-07-29 11:19:33 +01:00
Phi Bang Nguyen
d0f7604b1a samples: drivers: display: Fix RGB565/BGR565 interchange issue
The RGB565 and BGR565 formats are interchanged in the sample. This leads
to wrong assumptions about "byte swap" in Zephyr and make display
drivers, shields and video sample follow it for a long time. Fix it.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-07-28 16:45:33 -04:00
Phi Bang Nguyen
2fdc051269 samples: drivers: video: Fix RGB565/BGR565 in display format
Formats should be coherently set between camera and display. Forcing
RGB565 to BGR565 will break some platforms.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-07-28 16:45:33 -04:00
Holt Sun
4618e86edd drivers: irtc: Updated rtc driver to support NXP RT700 device.
1. Update nxp irtc driver to fix issue in init and alarm function.
2. Update RTC device tree binding to support "share-counter".
3. Update RT700 dtsi to support rtc0 for cpu0 and rtc1 for cpu1.
4. Update readme.
5. Update unit test project conf for RT700.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-07-28 16:42:30 -04:00
Vinit Mehta
1d44972a26 samples: bluetooth: pbp_public_broadcast: Fix PACS register issue
- Add sink PACS register for PBP public broadcast sink example to make
  it work with PBP broadcast source

Signed-off-by: Vinit Mehta <vinit.mehta@nxp.com>
2025-07-28 16:41:51 -04:00
Vit Stanicek
8f37d3bf52 samples: rtxxx-amp: Remove POST_BUILD
Remove POST_BUILD directives from remote-dsp-imgs.cmake.

They raised warnings on CMake 3.31.6.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-07-28 16:40:02 -04:00
Gomaa Mohammed Eldebaby
01b14df31e samples: bluetooth: typo in project name
Corrected a typo in the project name within the Bluetooth
samples directory. The incorrect name was causing confusion
in documentation and build processes. This change updates
the relevant file(s) to use the correct project name, ensuring
consistency across the Zephyr repository.

Signed-off-by: Gomaa Mohammed Eldebaby <gomaaeldebaby2211@gmail.com>
2025-07-28 08:55:42 -04:00
Sergei Ovchinnikov
f0f2b941f0 boards: shields: add npm1304_ek shield
Add an nPM1304 EK shield, update samples/shields/npm1300_ek to support
both shields, improve the sample description.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2025-07-28 08:47:49 -04:00
Vytautas Virvičius
4bd85fe6c4 samples: net: zperf: add cellular modem support
This commit adds a cellular modem overlay to the zperf sample, enabling
the use of zperf with a cellular modem.

Signed-off-by: Vytautas Virvičius <vytautas@virvicius.dev>
2025-07-28 08:36:57 -04:00
Michał Bainczyk
ba3662ac5d samples: boards: nrf: clock_control: Add memory-regions prop to uart sample
Add missing "memory-regions" property which is required for UART
on NRF54H20 to clock_control sample overlay file.

Signed-off-by: Michał Bainczyk <michal.bainczyk@nordicsemi.no>
2025-07-28 04:27:25 -04:00
Mahesh Mahadevan
85e1353624 samples: led_pwm: Lower the blinking delay for RT1180 EVK
The blinking period provided by default was too large
for this platform.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-07-25 23:37:00 +02:00
Tahsin Mutlugun
4c1c954347 samples: sensor: pressure_polling: Add delay between sensor readings
Introduce a 1000 ms delay between consecutive sensor readings to prevent
logging overflow and reduce console clutter.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-25 23:30:20 +02:00
Tahsin Mutlugun
75d383548d samples: sensor: pressure_polling: Log altitude only if supported
Most pressure sensors provide temperature and pressure data, but only a
few support altitude readings. This change adds a check to ensure
altitude is logged only when the sensor supports it.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-25 23:30:20 +02:00
Luis Ubieda
2d589fda85 boards: vmu_rt1170: Update dts to reflect the second IMU being ICM42686
Additionally, remove overlay from sensor-shell sample, which is
redundant.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-07-25 23:28:47 +02:00
Luis Ubieda
8db851ff57 general: icm4268x: Refactor ICM42688 driver to ICM4268X
As a first step to enable the similar variants (e.g: ICM42686),
refactor common functionality into icm4268x files. As a result,
applications using the icm42688 will need to have both compatible
properties: "invensense,icm42688" and "invensense,icm4268x" defined.
In-tree boards have been modified to comply with this pattern.

This patch does not contain functional changes. The driver should
work the same as before.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-07-25 23:28:47 +02:00