Commit graph

12,113 commits

Author SHA1 Message Date
Manoj Purushothama
bf8456e0d1 samples: sensor: qdec: Fix Arduino typo
Fix the typo in the comments

Signed-off-by: Manoj Purushothama <hpmanoj@umich.edu>
2025-09-24 19:20:28 -04:00
Aksel Skauge Mellbye
d3f531ca9a samples: basic: button: Disable led on bg27 boards
Button 0 and LED 0 share a GPIO pin on bg27 boards. Remove the
`led0` alias in a board overlay to make the button sample work
out of the box.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-09-24 19:19:16 -04:00
Zhaoxiang Jin
857347a2bb samples: boards: nxp: add new sample for frdm_mcxa156
Add new sample lpdac_opamp_lpadc for frdm_mcxa156.

In this example:
1. The LPDAC outputs a 300mv voltage to the
non-inverting terminal of the OPAMP.

2. The OPAMP operates in the non-inverting amplifier
mode, the inverting terminal of the OPAMP is grounded.

3. The channel 0 of the LPADC is connected to the output
of the OPAMP, and the channel 1 of the LPADC is connected
to the output of the DAC (the non-inverting input terminal
of the OPAMP).

4. The ideal sampling range of OPAMP output channel is
specified by 'ideal-sample-range', and 'nxp,opamps' are
used to specify LPADC samples which OPAMP's output and
which ADC channel is connected to the OPAMP output.

5. The OPAMP non-inverting input is 300mV, and the OPAMP
gain is initialized to 1. Therefore, the first round OPAMP
output (~300mV) will not reach the minimum value of the
'ideal-sampling-range'. Therefore, the ADC driver will
increase the OPAMP gain through 'opamp_set_gain'. The second
round OPAMP output (~900mV) is still below the minimum value,
so the gain will continue to increase. The third round OPAMP
output (~1500mV) is already in the ideal range, so the gain
will not be adjusted later.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-24 19:18:11 -04:00
Zhaoxiang Jin
d0a8b7c347 samples: drivers: opamp: Add output_measure exmaple
1. Add output_measure exmaple.
2. Enabled on frdm_mcxa156, frdm_mcxa166, frdm_mcxa276,
frdm_mcxn947_mcxn947_cpu0, lpcxpresso55s36.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-24 19:18:11 -04:00
Allen Zhang
db5d78659d samples: sensor: enable sensor trigger for frdm_mcxw23
enable sensor trigger.

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-09-24 19:17:22 -04:00
Alain Volmat
136ad68ac3 samples: remove CONFIG_MBOX_STM32_HSEM enabling in conf files
Now that the MBOX_STM32_HSEM driver is enabled by default if
present within the device-tree, it is no more necessary to
manually enable it within samples board specific conf files.

Remove as well the CONFIG_LOG_BACKEND_UART since overall
CONFIG_LOG is anyway not enabled in the samples/drivers/mbox

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-09-24 15:50:40 +01:00
Cristian Bulacu
fefa833cdb samples: openthread: border_router: Update config for new features
Updated project configuration for Border Router to include DHCP6_PD
client, DNS upstream resolver and SRP server features
Removed flags set to 'n' and updated Thread version to 1.4

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-24 15:50:18 +01:00
Jonas Berg
5ae23e5520 boards: shields: Add Adafruit PCF8523 real-time clock shield
Product image from https://learn.adafruit.com/assets/103710

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

Compile-testing of the overlay file is done in CI via the
drivers/rtc sample.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-24 09:43:44 +02:00
Jonas Berg
d5b90a74bd samples: Allow compile-testing of RTC shields in samples/drivers/rtc
Create a testcase without "depends_on: rtc", to allow compile test
the overlay files for shields.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-24 09:43:44 +02:00
Vladislav Pejic
3db00489f1 sample: adc_stream: Add sample app for ADC stream
Add sample application to demonstrate new ADC stream APIs.
Two tests are also added:
- ad4052-stream
- max32-stream

