Commit graph

12,113 commits

Author SHA1 Message Date
Josuah Demangeon
6893bc10cd samples: drivers: video: capture: move code to functions
Move blocks of code into individual functions to make the sample more
modular, component-based.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00
Josuah Demangeon
15daa447ed tests: drivers: video: test_pattern: new test from the sample
Turn the test part of the sample code into a dedicated test into the
tests/ directory instead of just samples/.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00
Josuah Demangeon
ecc54ff0af samples: drivers: video: capture: use the same error handling idiom
Use the same error handling implementation as everywhere else in the
video area and the majority of Zephyr:

  ret = error();
  if (ret < 0) {
      return ret;
  }

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00
Josuah Demangeon
6ad6945ed6 samples: drivers: video: capture: use app_ prefix
Use an "app_" prefix for all functions local to the application.
This avoids accidentally using "display_" or "video_" prefix that
are reserved for the respective area.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00
Josuah Demangeon
2250672c43 samples: drivers: video: capture: use if() instead of #ifdef
When possible, make use of C if statements instead of preprocessor #ifdef.
This still allow conditional compilation by letting the compiler
garbage-collect unused code.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00
Josuah Demangeon
d2f2ba7485 samples: drivers: video: capture: change log verbosity
Increase log verbosity to print one line per captured frames and make
it like in the README by default. This avoids giving the impression
that the capture sample does not work. Users desiring to get better
performance can disable logging or reduce verbosity from INF to WRN.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00
Josuah Demangeon
eb01f1d451 samples: drivers: video: capture: use static initializers
When possible, use static initializer instead of memset() and
initialization at runtime. Fixes a bug where uninitialized memory of caps
would be used, in case drivers do not initialize them like they should.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-24 08:52:57 -07:00
Michał Stasiak
40f07a0532 samples: nordic: nrfx_prs: remove deprecated UARTE API
nrfx_uarte_rx is deprecated and will be soon removed.
Replaced by new API.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-10-24 09:45:52 +03:00
Hongbo Wang
a8197bf8e8 samples: subsys: shell: shell_module: add support for FRDM-IMX93
Add reboot support in shell for FRDM-IMX91.
Compile commands:
west build -p always -b frdm_imx93/mimx9352/a55 \
	     samples/subsys/shell/shell_module

Signed-off-by: Hongbo Wang <hongbo.wang@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-10-24 09:45:42 +03:00
John Batch
e176894744 samples: adc: Adding Infineon AutAnalog ADC samples
Adding files to allow running the following samples for the Infineon
AutAnalog SAR ADC driver on the PSOC Edge family of MCUs:
  * samples/drivers/adc_dt
  * samples/drivers/adc_sequence

Signed-off-by: John Batch <john.batch@infineon.com>
2025-10-24 09:44:03 +03:00
Jonas Berg
dcf8e3ef71 boards: shields: Add Adafruit AD5693 DAC shield
The product photo is from
https://learn.adafruit.com/assets/124731 and has the
license CC BY-SA 3.0.

Tested with the command in the index.rst file. Compile testing of
the overlay file is done via the samples/drivers/dac sample.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-10-24 09:43:50 +03:00
Tim Pambor
7a7f6db04d samples: sysbuild: with_mcuboot: Replace overlay with new board variant
Replace overlay for stm32h573i_dk with new board variant designed to
run in external flash. Keep stm32h573i_dk as it also can run mcuboot.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-24 01:11:22 +03:00
Tim Pambor
c275d4ebcc samples: mgmt: hawkbit: Replace overlay with new board variant
Replace overlay for stm32h573i_dk with new board variant designed to
run from external flash.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-24 01:11:22 +03:00
Sanjay Yadav
84b2bd5ccc samples: net: wifi: nxp: update conf for memory optimization
Updated config file to optimize memory by configuring net related settings
and thread priority settings

