Commit graph

12,113 commits

Author SHA1 Message Date
Adam BERLINGER
3522fb9b12 samples: boards: Add stm32n6570_dk board with MCO output
Added example for stm32n6570_dk board activating MCO2
on pin PC9 (STMOD+ connector)

Signed-off-by: Adam BERLINGER <adam.berlinger@st.com>
2026-03-13 14:42:29 +01:00
Sylvio Alves
c64a74e711 espressif: adapt to hal_espressif IDF master sync
Adapt all Espressif SoC and driver code to the updated
hal_espressif module synced with IDF master branch.

Main changes:
- clock control: delegate peripheral clock gating to HAL
  layer using new clock/reset APIs
- SPI/GDMA: adapt to restructured DMA HAL with new channel
  allocation and configuration interfaces
- ethernet: add RMII clock configuration and PHY management
- GPIO: simplify using direct HAL function calls
- flash: adapt to updated SPI flash HAL interfaces
- linker scripts: update IRAM/DRAM mappings for new HAL
  object files
- DTS: fix ESP32-S2 PSRAM dcache1 address to match actual
  MMU mapping region (0x3f800000 DRAM1 instead of 0x3f500000
  DPORT which lacks 8-bit access capability)
- west.yml: update hal_espressif revision

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-13 11:38:18 +01:00
Gerson Fernando Budke
bb86a94fbd boards: sam_v71_xult: Add usbd support for samv71q21x
Add USB device next (usbd) feature support for the SAM V71
Xplained Ultra board. Add the revison B board to USB sample
integration platforms.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2026-03-13 07:08:28 +01:00
Pieter De Gendt
aad056a7bc net: lib: coap: observer: Use struct net_sockaddr_storage
Replace the incomplete struct net_sockaddr with net_sockaddr_storage for
CoAP observers.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-03-12 14:06:27 -05:00
Jamie McCrae
fdb9ca16a5 samples: mgmt: mcumgr: smp_svr: Reduce RAM in nrf52840 RAM load
Reduces the amount of RAM available here, as MCUboot is set to use
30KiB of RAM which conflicts

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-03-12 14:05:36 -05:00
Jamie McCrae
b7587b2537 samples: mgmt: mcumgr: smp_svr: Remove build with shell and UART
Removes an invalid build configuration for RAM load which uses
shell and UART transports, because they conflict

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-03-12 14:05:36 -05:00
Yonatan tordjman
1e081885d0 samples: doc: Added README for shell devmem_load sample
readme is adapted from previous .md file.

Signed-off-by: Yonatan tordjman <yonatan.turdjman@gmail.com>
2026-03-12 12:09:14 -04:00
Sebastian Głąb
1849d39216 samples: drivers: adc: Enable adc_sequence sample on nrf54lm20b
Add overlay required to run the adc_sequence sample on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-12 12:08:08 -04:00
Sebastian Głąb
676c1291d3 samples: drivers: adc: Enable adc_dt sample on nrf54lm20b
Add overlay required to run the adc_dt sample on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-12 12:08:08 -04:00
Sebastian Głąb
b0bae54f46 samples: sensor: Enable qdec sample on nrf54lm20b
Add overlay required to run the qdec sample on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-12 12:08:08 -04:00
Maureen Helm
9e2a8ee8f7 samples: drivers: adc: Extend adc_dt sample for optional adc shield
Extends the adc_dt sample with an option to use with the
eval_cn0391_ardz shield, which provides an adi ad7124-8 multichannel
adc.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-03-12 11:36:40 +01:00
Maureen Helm
17bc03c31c samples: drivers: adc: Increase sample buffer size
Modifies the adc_dt sample to increase the sample buffer size to support
ADCs with more than 16 bits of resolution, such as ad7124.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-03-12 11:36:40 +01:00
Gerson Fernando Budke
34deb01f97 samples: subsys: usb: udc: Include sam4l_ek in CI
Add sam4l_ek board in the integration_platform list to build the
atmel,sam_udc_usbc compatible driver.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2026-03-11 20:53:53 -04:00
William Markezana
6c581efb66 samples: drivers: crypto: add BFLB SEC_ENG support
Add BFLB SEC_ENG AES compatible string to the crypto sample
source so it discovers the hardware crypto device.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-11 20:53:43 -04:00
Zafer SEN
79f928ffc2 samples: hello_hl78xx: demo low-power GNSS and sleep workflows
Update the hello_hl78xx sample to showcase low-power operation,
including PSM/eDRX GNSS flows, wake/resume, and event-driven control.