Signed-off-by: Vladislav Pejic <vladislav.pejic@orioninc.com>
2025-09-23 17:50:25 -04:00
Michael Zimmermann
366d129146 samples: mqtt_sn: add support for IPv6
Like other samples, this moves to net_ipaddr_parse, which can handle IPv4
and IPv6. Additionally, it parses the port as well which removes the need
to have separate Kconfigs for addresses and ports, thus simplifying the
code.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-09-23 17:49:56 -04:00
Bjarki Arge Andreasen
1767f131aa pm: refactor PM_S2RAM_CUSTOM_MARKING option to be promptless
The config PM_S2RAM_CUSTOM_MARKING is not an optional config for a
user to select, it is required by some soc implementations of S2RAM,
in which case it must be selected by the soc.

Refactor the configuration to be HAS_PM_S2RAM_CUSTOM_MARKING, and
make the currently only soc which needs it select it. Then update
samples which previously had to select this option for this soc.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-09-23 12:07:59 -04:00
Bjarki Arge Andreasen
4626f6b776 pm: bind the PM_S2RAM kconfig option to devicetree
Currently it is possible to have an enabled (status="okay")
"suspend-to-ram" "zephyr,power-state" in the devicetree,
CONFIG_PM=y, but CONFIG_PM_S2RAM=n

This means the presence and state of the "suspend-to-ram" power
state in the devicetree does not match the PM_S2RAM option,
despite PM_S2RAM being dependent on the devicetree state.

This commit makes the devicetree the "source of truth" for
whether one or more s2ram power states shall be included and
supported, by enabling PM_S2RAM if any s2ram power state with
status "okay" is present in the devicetree. To disable the
s2ram power state, like with any other state, disable it by
setting its state to "disabled".

The help of the now promptless PM_S2RAM config has been
updated to reflect the new meaning. It previously held
cortex-m specific implementation details, these have been
removed as these details are already present in the file
pointed to as well (arch/arm/core/cortex_m/pm_s2ram.c
line 22)

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-09-23 12:07:59 -04:00
Cla Mattia Galliard
c8540e8644 samples: net: sockets: echo_service: Move accept-loop to socket-service
Move the accept-loop into a socket-service. No dedicated thread is needed
just for the accept loop. This better demonstrates the power of the
socket-service in removing the need for dedicated threads. Make some tiny
improvments and necessary changes to the udp-side of the service.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-09-23 12:06:18 -04:00
Cla Mattia Galliard
b83a34f4f6 samples: net: sockets: echo_service: enable multiple tcp clients
Improve the sample to enable multiple tcp clients to connect to the
echo-service.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-09-23 12:06:18 -04:00
Chang An
7c17d09121 samples: Bluetooth: make cap_acceptor work with Google Pixel
- Increase codec config metadata size to support long metadata
  audio configuration
- Remove invalid check for requested and new BIS sync request
- Delete broadcast sink when sync terminated to prepare for
  next sync attempt
- Change supported channel count from 2 to 1 to align with
  project configuration and set audio channel to front center

These changes ensure the cap_acceptor sample works correctly
with Google Pixel devices by handling metadata properly and
managing broadcast sink lifecycle appropriately.

Signed-off-by: Chang An <chang.an_1@nxp.com>
2025-09-23 09:39:53 +01:00
Raffael Rostagno
ab2622fc2d samples: openthread: esp32h2: Add testcase
Add testcase for GH CI build test.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-22 17:52:46 -04:00
Bill Waters
06bbdd452b samples: drivers: counter: alarm: add psc3m5
Enable the alarm sample for the kit_psc3m5_evk

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2025-09-22 17:50:00 -04:00
Jonas Berg
81dc0ecf33 boards: shields: Add Adafruit VEML7700 light sensor shield
Product photo from https://learn.adafruit.com/assets/122469,
which has the CC BY-SA 3.0 license.

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-22 11:17:52 +02:00
Cristian Bulacu
5f64a3a666 samples: net: openthread: border_router: Enable IPv4 to IPv6 mapping
Updated border router configuration to enable IPv4 to IPv6 address
mapping feature

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-22 09:52:03 +02:00
Fabio Baltieri
9e42f0cfa1 samples: capture: fix a double promotion warning
Fixes

samples/drivers/pwm/capture/src/main.c:50:47: warning: implicit
conversion from 'floa' to 'double' when passing argument to function
[-Wdouble-promotion]
   50 |                         (float)tim_clk_cycles / (float)period,
      |                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