Signed-off-by: Sanjay Yadav <sanjay.yadav@nxp.com>
2025-10-23 16:04:22 -04:00
Alain Volmat
66b8139053 samples: usb: uvc: select applicable resolutions from range
Select from commonly used resolution when the video device
advertise capabilities using range.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-23 16:03:10 -04:00
Alain Volmat
4642de5d40 samples: usb: uvc: use video_set_compose_format
Use the helper video_set_compose_format in order to
allow controlling the compose.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-23 16:03:10 -04:00
Alain Volmat
1257c50122 samples: usb: uvc: ensure video buffer is properly aligned
Honor the CONFIG_VIDEO_BUFFER_POOL_ALIGN config by using the
video_buffer_aligned_alloc function instead of video_buffer_alloc
in order to provide properly aligned buffers to drivers.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-23 16:03:10 -04:00
Alain Volmat
e7bae6ce88 samples: video: capture: use video_set_compose_format helper
Simplify the code by using the video_set_compose_format helper.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-23 16:03:10 -04:00
Mario Paja
c8092a647d samples: i2s: output: add nucleo_wba55cg
Add nucleo_wba55cg in samples/drivers/i2s/output

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-10-23 16:03:01 -04:00
Tomas Barak
bb5df8e150 samples: i2s_codec: enable i2s_codec sample for mcx_n5xx_evk
- in order to test the loopback from PDM to I2S on the mcx_n5xx_evk
  it is necessary to add the dts nodes for SAI1 and MICFIL channels
- note that the configuration is using the newly introduced stream
  parameters (bytes_per_sample, sample_width, extra_blocks)
- add mcx_n5xx_evk/mcxn547/cpu0 to sample.yaml in order to allow this
  platform to be part of the CI tests

Signed-off-by: Tomas Barak <tomas.barak@nxp.com>
2025-10-23 16:02:09 -04:00
Bjarki Arge Andreasen
beacd7c181 dts: drivers: nordic: nrf54h: Don't manage clocks from drivers
Clocks are requested automatically by hardware on the nRF54H.

Remove additional handling from device drivers, and disable
the now unmanaged clocks in the devicetree.

Updates:
  - can_nrf
  - counter_nrfx_timer
  - uart_nrfx_uarte
  - spi_nrfx_spim
  - spi_nrfx_spis

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Fabrice DJIATSA
9defa3cd65 samples: net: zperf: update async_tx scenario configuration
Add console harness and a dedicated regex word for test validation

on STM32 platforms compatible with HAL_API_V2.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-10-23 18:03:27 +02:00
Fabin V Martin
4010667669 samples: sysbuild: update list of allowed platforms
Add sam_e54_xpro board to test mcuboot builds.

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2025-10-23 17:50:29 +02:00
Biwen Li
6364fde3e0 samples: enable openamp sample for imx943 evk
Enable openamp sample for imx943 evk.

Default configuration in openamp sample(as master):
m33 as master, m7_1 as remote.
m7_0 as master, m33 as remote.
m7_1 as master, m33 as remote.

Default configuration in openamp/remote sample(as remote):
m7_1 as master, m33 as remote.
m33 as master, m7_0 as remote.
m33 as master, m7_1 as remote.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
2025-10-23 17:49:28 +02:00
Biwen Li
0c2fe0c387 samples: enable ipc static vrings for imx943 evk
Enable ipc static vrings sample for imx943 evk.

Default configuration in static_vrings sample(as master):
m33 as master, m7_1 as remote.
m7_0 as master, m33 as remote.
m7_1 as master, m33 as remote.

Default configuration in static_vrings/remote sample(as remote):
m7_1 as master, m33 as remote.
m33 as master, m7_0 as remote.
m33 as master, m7_1 as remote.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
2025-10-23 17:49:28 +02:00
Biwen Li
2e4cab8088 samples: enable mbox_data sample for imx943 evk
Enable mbox_data sample for imx943 evk.

Default configuration in mbox_data sample(as master):
m33 as master, m7_1 as remote.
m7_0 as master, m33 as remote.
m7_1 as master, m33 as remote.