Changes:
- Enable GNSS debug logging overlay.
- Track registration status and PSM/eDRX events in the app.
- Add event handling for:
  * LTE RAT and registration status updates
  * PSM (+PSMEV), eDRX idle enter/exit, and cell measurements
  * GNSS engine ready, start, stop, and mode exit
- Support two GNSS paths:
  * LPM path (PSM/eDRX): queue GNSS, wait for PSM, driver wakes,
    run GNSS, auto-return to LTE on exit.
  * Airplane path: CFUN=4, run GNSS, then user restores CFUN=1.
- Add delayed work to wake the modem for GNSS if needed.
- Improve sem usage to wait for PSM/eDRX, GNSS ready, and exit.
- Refactor labels (app_rerun, app_post_lpm_run) for clarity.
- Clean up logging, comments, and function docs.
- Fix memset targets to clear specific union fields.
- Set GNSS search timeout to 20000 ms in the demo.
- Minor API call cleanups for hl78xx_get_modem_info().

Why:
- Demonstrate practical LPM workflows:
  - GNSS during PSM/eDRX without unnecessary CFUN toggles.
  - Event-driven wake, register, and send sequences.
- Provide a reference for integrating GNSS into low-power apps.

Impact:
- Sample now depends on low-power events when configured.
- Behavior differs based on Kconfig (PSM/eDRX vs airplane).
- Requires DTS pins and Kconfig enabling for low-power paths.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-03-11 20:53:19 -04:00
John Lin
e835806b52 samples: boards: raspberrypi: add Pico W WiFi + LED demo
Add a sample demonstrating concurrent WiFi scanning and LED blinking
on Pico W and Pico 2 W. A background thread blinks the onboard LED
via the CYW43 GPIO driver while the main thread performs a WiFi scan.

Board overlays provide the led0 alias since the CYW43 GPIO driver
requires the WiFi stack. Includes README.rst documentation and
creates the Raspberry Pi sample category index.

Signed-off-by: John Lin <mcjelcom@gmail.com>
2026-03-11 20:53:08 -04:00
Nicolas Pitre
bf8aadc9a2 samples: mcumgr: smp_svr: disable heap hardening for ram_load variant
The nrf52840dk ram_load variant is very tight on RAM. The MCUboot
RAM_LOAD padding section rounds the image size up to the next
power-of-2 boundary, so even a small increase in code or rodata
can double the padding and overflow the RAM region.

The sys_heap hardening code pushes the image just over the 128KB
boundary, causing padding to jump from 128KB to 256KB and
overflowing RAM by ~55KB.

Disable heap hardening for this build. Since CONFIG_ASSERT is off,
the previous __ASSERT-gated heap checks were inactive anyway, so
HARDENING_NONE preserves the same level of validation.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2026-03-11 20:52:01 -04:00
Nicolas Pitre
b57ab90fdb lib: heap: rework chunksz_to_bytes into chunk_usable_bytes
Replace chunksz_to_bytes() which took a chunk size with
chunk_usable_bytes() which takes a chunk_id directly. This eliminates
the redundant pattern of chunksz_to_bytes(h, chunk_size(h, c)) and makes
the API clearer by returning actual usable bytes (excluding the header).

Add mem_align_gap() helper to compute alignment padding between the
start of usable chunk memory and the actual memory pointer, using
efficient bit masking. This simplifies sys_heap_usable_size() and
inplace_realloc(). Use these helpers to make runtime stats reporting
reflect actual usable chunk memory (excluding chunk headers), and heap
listener notifications also account for alignment gaps.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2026-03-11 20:52:01 -04:00
Manimaran A
173e54e54c drivers: eeprom: microchip: mec: common eeprom driver
Updated EEPROM dts for PCR and GIRQ property.
Updated pinctrl to access internal EEPROM for MEC5 part.

Signed-off-by: Manimaran A <manimaran.a@microchip.com>
2026-03-11 17:54:41 +00:00
Krzysztof Chruściński
f41343c4c0 samples: boards: nordic: nrfx: Fix use of GPIOTE instance
After introducing nrfx4.0 GPIOTE driver instances shall not be created
in each module that is using the driver but reference shall be used.
Reference is retrieved using gpiote_nrfx.h API.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-11 17:53:23 +00:00
Krzysztof Chruściński
16efc6c909 modules: hal_nordic: nrfx: Cleanup GPIOTE Kconfigs
Remove instance specific Kconfigs (CONFIG_NRFX_GPIOTEx) as they are no
longer used. Cleanup in all places.

