Commit graph

12,113 commits

Author SHA1 Message Date
Jiafei Pan
0e4b971b98 samples: net: zperf: add imx943 a55 support
Configure heap memory size to be enough for GIC ITS.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Benjamin Cabé
6132640d08 doc: samples: shields: fix doc build warnings
Ensure all RST files only ever belong to one single toctree by means of
cleaning up existing in globs used in nested folders.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:42 +02:00
Benjamin Cabé
aaa6ab545c doc: samples: canbus: cleanup sample category
Main sample category page for CANbus contained "old" toctree alongside
zephyr:code-sample-category, causing doc build warning due to documents
belonging to multiple toctrees.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:42 +02:00
Benjamin Cabé
c02a33efcc doc: samples: stm32: fix doc warnings
Ensure all RST files only ever belong to one single toctree by means of
cleaning up existing in globs used in nested folders.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:42 +02:00
Johann Fischer
7feddfa243 samples: usb: mass: add flashdisk overlay file
There are a few board overlay files with identical lines describing the
flash disk. Move these lines to a separate overlay file that could be
used for any board with a large enough storage partition. Update the
documentation accordingly.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-09-04 16:45:01 +02:00
Jamie McCrae
81413f07ce samples/smp_svr: Increase stack size required
Increase stack size as support for SHA512 requires more data.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-09-04 14:43:26 +02:00
Jonas Berg
6946ec9530 boards: shields: Add Adafruit INA237 current sensor shield
Product photo from https://learn.adafruit.com/assets/137463
with the license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 21:21:12 +02:00
Benjamin Cabé
0132ea07fb doc: fix spelling errors tree-wide
fix some spelling errors in code comments and Kconfig helps

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 17:04:13 +02:00
Benjamin Cabé
ce628ea558 shields: add MikroE 3D-HALL-3 Click shield
Adds support for the MikroE 3D-HALL-3 Click shield

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 14:58:23 +01:00
Benjamin Cabé
ed677d0d9d shields: add MikroE IR-GESTURE Click shield
Adds support for the MikroE IR-GESTURE Click shield

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 14:58:04 +01:00
Benjamin Cabé
03ac047758 shields: add MikroE PRESSURE-3 Click shield
Adds support for the MikroE PRESSURE-3 Click shield

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 14:57:49 +01:00
Benjamin Cabé
be879d8aaf shields: add MikroE PROXIMITY-9 Click shield
Adds support for the MikroE PROXIMITY-9 Click shield

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 14:57:41 +01:00
Benjamin Cabé
e55b793923 shields: add MikroE AIR-QUALITY-3 Click shield
Adds support for the MikroE AIR-QUALITY-3 Click shield

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 14:56:43 +01:00
Benjamin Cabé
a48dd9bb4e shields: add MikroE LSM6DSL Click shield
Adds support for the MikroE LSM6DSL Click shield

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 14:56:33 +01:00
Jonas Berg
5857aee4ab boards: shields: Add Sparkfun RV8803 RTC shield
Product photo from
https://www.sparkfun.com/sparkfun-real-time-clock-module-rv-8803-qwiic.html

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 06:10:16 +02:00
Jonas Berg
30fbfffb67 boards: shields: Add Adafruit AHT20 temp and humidity sensor shield
Product photo from https://learn.adafruit.com/assets/91687
with the licence CC BY 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 06:10:01 +02:00
Jonas Berg
5f5638b1cb boards: shields: Add Adafruit DPS310 pressure sensor shield
Product photo from https://learn.adafruit.com/assets/87727
with the license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 06:09:41 +02:00
Jonas Berg
12a8eaf47d boards: shields: Add Adafruit APDS9960 proximity sensor shield
Product photo from https://learn.adafruit.com/assets/89850

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:43:07 +02:00
Jonas Berg
7428a84667 boards: shields: Add Adafruit 24LC32 EEPROM shield
Product photo from https://learn.adafruit.com/assets/123033
with license CC BY-SA 3.0.

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:42:31 +02:00
Jonas Berg
89d1c52687 boards: shields: Add Adafruit VCNL4040 proximity sensor shield
Product photo from https://learn.adafruit.com/assets/78982
with license CC BY-SA 3.0

Tested with command mentioned in the index.rst page.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:40:17 +02:00
Jonas Berg
2581729925 boards: shields: Add Adafruit HT16K33 LED matrix shield
Product photo from https://learn.adafruit.com/assets/87051
with the license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:37:48 +02:00
Vinayak Kariappa Chettimada
eba31282e8 samples: Bluetooth: observer: Extended Scanning on BBC Micro Bit board
Add configuration overlay file to support observer sample
with Extended Scanning on BBC Micro Bit board.

Due to slow CPU, there will be assertions, and this commit
(for now) validates build-only. And the sample may run for
a duration until it asserts.

Asserts:

- ASSERTION FAIL [start_us == (aux_start_us + 1U)]
  @ WEST_TOPDIR/zephyr/subsys/bluetooth/controller/ll_sw/
  nordic/lll/lll_scan_aux.c:359
  This will happen for small aux offset value, definitely
  for the 300 us because CPU usage latency to setup such
  auxiliary PDU reception on nRF51 is high due to slow CPU.