Default configuration in mbox_data/remote sample(as remote):
m7_1 as master, m33 as remote.
m33 as master, m7_0 as remote.
m33 as master, m7_1 as remote.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
2025-10-23 17:49:28 +02:00
Biwen Li
895e9ee85d samples: enable mbox sample for imx943 evk
Enable mbox sample for imx943 evk.

Default configuration in mbox sample(as master):
m33 as master, m7_1 as remote.
m7_0 as master, m33 as remote.
m7_1 as master, m33 as remote.

Default configuration in mbox/remote sample(as remote):
m7_1 as master, m33 as remote.
m33 as master, m7_0 as remote.
m33 as master, m7_1 as remote.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
2025-10-23 17:49:28 +02:00
Josuah Demangeon
ac808a5b2f samples: usb: uvc: add filtering of the format
The UVC class now lets the application select the format list sent to the
host. Leverage this in the sample to filter out any format that is not
expected to work (buffer too big, rarely supported formats).

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-23 17:47:12 +02:00
Josuah Demangeon
74e147e886 usb: device_next: uvc: remove application decisions from the UVC class
The UVC class was deciding itself which formats were sent to the host.
Remove this logic out of the UVC class and introduce uvc_add_format() to
give the application the freedom of which format to list.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-10-23 17:47:12 +02:00
Vinayak Kariappa Chettimada
8aba2e3f3a Bluetooth: Controller: Enable OUTPUT_DISASSEMBLY_WITH_SOURCE with LTO
Enable OUTPUT_DISASSEMBLY_WITH_SOURCE when using LTO to help
find the assertion check in the source code corresponding to
the faulting instruction address.