samples/drivers/pwm/capture/src/main.c:51:46: warning: implicit
conversion from 'floa' to 'double' when passing argument to function
[-Wdouble-promotion]
   51 |                         (float)(width * 100) / (float)period);
      |                         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-09-20 11:11:21 +02:00
Fabrice DJIATSA
5539a2254a samples: drivers: i2s: output: update u385rg_q sa1 pins node
Choose another sai1_fs_a pin available to avoid the need to
disable the Zephyr-chosen console and i2c3 node.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-19 12:46:58 -04:00
Michael Zimmermann
16c57f6025 samples: mqtt_sn_publisher: fix adding predefined gateway
Apparently, the code was copied from where the broadcast IP is parsed and
not adjusted correctly. Both the log message and the source of the IP
address were wrong.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-09-19 12:46:29 -04:00
Michael Zimmermann
013ca06c78 samples: mqtt_sn_publisher: fix wrong kconfig description
The opposite of what was stated previously is true.
NET_SAMPLE_MQTT_SN_GATEWAY_IP is only used when
NET_SAMPLE_MQTT_SN_STATIC_GATEWAY is y.

Since this is already expressed using Kconfig dependencies, this change
simply removes the sentence in question.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-09-19 12:46:29 -04:00
Dominik Kilian
0b237daa2d samples: ipc: static_vrings: Exclude unsupported platforms
List of allowed platforms for this sample was
changed in PR #85997. This enabled more
platforms including those that are not needed.
This commit excludes nrf5340/cpuapp_ns and
nrf5340/cpunet platforms since they are not
supported by this sample.

Signed-off-by: Dominik Kilian <Dominik.Kilian@nordicsemi.no>
2025-09-18 19:08:18 -04:00
Benjamin Cabé
81760b7172 boards: infineon: xmc4x_relax_kit: pwmleds should be disabled initially
The pwmleds node for `xmc45_relax_kit` and `xmc47_relax_kit` should be
disabled initially due to the PWM controller the pwmleds node use not
being enabled by default.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-18 13:51:04 -04:00
Josuah Demangeon
a3b73ac1ca samples: drivers: video: capture: esp32s3_eye_procpu: BGR/RGB swap
Propagate #79996 where RGB_565 and BGR_565 interchange got fixed.
It is not necessary to enable the BGR_565 format for the ST7789V display
as RGB_565, the default, is correct.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-09-18 15:42:52 +01:00
Josuah Demangeon
2a0dc5046c samples: drivers: video: capture: esp32s3_eye: fix the buffer size
Increase the ESP32 S3 Eye board buffer size to fit the selected frame size
configured. This fixes a buffer allocation error preventing the sample
to run. Only use a single buffer which is enough to run it.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-09-18 15:42:52 +01:00
Cristian Bulacu
2177ca2006 samples: net: openthread: border_router: Update configuration
Update number of maximum multicast route entries to be compliant with
Thread conformance.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-18 15:42:30 +01:00
Alain Volmat
e03f85bd07 samples: drivers: display: add stm32f769i_disco specific conf
Add stm32f769i_disco conf file in order to increase the amount of
HEAP to ensure k_malloc allocation goes well.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-09-18 15:41:02 +01:00
Cristian Bulacu
477c7624c0 samples: net: openthread: border_router: Update configuration
New OpenThread functionalities have been enabled. Updated specific nxp-
rcp-host-wifi configuration file.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-17 16:37:49 +02:00
Hieu Nguyen
e80c43af0b samples: drivers: counter: Add Counter support for Renesas RZ/T2M, N2L
Add Counter sample support for Renesas RZ/T2M-RSK, RZ/N2L-RSK

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-09-17 14:53:20 +02:00
Piotr Kosycarz
55675e861a samples: sysbuild: hello_world: verify output from both uarts
Beside main core, check output from remote core console.
Checking second console will work only for nordic boards
(as the pattern to get second uart interface is known).
For other boards (with different interface naming),
the test will check only provided console,
which is the same behavior as harness:console.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-09-17 11:16:40 +01:00
Swift Tian
bf5a0a7c62 samples: mspi: update log print for CI
Use app level log instead of INF log from module to avoid complex regex.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2025-09-17 11:16:09 +01:00
Swift Tian
4d977f0de6 samples: drivers: memc: update memc example yaml for CI twister
Add another mspi section and filter by psram0 dt alias.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2025-09-17 11:16:09 +01:00
Khanh Nguyen
5ed15487b4 samples: video: Add CEU support for Renesas RA boards
Add EK-RA8D1 board support for capture and capture_to_lvgl samples