Add prompt to CONFIG_NRFX_GPIOTE to allow enabling the driver.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-11 17:53:23 +00:00
Dhanoo Surasarang
4cb9c76687 samples: sysbuild: hello_world: Fix REMOTE_BOARD for nRF7120
SOC_NRF7120_CPUAPP does not exist; the correct Kconfig symbol
for the nRF7120 engineering A application core is
SOC_NRF7120_ENGA_CPUAPP.

Signed-off-by: Dhanoo Surasarang <dhanoo.surasarang@nordicsemi.no>
2026-03-11 17:49:34 +00:00
Stephanos Ioannidis
57f6c6aab8 samples: tfm_regression_test: Set Python3_EXECUTABLE for external project
Set `Python3_EXECUTABLE` to the Zephyr-wide Python executable when invoking
the TF-M `tests_reg` test build to ensure that the same Python installation
used by the Zephyr build system is used by the TF-M test build process.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2026-03-10 17:58:23 -07:00
Stephanos Ioannidis
91af26572e samples: tfm_psa_test: Set Python3_EXECUTABLE for external project
Set `Python3_EXECUTABLE` to the Zephyr-wide Python executable when invoking
the TF-M `tests_psa_arch` test build to ensure that the same Python
installation used by the Zephyr build system is used by the TF-M test build
process.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2026-03-10 17:58:23 -07:00
Alain Volmat
d813229565 tests: display: reuse driver display sample code for display_check
display_check is sharing same code as sample driver display.
Avoid duplicating the code and directly reuse the sample code for
the test.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-03-10 17:56:12 -07:00
Felix Wang
bdbd54c3b0 samples: sensor: qdec: Add board overlay for mcx_n5xx_evk_mcxn547
Hardware connections required: J19 3 -> J3 3, J19 4 -> J2 15.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-03-10 22:22:28 +01:00
Felix Wang
6edbe2543e samples: sensor: qdec: Add board overlay for frdm_mcxn947
Hardware connections required: J5 -> J1, J7 -> J3.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-03-10 22:22:28 +01:00
Camille BAUD
fc8808ec39 samples: gpio: Add BFLB GPIO FIFO / Wire Out Sample
Add a sample to demonstrate FIFOWO usage in apps

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-10 22:20:46 +01:00
Michele Sardo
26b67398b4 samples: net: openthread: fix in documentation
Aligned building instruction for RCP to the style
of the one for NCP

Signed-off-by: Michele Sardo <msmttchr@gmail.com>
2026-03-10 14:20:18 -05:00
Michele Sardo
ed3e8125e2 samples: net: openthread: fix NUCLEO-WBA65RI support
Enable circular mode and disable console, since it is used by RCP

Signed-off-by: Michele Sardo <msmttchr@gmail.com>
2026-03-10 14:20:18 -05:00
Krzysztof Chruściński
260f56a1cb samples: subsys: usb: nrf54h20: Remove DPPI configuration from DT
Remove redundant DPPI configuration from the devicetree. GPPI supports
dynamic allocation of channels without need for the DT configuration.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-10 14:18:00 -05:00
Armando Visconti
5568c94dff sample: sensor: add accel_polling
This sample makes use of the sensor_read() API, which is implementing
the read_and_decode polling method.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-03-10 14:16:17 -05:00
Armando Visconti
469f90537d samples: sensor: rename accel_polling into accel_stream
This sample uses the sensor_stream() API (not sensor_read()), so we rename
it as accel_stream to reflect the sample�s behavior.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-03-10 14:16:17 -05:00
Jonas Berg
37860ea2c5 samples: Use printf in pressure_polling sample
Use printf to print the floating point numbers, instead of printk.
This is how it is done in the magn_polling sample.

Otherwise the sample hangs indefinitely after printing the first time,
when running the LPS22 sensor on an adafruit_feather_rp2040 board.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2026-03-10 14:16:04 -05:00
Bartosz Miller
6feb360880 tests: Extend tests and samples execution scope for nrf5340dk
Run more tests and samples on nrf5340dk/cpuapp and cpunet

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2026-03-10 17:25:13 +01:00
Sudan Landge
6bab66eed7 ci: fix sample.mcumgr.smp_svr.ram_load.serial.fs.shell
Change the MPU alignment to fix below ci failure for
nrf52840dk/nrf52840:

```
padding_section' will not fit in region `RAM'
arm-zephyr-eabi/bin/ld.bfd: region `RAM' overflowed by 54928 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
```

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2026-03-10 17:24:10 +01:00
Andy Ross
305b7227cc samples/openamp: Bump stack size
Running this with USE_SWITCH=y takes more space as expected, but it
oddly seems variable.  Even at 2kb, I still see fairly regular
failures.  It wants 3kb to be stable.  Maybe the non-determinism of
the two-qemu setup is involved?  Requests batch up and are handled
recursively?  Too much code in the third party stack to make it easy
to tell.