- ASSERTION FAIL [0]
  @ WEST_TOPDIR/zephyr/subsys/bluetooth/controller/ll_sw/
  nordic/lll/lll_scan_aux.c:592
    prepare_cb: Actual EVENT_OVERHEAD_START_US = 579
  This will happen due to CPU usage latencies scheduling
  the radio events, due to slow CPU.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-09-03 01:36:57 +02:00
Vinayak Kariappa Chettimada
53835e9524 samples: Bluetooth: observer with 10 ms continuous scanning
Updated observer sample to use 10 ms continuous scanning
parameters.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-09-03 01:36:57 +02:00
Jonas Berg
4227016559 boards: shields: Add Adafruit LIS2MDL magnetometer shield
The product photo is from https://learn.adafruit.com/assets/88773
with license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:32:49 +02:00
Jonas Berg
222c79c1fb boards: shields: Add Adafruit DRV2605L haptics driver shield
Product photo from https://learn.adafruit.com/assets/122966
with license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:28:05 +02:00
Jonas Berg
57126f2836 boards: shields: Add Adafruit MCP9808 temperature sensor shield
Product photo from https://learn.adafruit.com/assets/102984
with the license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:19:10 +02:00
Jonas Berg
bc28fb1b19 boards: shields: Add Adafruit INA219 current sensor shield
Product photo from https://learn.adafruit.com/assets/104390
which has the license CC BY-SA 3.0

Tested with the command mentioned in the index.rst file.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:16:21 +02:00
Benjamin Cabé
5b7bf2e68a include: drivers: rtc: counter: deprecate counter-based DS3231 driver
There is a "native" RTC driver for DS3231 now (maxim,ds3231-rtc, one of
the multiple functions implemented as MFD) so do all we can to
discourage the use of the legacy, counter-API based, driver.

Flag the compatible as deprecated.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 01:10:40 +02:00
Jonas Berg
17b301a753 boards: shields: Add Adafruit TSL2591 light sensor shield
Tested with the command mentioned on the index.rst page.

The product photo is from https://learn.adafruit.com/assets/95227
with the license CC BY-SA 3.0

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:10:28 +02:00
Lena Voytek
6ecfd5c1b1 boards: adafruit: add initial support for esp32 feather v2
The Adafruit ESP32 Feather V2 is a board that uses the Feather standard
layout. It uses an ESP32-PICO v3 02 module, and includes a USB-C
connector, LiPo battery charger, NeoPixel RGB LED, and STEMMA QT
connector.

Signed-off-by: Lena Voytek <lena@voytek.dev>
2025-09-03 01:09:58 +02:00
Jordan Yates
2270898271 samples: lora: validate LBM build
Add testcases for `CONFIG_LORA_MODULE_BACKEND_LORA_BASICS_MODEM` in the
LoRa API samples.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-02 18:41:44 +02:00
Francois Ramu
c965767203 samples: drivers: spi flash testing with stm32 in memmapped mode
Add a testcase to execute the samples/drivers/spi_flash on
stm32 disco kits where the external flash is accessible
in memory mapped mode : CONFIG_STM32_MEMMAP=y.
In this testcase condition, the DMA transfer is not used but memcopy.
limit to "st,stm32-Xspi-nor" compatible only.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2025-09-02 15:54:01 +02:00
Qiankun Li
287d3a142c samples: net: wifi: Add apsta_mode configurations for rw612.
Add more apsta_mode configurations for frdm_rw612
and rd_rw612_bga.

Add overlay file to set apsta_mode configurations.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-09-02 12:33:01 +02:00
Qiankun Li
433adcff3d samples: net: wifi: Enable apsta_mode macros in *.conf file.
Update *.conf to enable apsta_mode macros
without impacting origin boards support.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-09-02 12:33:01 +02:00
Qiankun Li
a4000c60a9 samples: net: wifi: Add new Kconfig for apsta_mode
Introduce a dedicated Kconfig option for apsta_mode example to
allow more flexible configuration in the application layer.
This change helps make apsta_mode more generic and easier to
integrate across different vendor platforms.

Add compile-time assertions for the following macros:
CONFIG_WIFI_SAMPLE_AP_SSID
CONFIG_WIFI_SAMPLE_SSID
CONFIG_WIFI_SAMPLE_AP_IP_ADDRESS
CONFIG_WIFI_SAMPLE_AP_NETMASK

Default to empty string ("") if the following
two macros are not defined:
CONFIG_WIFI_SAMPLE_AP_PSK
CONFIG_WIFI_SAMPLE_PSK

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-09-02 12:33:01 +02:00
Qiankun Li
e0b65d2908 samples: net: wifi: Add apsta_mode support for rw612 boards.
Add conf files for frm_rw612 and rd_rw612_bga
to support apsta_mode example.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-09-02 12:33:01 +02:00
Tomasz Bursztyka
5e3f1611e1 dts: mspm0: Fix timer/counter/pwm names to enforce uniqueness
There are 14 TIMG and 2 TIMA, all which can be either a counter or a pwm,
so let's fix the names to avoid ambiguity and enforce uniqueness.