Signed-off-by: Khanh Nguyen <khanh.nguyen.wz@bp.renesas.com>
2025-09-17 10:06:34 +02:00
Lucien Zhao
296ca350d6 samples: drivers: i2s: output: add rt1180 support
- add i2s_output case support on cm33/cm7 core
- remove 1180 platform in i2s_api/speed cases

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-09-17 08:42:44 +02:00
Lucien Zhao
30d5243ed4 samples: drivers: i2s_codec: support sai1 codec function on RT1180
- add imxrt_audio_codec_pll_init function in soc.c
- add sai1 pin configuration
- Verify i2s_codec case on cm33/cm7 core

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-09-17 08:42:44 +02:00
Fabrice DJIATSA
3c8def0691 samples: drivers: uart: async_api: add new scenario for console harness
- Add a console harness to filter console output and validate tests.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-16 13:07:03 -04:00
Fabrice DJIATSA
51aba7f739 samples: drivers: uart: async_api: add stm32 platform overlays
Configure and attach DMA for each platform's USART to enable
asynchronous UART communication.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-16 13:07:03 -04:00
Phuc Pham
304194ed00 samples: boards: renesas: Add OpenAMP sample for Renesas RZ/V2L
Add OpenAMP sample support for board Renesas RZ/V2L-SMARC

Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-09-16 09:54:57 +02:00
Tom Burdick
e8c676be47 rtio: More useful callback OPs
Callbacks now take a result parameter which may, if the callback was
linkd to by a previous submissions, have the result code from the last
submission.

Additionally the userdata is now const by default making it easier to
use the device pointer as the userdata which is very common.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-09-16 09:53:14 +02:00
Yangbo Lu
298ea526c6 samples: net: gptp: add imx943_evk_mimx94398_m33_ddr support
Added imx943_evk_mimx94398_m33_ddr support.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Tarang Patel
0ab226aa38 boards: evk_iris_w1_rw612 enable wifi support
- Enabled WiFi support
- minor fixes in the device tree

Signed-off-by: Tarang Patel <tarang3399.patel@gmail.com>
2025-09-15 14:00:24 -04:00
Jakub Klimczak
3433a45d13 samples: net: echo_server: Add files for VIRTIO network device
Create an overlay and a config file for testing the VIRTIO network device.
Add some instructions to the README.rst file as well.
These can be used with any of the networking subsystem samples.

Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
2025-09-15 14:44:58 +02:00
Ayush Singh
46a532c065 samples: subsys: logging: dictionary: Disable for pb2 m4
The new I-RAM and D-RAM layout for pb2 m4 is not compatible with
devnull. So do not have the tests for pb2.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-09-15 10:30:13 +02:00
Grzegorz Chwierut
bf2378e36b twister: scripts: sharing of built applications
This feature enables sharing of built applications between test
scenarios, allowing tests to access build artifacts from other
applications.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2025-09-15 10:29:40 +02:00
Stoyan Bogdanov
84de5b8417 samples: sensors: bme280: Add lp_em_cc2340r5 overlay
Add lp_em_cc2340r5 overlay in bme280 sensors sample.

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
2025-09-13 21:23:34 -04:00
TaiJu Wu
d361ec9692 kernel: message does not execute correct put front behavior
When the buffer is full, Thread A gets pended (blocked).
If Thread B later calls the get function, it will unpend Thread A,
allowing it to resume and put the message into the queue.
In this situation, we need to know whether Thread A should
continue with put to front or put to end.

In order to resolve this issue, we don't allow set timeout
parameter for `k_msgq_put_front` and this parameter is always
`K_NO_WAIT`.

Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2025-09-13 21:22:52 -04:00
Emil Gydesen
dbdf1aacc0 samples: Bluetooth: BAP: Source: Reverse in/out terminology
In USB "in" refers to data going from device to host,
and "out" refers to data going from host to device.

From a BT perspective "usb_out" then refers to the data
we receive from the host, to be sent over BT, so the "out"
terminology still works for that.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-11 18:09:52 +01:00