Signed-off-by: Andy Ross <andyross@google.com>
2026-03-10 17:24:10 +01:00
Raffael Rostagno
d2b3f4521b samples: boards: esp32: deep_sleep: Update test
Update test with PM developments.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Raffael Rostagno
378c1e9e54 samples: boards: esp32: light_sleep: Update test
Update test after PM interface is fixed.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Valerio Setti
4af3b66f8f samples|tests: replace key exchange with RSA encryption
Key exchanges with RSA encryption has been removed from Mbed TLS 4. This
commit replaces them with other ciphersuites.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>

This reverts commit 72bb0a077545efe65f801704334c753f32ee693b.
2026-03-10 12:36:50 +01:00
Tony Han
15000e2033 samples: drivers: crypto: add support for sama7g54 AES
Allow sama7g54 SoCs to run AES sample.
Update sample.yaml file.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-03-10 09:30:02 +01:00
Thien Nguyen
7b89e999e4 samples: net: ptp: Fix ptp4l syntax
Fix the syntax for ptp4l command line.

Signed-off-by: Thien Nguyen <nguyenmthien@live.com>
2026-03-09 15:08:19 -05:00
Benjamin Cabé
f5c8c0454a samples: sensor: drop redundant mpr sample
This commit deletes the mpr sensor sample as it is completely
redundant with the pressure_polling sample.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-09 11:18:06 -05:00
Krzysztof Chruściński
84f3f21ca3 samples: usb: uac2_explicit_feedback: Fix GPIOTE configuration
Address of the event endpoint was read before GPIOTE pin was configured
with the exact GPIOTE channel so endpoint address was invalid and PPI
connection did not work. Bug introduced when porting to nrfx 4.0:
ad1e5ac253 ("nordic: update and align to nrfx 4.0.1").

Addded handling of GPIO retaining which is needed when pins are handled
without GPIO driver.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-09 11:16:01 -05:00
Tomi Fontanilles
1ddcd19759 modules: mbedtls: replace CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT
It was not a standard Mbed TLS configuration.
Replace it by the underlying macros it used to enable:
MBEDTLS_PEM_PARSE_C, MBEDTLS_PEM_WRITE_C and MBEDTLS_BASE64_C
indirectly.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-09 11:13:40 -05:00
Tomi Fontanilles
e389d88a19 modules: mbedtls: rename CONFIG_MBEDTLS_SERVER_NAME_INDICATION
To match its Mbed TLS configuration counterpart
(MBEDTLS_SSL_SERVER_NAME_INDICATION).
Also add its prerequisite as a Kconfig condition.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-09 11:13:40 -05:00
Tomi Fontanilles
f2615043c4 modules: mbedtls: add Kconfig option for MBEDTLS_X509_CRT_PARSE_C
Add a dedicated Kconfig option for this previously hidden and
automatically enabled Mbed TLS configuration.
Make the relevant key exchange Kconfig options depend on it.
Enable it explicitly where needed.
Fix the condition for defining MBEDTLS_X509_USE_C (based on
mbedtls_config.h).
Check for CONFIG_MBEDTLS_X509_CRT_PARSE_C instead of
MBEDTLS_X509_CRT_PARSE_C now that we have a Kconfig option for it.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-09 11:13:40 -05:00
Stephan Linz
5a5c84b688 boards: shields: add support for MikroElektronika EEPROM 13 Click
Add shield definition for the MikroElektronika EEPROM 13 Click shield,
an mikroBUS compatible evaluation module for the STMicroelectronics
M24M01E (1M-bit) I2C Serial EEPROM chip.

Tested with the command mentioned on the index.rst page.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-03-09 11:12:35 -05:00
Tamas Jozsi
f10a9d3e95 samples: regulator: add regulator shell sample
Introduces a new regulator shell sample which can be used to control
regulator devices from the shell interactively.

Signed-off-by: Tamas Jozsi <tamas.jozsi@silabs.com>
2026-03-09 14:12:03 +01:00
Sara Touqan
eb1756eb3a samples: mspi: flash: Enable mxicy,mx25u support in stm32 boards' overlays
This commit adds the "mxicy,mx25u" compatible to STM32 MSPI flash sample
board overlays.

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
Signed-off-by: Sarah Younis <zephyr@exalt.ps>
2026-03-09 14:10:07 +01:00