Rule applied here being:

tim<g/a><n>: tim<g/a><n>@<address> {
        ...

        counter<g/a><n>: counter<g/a><n> {
                ...
        };

        pwm<g/a><n>: pwm<g/a><n> {
                ...
        };
};

It will be much easier then once get the 16 timer nodes included.

Signed-off-by: Tomasz Bursztyka <tobu@bang-olufsen.dk>
2025-09-02 09:59:49 +02:00
Emil Gydesen
27b2d17ad1 samples: Bluetooth: BAP: Unicast Server: Refactor TX
Refactors the TX of the unicast server. This commit effectively
copies the TX approach of the unicast client sample, to make
the sample more similar.
This changes the TX to be based on the number of complete
packets event (which results in free'ing the buffer), instead of
a timer. This completely ensures that we do not skip any sequence
numbers which may be rejected by the controller.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-02 09:59:41 +02:00
Jonas Berg
0bc5f7d4db samples: Fix documentation formatting for pressure polling sample
The sample output is not rendered properly, as can be seen on
https://docs.zephyrproject.org/latest/samples/sensor/pressure_polling/README.html

Adjust the formatting so that the code block is rendered properly.
The text "## Default configuration" does not appear in the sample output.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-01 08:34:14 +02:00
Benjamin Cabé
506e95325d include: can: re-organize doxygen groups
group controller and transceiver API under a common umbrella

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-30 12:30:50 +02:00
Etienne Carriere
2560dca75d samples: drivers: i2c: rtio_loopback: configure transfer byte size
Add configuration options CONFIG_I2C_RTIO_LOOPBACK_DATA_READ_MAX_SIZE
and CONFIG_I2C_RTIO_LOOPBACK_DATA_WRITE_MAX_SIZE to set the number
of bytes exchanged during I2C transfers in I2C driver rtio_loopback
sample.

Add also a bit of verbosity when exchanged data are corrupted.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-30 12:30:15 +02:00
Etienne Carriere
862faccb27 samples: drivers: i2c: rtio_loopback: fix CONFIG_I2C_TARGET_BUFFER _MODE=n
Allow to disable CONFIG_I2C_TARGET_BUFFER_MODE in rtio_loopback I2C
driver sample.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-30 12:30:15 +02:00
Tomi Fontanilles
91029d7c0b samples: psa: specify integration_platforms
Explicitly specify native_sim as integration platform for better PR
CI coverage.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-08-29 18:19:36 +02:00
Vit Stanicek
51e0c52837 samples: i2s_codec: Factorise initial loop count
Replace hard-wired constant "2" with CONFIG_I2S_INIT_BUFFERS in the loop
where audio data is read and written.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-29 11:05:48 +02:00
Vit Stanicek
d11474ce64 samples: i2s_codec: Modify DMIC channel mapping
Modify DMIC channel mapping (req_chan_map_lo) to account for physical
1:1 mapping between logical channel numbers and physical channel space.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-29 11:05:48 +02:00
Vit Stanicek
4bdc70d045 samples: i2s_codec: Reorganise Kconfig fragments
Reorganise Kconfig fragments (prj.conf, boards/*.conf). Rename
mimxrt1170_evk@B/mimxrt1176/cm7 fragments to
mimxrt1170_evk/mimxrt1176/cm7. Change Kconfig defaults for SAMPLE_RATE
and I2S_INIT_BUFFER.

This change is meant to reduce the length of target-specific
configuration, as some of the settings are duplicated across targets.
Also, with the inclusion of the sine wave vector, the default sample
rate of this sample changed to 16 kHz.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-29 11:05:48 +02:00
Vit Stanicek
a39483477d samples: i2s_codec: Fix buffer size
Use BLOCK_SIZE instead of the test 16 kHz sine wave length. Add a build
check so that BLOCK_SIZE doesn't overflow the test sine wave buffer.

This accounts for situations where the sample queue can't be big enough,
mainly when it doesn't fit in the device's SRAM and the count of samples
queued will be less. As the test sine wave vector contains ~42 periods,
it can be truncated.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-29 11:05:48 +02:00
Vit Stanicek
36967affbd samples: i2s_codec: Move audio slab to uncached
Move mem_slab (audio queue) to an uncached region with __nocache.

On platforms with data cache (such as platforms with the Cortex M7
core), it's desirable to have the audio data in an uncached region, so
that all data is committed in the selected location before DMA transfers
are triggered.

Playback problems observed on mimxrt1170_evk/mimxrt1176/cm7 before this
was done.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-29 11:05:48 +02:00
Vit Stanicek
bddc1a4664 samples: i2s_codec: Parametrise peripheral and codec position
Add Kconfig symbol USE_CODEC_CLOCK. Modify configuration for supported
boards.

This change enables to adjust the position of both the codec and I2S
peripheral on the I2S bus.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-29 11:05:48 +02:00
Vit Stanicek
8d826fd1ea samples: i2s_codec: Add mimxrt595_evk DTO lic. hdr.
Add license header to the mimxrt595_evk/mimxrt595s/cm33 i2s_codec's DT
overlay.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-29 11:05:48 +02:00