arm-none-eabi-addr2line tool is not able to resolve the
source file and line number when using LTO.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-23 11:43:10 +03:00
Vinayak Kariappa Chettimada
29cf367568 samples: Bluetooth: hci_ipc: Enable HCI vendor-specific h/w error event
Enable HCI vendor-specific h/w error event generation in
samples and tests.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-23 11:43:10 +03:00
Vinayak Kariappa Chettimada
fb679ad2d8 samples: Bluetooth: hci_uart: Reuse hci_vs_err_assert
Reuse hci_vs_err_assert implementation to generate the HCI
vendor-specific hardware error event.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-23 11:43:10 +03:00
Vinayak Kariappa Chettimada
696d618bdc samples: Bluetooth: hci_uart: Make bt_ll_sw_split conf consistent
Make overlay-all-bt_ll_sw_split configs consistent with the
one used in hci_ipc for nRF5340 SoC.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-23 11:43:10 +03:00
Abderrahmane JARMOUNI
caa21ac284 samples: mgmt: hawkbit: add stm32h750b_dk to CI platforms
Add stm32h750b_dk/stm32h750xx/ext_flash_app target to CI platforms of
the Hawkbit sample.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-10-23 11:42:39 +03:00
Abderrahmane JARMOUNI
2fe301d98f samples: sysbuild: with_mcuboot: add stm32h750b_dk to CI platforms
Add stm32h750b_dk/stm32h750xx/ext_flash_app target to CI platforms

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-10-23 11:42:39 +03:00
Abderrahmane JARMOUNI
8beda69df8 boards: stm32h750b_dk: introduce board variant for apps in ext Flash
Introduce a board variant for storing an app in external QSPI NOR Flash
and chainloading it with MCUboot (placed in internal Flash) to be executed
in place (uses MCUboot's swap-using-offset mode, set via Sysbuild).

The new variant requires on MCUboot app side: a board/SoC DT overlay to
set the internal Flash & Flash controller as the chosen 'zephyr,flash' &
'zephyr,flash-controller', and CONFIG_STM32_MEMMAP=y (this was upstreamed
to MCUboot.)

Change external Flash memory attribute "zephyr,memory-attr" to
DT_MEM_ARM_MPU_FLASH, since ATTR_MPU_IO (corresponds to
"DEVICE_NON_SHAREABLE & P_RW_U_NA") is actually for memory-mapped devices
(with registers...) and was causing access issues with apps like LVGL that
would freeze the target. Also, change the size of the external flash
"zephyr,memory-region" node, since we only need to define accesss rights
to the memory space actually used by the external flash chips, not the
total addresssable QSPI memory.

The 2nd QSPI NOR contoller node was removed, since it does not reflect the
actual hardware layout, that has only one controller and the 2 NOR flash
chips are connected to it in parallel with a shift register.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-10-23 11:42:39 +03:00
Valerio Setti
fc422beb68 lib: uuid: replace legacy crypto support with PSA API
Legacy crypto support is going to be removed in the next Mbed TLS release
(which will be named TF-PSA-Crypto for the crypto support) so this
commit transitions UUID library from legacy crypto to PSA API.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-23 11:42:11 +03:00
Khoa Nguyen
4147a8ff9a samples: modules: lgvl: Update code mram for Renesas ek_ra8p1
Since the sample build is oversized for the RA8P1 CM85,
I’ve realigned the code MRAM size for both cores (CM85 and CM33)
to allow the CM85 build to run the sample successfully

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-10-23 11:41:48 +03:00
Khoa Nguyen
e4cb0f4e8e samples: boards: renesas: Add support for comparator on ek_ra8m2
Add support for sample app `renesas/comparator` on ek_ra8m2

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-10-23 11:41:48 +03:00
Khoa Tran
f8454a3525 samples: subsys: fs: Add tests support for Renesas ek_ra8m2 board
Add tests support for Renesas ek_ra8m2 boards:
- samples/subsys/fs

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-23 11:41:48 +03:00
Khoa Tran
5e46dce290 samples: drivers: i2s: Add tests support for i2s ssie on ek_ra8m2
Add support for i2s samples app on Renesas RA ek_ra8m2:
- samples/drivers/i2s/output

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-23 11:41:48 +03:00
Khoa Nguyen
1868eaf17c samples: drivers: counter: Add support for alarm on ek_ra8m2
Add support for sample app `alarm` on Renesas ek_ra8m2

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-10-23 11:41:48 +03:00
Khoa Tran
754db2a240 samples: modules: lvgl: demos: add support for ek_ra8d2
Add support for ek_ra8d2/r7ka8d2kflcac/cm85 running on
rtklcdpar1s00001be display shield

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-23 08:01:03 +02:00
Khoa Tran
253bc85b6c samples: subsys: fs: Add tests support for Renesas ek_ra8d2 board
Add tests support for Renesas ek_ra8d2 boards:
- samples/subsys/fs

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-23 08:01:03 +02:00
Khoa Tran
ddffe4907b samples: drivers: i2s: Add sample support for Renesas ek_ra8d2
Add support for i2s sample app on Renesas RA ek_ra8d2:
- samples/drivers/i2s/output

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-23 08:01:03 +02:00
Khoa Tran
740074632f samples: drivers: counter: Add support for alarm on ek_ra8d2
Add support for sample app alarm on Renesas ek_ra8d2

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-23 08:01:03 +02:00
Andreas Klinger
c93788a0ea drivers: sensor: remove redundancies in veml6031 and veml6046
- create common header file veml60xx-common.h for sensors VEML6031 and
  VEML6046.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
2025-10-22 18:14:02 -04:00
Andreas Klinger
7caae03a4c samples: sensor: veml6046: add attribution test application
- Test all attribute combinations of Vishay RGBIR color sensor VEML6046.
- Print OVERFLOW in case of saturation of sensor.
- This small program is intended to be helping when finding appropriate
  attributes for an application of the sensor.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
2025-10-22 18:14:02 -04:00
Stephan Linz
0925811371 samples: frdm_rw612: exclude various tests
Disable various samples because they require certain digital or
analog signals from the Arduino header, which are not connected
and therefore not defined via the connector gpio-map.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2025-10-22 18:12:06 -04:00
Rodrigo Peixoto
555590ec15 doc: zbus: fix benchmark sample execution command error
Fixes #98070

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2025-10-22 18:04:01 -04:00