Commit graph

9277 commits

Author SHA1 Message Date
Yong Cong Sin d462ed4d95 samples: sensor: sensor_shell: add fake sensor driver
Add a simple fake sensor driver so that the sample is more fun
for boards without real sensor.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-05-20 22:56:11 +03:00
Bjarki Arge Andreasen 84e9f52fc4 samples: net: cellular modem: Select modem backend statistics
select modem backend statistics and enable shell in cellular
modem sample. This will help advertise the feature, and can
help quickly identify issues with to small buffers.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-20 14:40:06 +03:00
Jukka Rissanen e670637f42 samples: net: Add net_if.h include
Because of changes in other network header files, the net_if.h
was not included so add it directly to the echo-client and
mqtt_azure sources.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-20 14:25:44 +03:00
Jukka Rissanen 07d64352fe samples: mgmt: updatehub: Fix build failure on frdm_k64f board
The CONFIG_MAX_THREAD_BYTES=3 needs to be set otherwise this error
is printed by CI.

    Too many thread objects (17)
    Increase CONFIG_MAX_THREAD_BYTES to 3

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-20 14:25:44 +03:00
Jukka Rissanen d5cd41a0fe net: llmnr_responder: Convert LLMNR responder to use socket service API
Instead of using net_context API directly, the LLMNR responder is
changed to use the socket service API. This allows DNS access
for offloaded sockets and can lower overall memory consumption.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-20 14:25:44 +03:00
Jeppe Odgaard 69065fa317 samples: sensors: add veaa_x_3 sample
Add sample for VEAA-X-3 sensor.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-05-18 15:56:09 +03:00
Emil Gydesen f58ac3476f Bluetooth: CAP: Add reference to the set member for CAP discover
Since the CSIP API expects a set member struct for nearly all
functionality, the reference to the full set member (along with
the CAS specific CSIS) should be given to the application.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-05-18 15:51:26 +03:00
Karthikeyan Krishnasamy 5e7d74bd23 samples: bluetooth: hci_uart: fix dtsi path in overlay
fix dtsi overlay include path for nrf9160dk_nrf52840

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
2024-05-17 14:40:15 -05:00
Karthikeyan Krishnasamy 89fcb5a9b4 samples: cellular: fix dtsi path in overlay
fix dtsi include path for board nrf9160dk_nrf52840

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
2024-05-17 14:40:15 -05:00
Benjamin Cabé bdfb6afe70 samples: net: http_server: add link to HTTP Server doc page
Improve navigability in the documentation by adding a link to the main
HTTP Server documentation page to the HTTP Server sample.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-05-17 14:38:15 -05:00
Johann Fischer 64894e8798 sample: hid-mouse: exclude frdm_mcxn947
Board does not specify "zephyr,code" and is fails in twister.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-17 16:25:02 +01:00
Johann Fischer 7328690799 samples: usb: add a sample USB 2.0 Extension Descriptor
Add a sample USB 2.0 Extension Descriptor.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-17 16:25:02 +01:00
Johann Fischer 4f17bc6051 usb: device_next: store bDescriptorType and bLength in descriptor node
It simplifies the macros to create the string descriptors. We also no
longer need placeholders for the SerialNumber descriptor when it is
generated from hwid. In the future, we can store other descriptor types
in the same list.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-17 16:25:02 +01:00
Ederson de Souza 972eecfc17 samples/subsys/llext: EDK sample
Shows a simple application which loads extensions and some simple
extensions. While everything is inside Zephyr tree, everything can
actually be build from different directories (even machines), as long as
the EDK is generated from the application and used by the extensions.
More information is available at sample's README.

This sample is build only for twister, as it requires a few steps to be
properly run, namely build the EDK, install it somewhere, build the
extensions using the EDK and finally build the application with the
extensions.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2024-05-17 16:21:48 +01:00
Piotr Dymacz 35c08ea636 boards: st: nucleo_wba55cg: define all LEDs and buttons
This board includes three gpio-connected LEDs and push-buttons. Include
all missing defines in board's DTS and while at it, fix existing button
definition (missing pull-up enable) and align node names with other
boards (e.g. 'nucleo_wb55rg').

Provided changes were tested on real board with 'blinky' and 'button'
samples.

Additionally, duplicated LED nodes no longer required were removed from
overlay file for this board, in 'suspend_to_ram' sample.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2024-05-17 15:07:54 +02:00
Alberto Escolar Piedras 19df415f91 samples/posix/env: Change integration platform
There is some instability problems with qemu_riscv32
https://github.com/zephyrproject-rtos/zephyr/issues/72858
which cause this sample test to fail in CI at random.
Let's change the integration platform to a reliable one,
so this test focuses on the sample and does not produce
false test failures due to the platform.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-05-17 15:07:46 +02:00
Johann Fischer 619dd3022d samples: usb: add nrf54h20dk to allowed platforms
nRF54H20DK board is first major user of new UDC DWC2 driver.
Add nRF54H20DK (Application CPU) to allowed platforms in USB device
samples.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-17 14:05:08 +01:00
Johann Fischer 6d06a8cea9 drivers: udc_dwc2: use devicetree to configure endpoint capabilities
Although we can get the number of configured OUT and IN endpoints and
endpoint capabilities from the DWC GHWCFGn registers, we need to
configure the number of endpoint configuration structs at build time. On
some platforms, we cannot access the hardware register at pre-init, so
we use the GHWCFGn values from the devicetree to provide endpoint
capabilities. This can be considered a workaround, and we may change the
upper layer internals to avoid it in the future.

Also, add a new vendor quirk to fill in platform-specific controller
capabilities.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-17 14:05:08 +01:00
Jens Rehhoff Thomsen a2ebe49259 Bluetooth samples: Keep broadcast assistant connected
When Broadcast Sink is connected to Broadcast Assistant then keep
connection when Broadcast Source is removed.

Signed-off-by: Jens Rehhoff Thomsen <jthm@demant.com>
2024-05-17 12:41:04 +02:00
Marcin Niestroj a15cc704e0 samples: net: echo_server: set IPV6_V6ONLY
This sample assumes that two separate sockets can be bound on IPv4 and
IPv6. On Linux (via Native Simulator Offloaded Sockets) this is possible
when there is no IPv4 to IPv6 mapping. Same can be true to other offloaded
sockets.

CONFIG_NET_IPV4_MAPPING_TO_IPV6 is disabled for this sample, so IPv4 to
IPv6 mapping is disabled for Zephyr native IPv6 layer. For offloaded
sockets this option does not define whether mapping is enabled or not, so
try to unconditionally (and without error checking) disable it.

This patch fixes compatibility with NSOS, since two separate sockets can be
bound on the same address and port, one for IPv4 and second for IPv6.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-05-17 11:12:43 +02:00
Chaitanya Tata 29f81872ce samples: drivers: spi_flash: Add nRF54H20DK support
Verified on nRF54H20DK, useful for testing external flash access.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2024-05-17 10:34:31 +02:00
Armin Brauns e7a53cf03b samples: code_relocation_nocopy: add stm32f769i_disco board
This board has memory-mapped QSPI flash.

Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
2024-05-16 15:52:01 +02:00
Henrik Brix Andersen 0f7cd6128e drivers: can: set default initial bitrates via Kconfig
Set the default initial bitrates globally via Kconfig. The initial bitrates
can still be overridden using the "bus-speed" and "bus-speed-data"
devicetree properties.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-05-16 09:23:59 +02:00
Lyle Zhu 4c7b19fa5a samples: Bluetooth: HFP_AG: Initialize version
Add a new example handsfree_ag to demonstrate
usage of the handsfree audio gateway APIs.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2024-05-16 09:15:49 +02:00
Johann Fischer bc183d1278 samples: usb: cdc_acm: set USBD_CDC_ACM_LOG_LEVEL to error
Set USBD_CDC_ACM_LOG_LEVEL to error.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-15 17:29:24 +01:00
Johann Fischer 2c0187ae84 samples: usb: cdc_acm: enable USB support only when device is connected
If the controller can detect VBUS state changes, enable USB support only
when the device is connected and disable it when the device is
disconnected.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-15 17:29:24 +01:00
Johann Fischer 693191467d usb: device_next: add USB device context to message delivery callback
Add USB device context argument to message delivery callback.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-15 17:29:24 +01:00
Zhaoxiang Jin a3bad67696 samples: drivers/adc: Support adc example for NXP frdm_mcxn947
Support adc example for NXP frdm_mcxn947

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2024-05-15 17:28:38 +02:00
Karol Lasończyk 64d79ea45c samples: adc: Add overlay for nRF54L15 PDK
New file with ADC configuration for nRF54L15 PDK.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
2024-05-15 15:33:41 +01:00
Piotr Kosycarz 243f114d51 samples: boards: nrf: nrfx_prs: extend regex to test default task
Verifies that at least SPIM is initialized properly.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2024-05-15 16:07:51 +02:00
Seppo Takalo 01b57b4999 net: lwm2m: Add offset to post-write callback
When Block-Wise transfer restarts, the post-write callback should
receive some indication that the block is actually a beginning of new,
instead of part of previous transfer.

Fixes #71351

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-05-15 14:58:15 +02:00
Sebastian Głąb b3004be0a7 samples: drivers: watchdog: Add overlay files for nrf54l15/cpuflpr
Both nrf54l15pdk/cpuflpr and nrf54l15pdk/cpuflpr_xip have
watchdog on the list of supported periperals.
As a result, Twister tries to build samples/drivers/watchdog
for these two targets.
Since overlays are missing, build is failing.

Add missing overlay files.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-05-15 14:57:48 +02:00
Sebastian Głąb 7b2e20946d samples: drivers: watchdog: Run sample on nrf54h20
Add overlay that enables selected WDT instance on
nrf54h20 Application core.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-05-15 14:57:48 +02:00
Francois Ramu 0289105758 samples: drivers: include the stm32 xspi node for running the samples
The stm32 xspi node is another possible multi-spi for connecting
external NOR flash memories.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-05-15 10:56:04 +02:00
Jukka Rissanen aad76a9416 samples: net: http_server: Add example of passing Content-Type field
Show how to pass Content-Type header field to client.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-14 20:22:58 -04:00
Johann Fischer 859cc2f1fe samples: usb: add HID keyboard sample
Add HID keyboard sample for the new experimental USB device support.
This is a limited and not fully compliant HID keyboard implementation.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-14 18:24:45 -04:00
Johann Fischer fce6b20f61 samples: hid-mouse: add support for the new HID implementation
Add support for the new HID implementation.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-05-14 18:24:45 -04:00
Declan Snyder 595ee908ba samples: dac: Enable RW612 DAC
Enable RW612 RD board for the DAC sample

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-05-14 18:23:22 -04:00
Declan Snyder 14ef7d2d21 tests: adc: Test RW612 ADC
Enable RW612 RD board to test ADC

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-05-14 18:23:22 -04:00
Daniel DeGrasse 33f90e1eab samples: drivers: memc: support PSRAM on RW612 while using XIP mode
RW612 has one FLEXSPI controller, which is capable of supporting
multiple external devices on one board. However, care must be taken when
configuring the FLEXSPI to use multiple devices, as if the FLEXSPI is
configured incorrectly in XIP mode it will fail to read from the
external flash, and the chip will crash.

Make the following changes to the RW configuration for the MEMC sample,
in order to support executing from flash while accessing PSRAM:
- initialize the FLEXSPI MEMC driver first, before the flash or PSRAM
  drivers are initialized
- force the FLEXSPI MEMC driver to reconfigure the FLEXSPI at boot, so
  we can configure the DQS sampling mode for the PSRAM on port B
- only configure the PSRAM pins during FLEXSPI init, so XIP is not
  disrupted
- configure the flash device at boot. This is required so that the MEMC
  driver will not replace the LUTs programmed in the FLEXSPI by the
  bootrom, as it would otherwise not be aware of their existence.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-05-14 18:21:57 -04:00
Johan Hedberg 18c23daee3 Bluetooth: Kconfig: Merge BT_HCI_VS_EXT into BT_HCI_VS
The naming of these two options was problematic, since it's both of them
are about vendor extensions, even though one has _EXT in the name and
the other doesn't. Just merge one option into the other. This has a
slight overhead on the controller side of enabling some more vendor
features if BT_HCI_VS is enabled, but that should hopefully be
acceptable.

Signed-off-by: Johan Hedberg <johan.hedberg@gmail.com>
2024-05-14 18:21:11 -04:00
Dominik Ermel 6c2e661da0 samples/littlefs: Fix rcar boards selecting Flash API
The rcar boards use block variant of LittleFS and Disk Access API,
but have been using proj.conf for Flash API based access.
The commit adds section building boards with pro_blk.conf
into sample.yaml, where rcar boards will now be allowed,
and removes redundant configuration lines from board specific
conf files.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-05-14 16:54:55 +02:00
Sebastian Głąb 3a711143f4 samples: subsys: settings: Run sample on nrf54h20
Add Kconfig file that makes the sample working
on nrf54h20 Application core.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-05-14 15:52:42 +02:00
Sebastian Głąb f84e082f73 samples: sensor: qdec: Run sample on nrf54h20
Add overlay file that enables sample on nrf54h20 Application core.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-05-14 13:25:27 +02:00
Jamie McCrae 92145a22d3 samples: drivers: led_strip: Remove length Kconfig
The chain-length DTS property is now mandatory, so remove the
optional Kconfig for setting the length

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2024-05-14 09:33:58 +02:00
Jamie McCrae 8ca399919b boards: Add chain length and colour mapping to LED strips
Adds chain length and colour mapping properties to LED strip devices
on boards where these parameters are now required

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2024-05-14 09:33:58 +02:00
Jordan Yates 23ca74b756 convert: use k_uptime_seconds
Replace usage of `k_uptime_get() / MSEC_PER_SEC` and
`k_uptime_get() / 1000` with dedicated function.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-05-14 09:32:01 +02:00
Jukka Rissanen fb1ec14938 samples: net: http_server: Close websocket connection properly
Use the websocket_unregister() to close both sockets related
to a connected websocket.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-14 09:31:37 +02:00
Gerard Marull-Paretas 0630c5cfb5 samples: sysbuild: add hello world for multiple board targets
Add a new "hello world" sample that can be built for multiple board
targets. This sample can be used to see if Zephyr boots successfully
with _minimal_ configuration on SoCs with multiple cores, or boards with
multiple SoCs.

The following configurations are provided for now:

- nRF5340 DK: cpuapp+cpunet
- nRF54H20 DK: cpuapp+cpurad, cpuapp+cpuppr, cpuapp+cpuppr(xip)

Note that because of a quoting bug somewhere in the build system,
SB_CONFIG_REMOTE_BOARD is specified in .conf files (see the sysbuild/
directory). This should be fixed in the near future.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-05-13 16:09:01 -04:00
Gerard Marull-Paretas 8120bd7519 samples: move with_mcuboot sample to samples/sysbuild
This creates a new category of samples that demonstrate certain features
of sysbuild. "application development" was a very generic name.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-05-13 16:09:01 -04:00
Henrik Brix Andersen 423f18c4dd samples: modules: canopennode: make sample configurations depend on nvs
Make two of the CANopenNode sample configurations depend on "nvs" instead
of trying to establish a local rule for which boards have the needed
functionality.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-05-13 09:50:37 -05:00
Pieter De Gendt db1a4a61be samples: net: sockets: coap_server: Support CMAKE_LINKER_GENERATOR
Add support for the CMake linker generator.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-05-13 09:46:44 +02:00
Reto Schneider dc4bd6fc75 samples: drivers: crypto: Align error message
'But got:' should be vertically aligned with the message 'Was waiting
for:'.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-05-12 11:01:33 -04:00
Glenn Andrews 69fa94f761 Samples: SMF: Add sample for SMF framework
This PR adds a sample demonstrating the use of the
State Machine Framework (SMF)

Instructions are in the README.rst for the sample.

Miro Samek was contacted and gave approval to use the state
diagram in this demo.

Signed-off-by: Glenn Andrews <glenn.andrews.42@gmail.com>
2024-05-10 18:13:08 -04:00
Robert Lubos 7b55805a3e doc: net: Add HTTP server documentation
Add documentation page for HTTP server functionality.
Rename existing HTTP documentation to HTTP client, as it only covers the
client library.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-05-10 14:43:38 -05:00
Johan Hedberg 28bdcbd3c5 Bluetooth: samples: hci_uart_async: Use existing H4 defines
Use existing H4 defines from hci_types.h instead of redefining them.

Signed-off-by: Johan Hedberg <johan.hedberg@gmail.com>
2024-05-10 14:37:57 -05:00
Vinayak Kariappa Chettimada 2c6306d099 Bluetooth: Controller: BT_CTLR_ISO_TX_BUFFER_SIZE from BT_ISO_TX_MTU
Derive BT_CTLR_ISO_TX_BUFFER_SIZE from BT_ISO_TX_MTU to have
optimal Controller memory allocations.
BT_CTLR_ISO_TX_BUFFER_SIZE can be set lower than
BT_ISO_TX_MTU in which case upper layer can send fragmented
SDU to the Controller.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-05-10 15:02:10 +02:00
Dinesh Kumar K 5e60656aeb samples: sensor: Modified Readme for grow_r502a
Modified readme for grow_r502a sample w.r.t
latest changes on driver like attributes and
LED controlling via zephyr LED subsystem APIs.

Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K 7ae0158e35 drivers: sensor: grow_r502a: add set/read system parameter
Add functionality for read and set system
parameter of sensor device.

Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K 3c8bd0bc2b drivers: sensor: grow_r502a: add built-in LED control
Add LED control attribute for sensor device's
built-in LED using zephyr's led driver APIs.

Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K e57c6f9d2b drivers: sensor: grow_r502a: move enroll, search, delete to application
Removed fps_enroll, fps_search and fps_delete from
driver code, since they did application usage inside
driver. add the following attributes to achieve the
above functionality from application.
1. SENSOR_ATTR_R502A_CAPTURE
2. SENSOR_ATTR_R502A_TEMPLATE_CREATE
3. SENSOR_ATTR_R502A_RECORD_ADD
4. SENSOR_ATTR_R502A_RECORD_LOAD
5. SENSOR_ATTR_R502A_COMPARE

Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Valerio Setti f539b661d6 mbedtls: add specific Kconfig option for MBEDTLS_USE_PSA_CRYPTO
MBEDTLS_PSA_CRYPTO_C and MBEDTLS_USE_PSA_CRYPTO are 2 different
things and the former should not automatically enable the
latter. The reson is that the user might want the MbedTLS
PSA crypto toolbox to be built, but at the same time he/she
does not want TLS/DTLS (and other intermediate modules such
as PK, MD and Cipher) to use PSA APIs.

For this reason this commit introduces a new Kconfig option
named CONFIG_MBEDTLS_USE_PSA_CRYPTO to enable the corresponding
build symbol. By default USE_PSA_CRYPTO is disabled. It is
only explicilty enabled in tests/samples that were previously
setting CRYPTO_C (since in those cases USE_PSA was set).

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-05-09 10:27:30 +02:00
Jukka Rissanen c9aac6efeb samples: net: http_server: Add websocket support
Add code for creating a websocket support to the http_server.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-08 15:02:16 -05:00
Benjamin Cabé b0605b6a7d samples: fix bad SPDX-License-Identifier header
fix typo in SPDX header

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-05-08 09:23:16 -04:00
Nicolas Goualard e7113700b9 boards: Round Display for Xiao
Added the Round Display for Xiao boards as a shield.
Added a xiao_adc node to Xiao board dtsi files.

Signed-off-by: Nicolas Goualard <nicolas.goualard@sfr.fr>
2024-05-07 17:57:23 -04:00
Sylvio Alves 427919ee7e samples: wifi: use soc conf and overlay for espressif boards
Currently wifi sample code contains a pair of .conf and .overlay
for every single esp32-based board. Files are usually identical.
This PR remove all esp32* board files and use common socs instead.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-05-07 15:12:33 -05:00
Daniel DeGrasse ce3c28bae0 samples: drivers: memc: add support for RW612 BGA board
Since the RW612 BGA board's FlexSPI configuration prevents the board
from executing from flash while the PSRAM is configured (unless both are
configured by a bootloader prior to XIP), run the MEMC sample from
internal code SRAM, and write data to the external PSRAM block via the
FlexSPI.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-05-07 15:06:25 -05:00
Rafał Kuźnia b1de9a6c46 samples: drivers: jesd216: add nRF54H20 overlay
Configure the sample for nRF54H20 CPUAPP.

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
2024-05-07 09:52:53 +01:00
Fin Maaß 571ad19b0d mgmt: hawkbit: change the tls certificate tag
Be able to change the tls certicicate tag.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-05-06 22:50:44 +01:00
Jukka Rissanen b26b0e7d10 samples: net: echo-server: Prefer public IPv6 addresses
As a server it makes sense to prefer public IPv6 addresses
so mark the socket so.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-06 22:50:18 +01:00
Jukka Rissanen fb16600689 samples: net: echo-client: Avoid flooding output
Do not print progress report so that makes debugging things
a lot harder. It is still possible to enable printouts if needed
by setting PRINT_PROGRESS symbol.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-06 22:50:18 +01:00
Jukka Rissanen 3046e95d85 samples: net: echo-client: Check IPv6 address deprecation
If the IPv6 address that our socket is bound to deprecates, then
re-create the socket so that we avoid using deprecated IPv6 address.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-06 22:50:18 +01:00
Jukka Rissanen e2792c6509 samples: net: echo-client: Prefer temporary IPv6 addresses
As a client it makes sense to prefer temporary IPv6 addresses
so mark the socket so.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-06 22:50:18 +01:00
Brandon Allen 5e0a21c54c samples: Bluetooth: broadcast_audio_sink: rm nrf52820 from sample.yaml
nrf52833dk/nrf52820 does not compile so remove it from platform_allow list

Signed-off-by: Brandon Allen <bwallen1997@outlook.com>
2024-05-06 14:59:52 +01:00
Tomasz Moń 2f24adbe0f usb: device: Do not claim to be USB 3.2 device
The bcdUSB value 0x0210 defined in USB 3.2 Specification indicates USB
3.2 device operating in one of the USB 2.0 modes. USB 2.0 Link Power
Management Addendum defines bcdUSB value 0x0201 to indicate that USB 2.0
device supports the request to read the BOS Descriptor.

The main difference between bcdUSB 0x0210 and 0x0201 is that the USB 3.2
device must support LPM, while USB 2.0 devices can (but are not required
to) support LPM.

The difference is respected by USB 3 Gen X Command Verifier (2.3.0.0)
Chapter 9 Tests [USB 2 devices], where the test behaves as follows:
  * For bcdUSB 0x0200:
      Checking Device Under Test for LPM L1 Compatibility...
      USB version of device is 2.00.
      DUT is NOT compatible with LPM.
      LPM is NOT required for DUT
      LPM is only supported in USB version 2.01 and above.

  * For bcdUSB 0x0201:
      Checking Device Under Test for LPM L1 Compatibility...
      USB version of device is 2.01.
      DUT IS compatible with LPM.
      LPM is NOT required for DUT
      USB 2.0 Extension Descriptor bmAttributes:
        LPM Capable = 0
        BESL and Alternate HIRD Supported = 0
        Baseline BESL Valid = 0
        Deep BESL Valid = 0
        Baseline BESL: 0d
        Deep BESL:  0d
      LPM is not supported

  * For bcdUSB 0x0210:
      Checking Device Under Test for LPM L1 Compatibility...
      USB version of device is 2.10.
      DUT IS compatible with LPM.
      LPM IS required for DUT
      USB 2.0 Extension Descriptor bmAttributes:
        LPM Capable = 0
        BESL and Alternate HIRD Supported = 0
        Baseline BESL Valid = 0
        Deep BESL Valid = 0
        Baseline BESL: 0d
        Deep BESL:  0d
      (USB: 9.6.2.1.6) Bit 1 in Attributes field of a USB 2.0 Extension
      descriptor returned in response to a GetDescriptor(BOS) request
      must be 1 for LS/FS/HS devices that support LPM L1.

The test fails when LPM bit is not set in USB 2.0 Extension Descriptor
only when bcdUSB is 0x0210. The test failure was incorrectly fixed in
commit 312429be3c ("usb: samples: Add Extension descriptor to webUSB
sample."). Properly fix the issue by changing bcdUSB to 0x0201 and
removing the false LPM support claim.

The false LPM claim was leading to device ceasing to work after some
time if there was no traffic from host to device (when the host is
likely to have executed the LPM L1 transition that was not properly
handled by the device).

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2024-05-06 14:54:23 +01:00
Fabio Baltieri 06236ba883 drivers: ht16k33: convert from kscan to input
Convert the ht16k33 to use the input subsystem. This can still be used
with the kscan API with the zephyr,kscan-input driver, or use the
input-keymap one to generate input codes instead.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-05-06 14:53:36 +01:00
TOKITA Hiroshi eef3e85c09 samples: drivers: display: Fix drawing on non-x8 height VTILED display
VTILED displays with a height other than x8 fail to draw bottom-row
tiles.  This is because it extends beyond the display area.

I fixed the drawing area to be cropped to fit within the display.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-05-06 14:53:27 +01:00
Tomi Fontanilles e141640b82 tests: net: tls: fix failures
Fix the failures introduced in #72078 by manually enabling all the
hash algorithms as they used to be.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-05-06 11:09:49 +02:00
Tomi Fontanilles 55c8a16502 samples: tfm_integration: psa_crypto: improve the MbedTLS configuration
Move supported configuration items from the custom MbedTLS user
configuration file over to the Kconfig overlay.
The correct macros are then defined by the MbedTLS module according
to the values of the Kconfig options.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-05-03 14:47:52 -07:00
Bjarki Arge Andreasen f95fc461d2 samples: drivers: gnss: boards: adjust mimxrt1062 dts overlay
The overlay for the mimxrt1062 boards gnss alias is pointing
to the uart node rather than the gnss node. Adjust gnss alias
and node naming.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-02 22:42:39 +01:00
Fin Maaß 410edaebaa sample: mgmt: hawkbit: sign image by default
Sign the image by default by using the Kconfig options.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-05-02 22:41:27 +01:00
Fin Maaß c78fc290ee samples: mgmt: hawkbit: docs: reflect change in reboot
hawkbit is rebooting automatically after installing a new update,
reflect that change in the docs.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-05-02 22:41:27 +01:00
Jose Alberto Meza 929d0c8bbf samples: drivers: espi: Add support for mec172x board
Add overlay file for mec172x modular card

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2024-05-02 13:56:46 -04:00
Jose Alberto Meza 30eda2058b treewide: drivers: espi: Adjust terms per eSPI specification 1.5
1) Replace master/slave in API for new terms in eSPI spec 1.5
2) Reflect eSPI VW change and macro changes across eSPI drivers
3) Update terms in eSPI driver sample and eSPI test driver

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2024-05-02 13:56:46 -04:00
Andy Ross cef2ac5583 tests/kernel: Bump kobj thread bitmask size for a few tests
A scheduler fix for free memory usage on aborted threads is now using
a per-CPU dummy thread instead of a single stack-based one at startup.
These static thread objects need spots in the kobj bitmasks, and a few
tests are sitting right at the default limit (16 threads).

Signed-off-by: Andy Ross <andyross@google.com>
2024-05-02 13:55:03 -04:00
Alberto Escolar Piedras 320f23ef96 arch posix fuzzing: Move kconfig options to sample
Move the kconfig options used to configure the interrupt
and wait time to the sample which uses them instead of
having them in the architecture code.
This options are very particular for this sample and not
really an API.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-05-02 20:46:03 +03:00
Alberto Escolar Piedras e51ab58f2b samples fuzzer: Update README as it works on native_sim too
Update the readme as the sample works on native_sim,
and native_posix will be deprecated soon.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-05-02 20:46:03 +03:00
Alberto Escolar Piedras f5553004b0 sample fuzzer: Move fuzzer specific code to sample and fix for native_sim
Move the LLVM fuzzing specific code out of the board main
file and into the sample.
That way we avoid needing to duplicate it for native_sim and
avoid having a very adhoc interface between the fuzzer test
and runner code.

Also ensure it works for native_sim and not just native_posix

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-05-02 20:46:03 +03:00
Tomi Fontanilles 8cd04a50e8 samples: tfm_secure_partition: fix build of the ARoT
With the update of MbedTLS to 3.6.0 the configuration files
(mbedtls/mbedtls_config.h, psa/crypto_config.h)
are not found anymore by default.

Make the ARoT's CMake target inherit from psa_crypto_config;
it defines what is needed to find the MbedTLS
configuration files.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-05-02 09:42:34 -07:00
Martin Jäger 9f77f88548 samples: subsys: lorawan: class_a: remove clock sync and multicast
These LoRaWAN services are now covered by the FUOTA sample.

Signed-off-by: Martin Jäger <martin@libre.solar>
2024-05-02 16:54:43 +02:00
Martin Jäger 1479f9d239 samples: subsys: lorawan: fuota: add basic sample application
Add basic sample application that starts the LoRaWAN FUOTA services.

Signed-off-by: Martin Jäger <martin@libre.solar>
2024-05-02 16:54:43 +02:00
Bram Vlerick 00ffad9102 samples: drivers: i2c: add i2c target api sample
Add simple sample which demonstrates how to setup a custom i2c target.

Signed-off-by: Bram Vlerick <bram.vlerick@openpixelsystems.org>
2024-05-01 19:48:31 +01:00
Bram Vlerick c1b4c4fb10 samples: drivers: add i2c eeprom target sample
Add simple sample for the i2c target driver interface using the
i2c-target-eeprom as a target device.

Signed-off-by: Bram Vlerick <bram.vlerick@openpixelsystems.org>
2024-05-01 19:48:31 +01:00
Mykola Kvach 27fa6d9163 samples: littlefs: add support for H3ULCB and Salvator XS M3
Add support of R-Car H3ULCB and Salvator XS M3 boards to
littlefs sample.

Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
2024-05-01 10:55:11 -04:00
Fin Maaß 5176324e2f mgmt: hawkbit: samples: use net config settings
use net config setting and `CONFIG_NET_CONFIG_NEED_IPV4`
to get dhcpv4  address.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-05-01 13:11:15 +02:00
Emil Gydesen 353a05b116 Bluetooth: BAP: Unicast server depend on PACS
When in the BAP unicast server role, at least PAC sink
or PAC source shall be set.

In order to fulfill this new requirement, a few other Kconfig
options had to be changed to a `depends on` from `select` to
avoid recursive Kconfig requirements. This change may require
some applications to update their configurations according
to the migration guide.

The change from `select` to `depends on` is ideal anyhow
as that is the recommended way to add dependencies.

This can checked via the combined BT_PACS Kconfig value.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-04-30 14:30:45 -04:00
Lukasz Mrugala ad210f7579 scripts: twister: Remove harness repeat field
Removed Harness's repeat field.

Added to schemas in e722db14ad,
together with the rest of harness_config.
Added to Harness when it was created.

Now present only in one sample -
mec15xxevb_assy6853 power management sample.

Could not find definitive proof whether it has ever been used.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2024-04-30 18:23:23 +02:00
Raffael Rostagno 1dc2ca873d boards: esp32: SDHC support for esp_wrover_kit
Configuration files to enable SDHC in esp_wrover_kit

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2024-04-30 18:23:06 +02:00
Julien Vermillard 69fa7dc268 boards: esp32xx: m5stickc_plus WiFi sample support
Add an overlay to correctely configure the M5 Stick plus WiFi.

Signed-off-by: Julien Vermillard <julien@vermillard.com>
2024-04-30 15:12:04 +02:00
Francois Ramu 391da6f8f5 boards: arm: stm32f756 with all mpu regions when testing in userspace
Disable the  quadspi mpu region of the nucleo_f756zg (like done on
nucleo_f746zg) when testing the samples/userspace/shared_mem
or tests/kernel/mem_protect/userspace
The stm32f7 cortex M7 has 8 MPU regions and the one for quadspi prevents
the testcase to PASS.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-04-30 15:11:57 +02:00
Jukka Rissanen 660149dbf7 samples: net: http_server: Add HTTP server sample application
A simple HTTP server sample application.

Signed-off-by: Emna Rekik <emna.rekik007@gmail.com>
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-04-30 13:25:22 +02:00
Tomas Galbicka 950382cb17 samples: ipc: static_vrings add NXP boards support
This commit adds support for these NXP Multi-core boards for
IPC static_vrings sample using OpenAmp lib:
 - lpcxpresso55s69
 - mimxrt1160_evk
 - mimxrt1170_evk
 - mimxrt1170_evkb

Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
2024-04-30 08:57:01 +02:00
Peter Mitsis de1855f42d samples: echo_client: Bump kobj thread bitmask size
Bumps the kobj thread bitmask size due to a recent change
in the logic for aborting threads.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-04-29 22:32:00 +01:00
Johan Hedberg d590bcb5e0 Bluetooth: Remove BT_HCI_RESERVE and BT_HCI_RAW_RESERVE
In most cases these were defined as 1. Saving one byte for the rest
doesn't really justify the added complexity that comes with these
options. Removing them also simplifies the interface between HCI
transports/drivers and the host stack, which in turn helps pave the way
for having HCI as a proper Zephyr driver API.

Fixes #71907

Signed-off-by: Johan Hedberg <johan.hedberg@gmail.com>
2024-04-29 11:01:27 +02:00
Alberto Escolar Piedras 2051e3c18e samples shell_module: Avoid setting incompatible options
Currently the USB configuration of this sample is
selecting POSIX_CLOCK and being built by default with
USB_NATIVE_POSIX. This combination is currently not possible
due to mutually exclusive dependencies (the host C library)
which results in a configuration warning and POSIX_CLOCK being
forced to 'n'.
Let's instead disable POSIX_CLOCK in this sample USB config
overlay, until the USB native driver supports building
with embedded C libraries.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-04-26 16:19:39 +02:00
Celina Sophie Kalus 8170663638 samples: ipc: rpmsg_sample: Add build instructions for stm32h747i_disco
Adding build instructions for the newly supported stm32h747i_disco board

Signed-off-by: Celina Sophie Kalus <hello@celinakalus.de>
2024-04-26 16:18:33 +02:00
Celina Sophie Kalus b73eaa1a0e samples: ipc: rpmsg_service: Add support for stm32h747i_disco
With the changes made in pull request #68741, RPMsg service is
supported on stm32h747i_disco using the STM32 HSEM IPM driver. For the
sample to work, add device tree overlays to enable the mailbox and set
the shared memory appropriately.

Signed-off-by: Celina Sophie Kalus <hello@celinakalus.de>
2024-04-26 16:18:33 +02:00
Giancarlo Stasi f3fc534f92 Samples: Bluetooth: Vendor Specific: support for HCI Scan Request
Example of usage of HCI vendor specific Set Scan Request Reports
command, Scan Request Received Event and corresponding callback
to get application events. The sample application shows usage as an
alternative to extended advertisent saving precious RAM.

Signed-off-by: Giancarlo Stasi <giancarlo.stasi.co@gmail.com>
2024-04-26 16:08:08 +02:00
Théo Battrel 8f7df0b49f Bluetooth: Samples: Dev name in AD instead of SD
With the deprecation of `BT_LE_ADV_OPT_USE_NAME` and
`BT_LE_ADV_OPT_FORCE_NAME_IN_AD` samples were updated to not use the
macro adding the device name in the advertising/scan response data
anymore.

Instead the name was explicitly added to the scan response data in
`periodic_adv` sample. But because it was using an extended advertiser
and was already adding data in the AD, the name should have been put in
the advertising data and not the scan response data.

Update the sample to add the device name in the advertising data.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
2024-04-26 09:30:02 +02:00
Dominik Ermel 919baf84d6 samples: fs: fat_fs: RAM disk in SRAM region for nrf52840dk
Add overlay, for nrf52840dk, that reserves RAM in internal
SRAM using the DTS definition.
The sample with such region can be built with the config
file nrf52840dk_nrf52840_ram_disk_region.conf, but, instead
of automatically allocating memory, the Disk driver will
use the pre-defined region provided by the DTS overlay.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-04-25 18:07:16 -04:00
Dominik Ermel d5e321516a samples: fs: fat_fs: Add RAM disk sample for nrf52840dk
Add configuration for nrf52840dk that allows to create RAM
disk; this configuration does not reserve special region
in RAM using DTS but uses automatic buffer allocation, by RAM
Disk Drivers, according to RAM disk specification in DTS.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-04-25 18:07:16 -04:00
Joel Guittet d9e5aa46b6 samples: display: lvgl: add esp32-s3-touch-lcd-1.28 config
Add configuration for the Waveshare ESP32-S3-Touch-LCD-1.28 board.

Signed-off-by: Joel Guittet <joelguittet@gmail.com>
2024-04-25 15:12:35 +02:00
Joel Guittet 277c558e47 samples: drivers: adc: add esp32-s3-touch-lcd-1.28 overlay
Add configuration for the Waveshare ESP32-S3-Touch-LCD-1.28 board.

Signed-off-by: Joel Guittet <joelguittet@gmail.com>
2024-04-25 15:12:35 +02:00
Joakim Andersson 24264ad4af shell: Improve the default serial backend init level
Improve the default serial backend init level.
The documentation says to be bigger than the init level of the serial
device used. Since serial devices default to the kernel device init
level (50) then put this to default of application level drivers (90).

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2024-04-24 19:42:23 +00:00
Hake Huang d16b4ab103 test: mcux_acmp: remove hwv1 overlay which conflicts with hwv2
remove the hwv1 config and use hwv2 only

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2024-04-24 15:05:01 -04:00
Tomi Fontanilles b98769ea41 samples: gnss: improve logging
Report more information and do not use `dev->name` so that what the
sample prints looks less similar to the GNSS dump logs.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-04-24 15:00:10 -04:00
Paulo Santos 6173f71d42 samples: drivers: adc: naming adc sample
The adc sample was in the root directory of the adc samples.
Move all the files to a subdirectory adc_dt.

Signed-off-by: Paulo Santos <pauloroberto.santos@edge.ufal.br>
2024-04-24 09:53:18 +02:00
Paulo Santos 5243a76c31 samples: drivers: adc: add adc sequence sample
Add sequence usage sample for adc driver.

Signed-off-by: Paulo Santos <pauloroberto.santos@edge.ufal.br>
2024-04-24 09:53:18 +02:00
Vinayak Kariappa Chettimada 12dc399c4d tests: bsim: Bluetooth: central_hr peripheral_hr coverage
Add bsim test coverage for central_hr and peripheral_hr
samples.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-04-23 21:29:10 +00:00
Vinayak Kariappa Chettimada 12b39307f3 samples: Bluetooth: Support sysbuild for central_hr and peripheral_hr
Add support for using sysbuild for central_hr and
peripheral_hr samples so that hci_ipc sample is built
for nRF53x SoCs boards.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-04-23 21:29:10 +00:00
Vinayak Kariappa Chettimada b7012f1555 samples: Bluetooth: central_hr extended advertising support
Update central_hr sample to support using extended
advertising and hence be long range compatible on SoCs
that support Bluetooth Low Energy Coded PHY.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-04-23 21:29:10 +00:00
Vinayak Kariappa Chettimada bdf6230236 samples: Bluetooth: Add LED blinking to peripheral_hr
Add LED blinking state to peripheral_hr indicating
advertising state, and LED On state to indicate connected
to a central device, respectively.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-04-23 21:29:10 +00:00
Vinayak Kariappa Chettimada 5acb79f4e4 samples: Bluetooth: peripheral_hr extended advertising support
Update peripheral_hr sample to support using extended
advertising and hence be long range compatible on SoCs
that support Bluetooth Low Energy Coded PHY.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-04-23 21:29:10 +00:00
Sylvio Alves 4a4d7584ff boards: rename and update esp32 related conf and overlay files
There are several esp32-based boards that its conf and overlay
files are missing proper renaming to match cpu cluster.

This also removes all _SOC_ name from files.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-04-23 15:36:13 +02:00
Théo Battrel 7bc63985af Bluetooth: Samples: Remove uses of auto name in AD
The advertiser options to automatically add the name in the scan
response and the advertising data will be deprecated.

Update the samples that were using those options by explicitly adding
the device name in the advertising data or the scan response data.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
2024-04-23 12:42:24 +02:00
Johann Fischer 0cfc15da2e usb: device_next: rename usbd_class_iter to usbd_class_node
For the last dozen commits, the role of usbd_class_node has actually
been taken over by usbd_class_iter. After cleaning up and merging
usbd_class_node and usbd_class_data, we can rename usbd_class_iter to
usbd_class_node to better reflect its role.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-04-22 06:51:22 -07:00
Johann Fischer 2bc55f17ec usb: device_next: rename usbd_class_node to usb_class_data
Since only usbd_class_node contains the class instance data, rename it
to usbd_class_data.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-04-22 06:51:22 -07:00
Tomasz Moń 5144d0f65f usb: device_next: Introduce speed specific configurations
USB High-Speed devices must be able to operate at both High-Speed and
Full-Speed. The USB specification allows the device to have different
configurations depending on connection speed. Modify the API to reflect
USB Specification requirements on what can (e.g. configurations) and
what cannot (e.g. VID, PID) be speed dependent.

While the class configurations for different speeds are completely
independent, the actual class instances are shared between operating
speeds (because only one speed can be active at a time). Classes are
free to provide different number of interfaces and/or endpoints for
different speeds. The endpoints are assigned for all operating speeds
during initialization.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2024-04-22 06:51:22 -07:00
Tomasz Moń f411f801fe usb: device_next: Separate endpoint assignment from class data
Introduce usbd_class_iter for keeping endpoint assignment variables
and the single-linked list node. No functional changes right now, but
this paves the way for independent speed specific configurations.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2024-04-22 06:51:22 -07:00
Tomas Galbicka e6af5f2463 samples: mbox_data: Repair mbox-consumer in dt
This commit repairs mbox-consumer to corectly select rx and tx channel.

Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
2024-04-22 06:49:39 -07:00
Peter Mitsis 30625e4c98 linker: samples: Use Z_LINK_ITERABLE_SUBALIGN
Updates the linker script fragments under 'samples' to use
Z_LINK_ITERABLE_SUBALIGN for the subalignment instead of
a hardcoded value of 4.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-04-20 13:45:25 -04:00
Anas Nashif 132cbdf27a samples: gpio_counter: remove obsolete sample
Board specific sample that only works with certain revisions of the
hardware requiring special BIOS settings.

Fixes #58057

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-04-19 16:41:05 +00:00
Fin Maaß a3092e3c6c samples: mgmt: hawkbit: add testcase
Add sample testcase for settings. that are
set durring runtime.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-04-19 16:39:31 +00:00
Fin Maaß 43e98fe765 samples: mgmt: hawkbit: runtime configuration for server address and port
Add runtime configuration for hawkbit server address and port

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-04-19 16:39:31 +00:00
Manuel Argüelles 5d2670ac1f drivers: pwm: mcux_ftm: allow to select clock source
FTM internal counter can be clocked by one of three clock sources
independent of the module bus clock. This patch introduces a DT property
to perform the clock selection from DT.

DT sources are updated to keep the current clock selection for all boards,
with exception of ucans32k1sic board which is migrated to use system
clock by default, as this seems to be a better choice for most cases.
Some PWM LED samples require slower clock so overlays are added for
those cases.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
2024-04-19 10:08:53 +02:00
Marek Matej ea80a331c0 samples: auxdisplay: Add ESP32 board overlay
Add the overlay for the esp-wrover-kit, to drive a character display
based on HD44780 chipset using the I2C bus gpio controller PCF8574.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2024-04-19 10:07:00 +02:00
Kamil Gawor b2890564e9 boards: nordic: nrf54h20dk: Add configuration for BLE
Add default configuration related to BLE protocol,
for Application and Radio core on nRF54h20 platform.

Signed-off-by: Kamil Gawor <Kamil.Gawor@nordicsemi.no>
2024-04-18 08:49:51 -07:00
Dominik Ermel c6fc912935 samples/subsys/settings: 64bit native_sim/native_posix overlays
Adds missing overlay and conf for native_sim/native/64 and
native_posix/native/64 platforms.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-04-18 08:05:04 -07:00
Alberto Escolar Piedras 1c3edca8d8 samples/subsys/zbus/uart_bridge: Add missing overlays for native_sim
During the hwmv1->v2 transition, overlays from a base
board were made to be shared with the variants.
So at that time all overlays for variants which were
just copies of the base overlay were removed.
After that in
https://github.com/zephyrproject-rtos/zephyr/pull/71149
this shared/merged overlay behaviour was reverted,
but not all tests were fixed.

This is one of those. Let's fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-04-18 12:20:14 +02:00
Alberto Escolar Piedras 434494eecb samples/net socket_echo: Fix pointer type
The last parameter to getsockopt() should be a socklen_t *
not an int *.
Let's fix it to avoid a build warning which breaks this tests
in CI.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-04-18 12:20:14 +02:00
Declan Snyder 537d5c310c dts: nxp: Convert ENET DT default to new binding.
Convert all of the NXP SOCs with ENET to use the new
binding scheme, which is used by the new driver.

Convert any boards using this SOC to the new scheme as well,
and remove from the documentation the bit about the experimental
nature of the new driver and the overlay that shall no longer exist.

Some of the boards I do not have the hardware of, so apologies
if something breaks, as I have no way to know. All the boards
were made sure to at least build.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-04-18 11:18:31 +02:00
Declan Snyder fdbba0341c drivers: nxp_enet: Deprecate ETH_MCUX
Deprecate ETH_MCUX, by:

- Marking it as DEPRECATED in Kconfig, obviously.
- Unmarking the new driver as experimental.
- Putting the new and old drivers in the same folder.
- Reworking the menu appearance of the driver selection.
  Note that technically now it is possible to choose the wrong
  driver than what is enabled in DT, this is intentional, but
  the correct one will obviously be enabled by default.
- Convert all sample overlays to the new Kconfigs. This was
  part of the motivation for the shared overlays, as it was
  causing twister/CI logs to look ugly and misleading due
  to Kconfig warnings.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-04-18 11:18:31 +02:00
Zhaoxiang Jin 4b7e164d56 samples: drivers: adc: Update acquisition time property configuration
Enabled nxp lpadc driver acquisition time feature, the overlay file
can express acquisition time in microseconds, nanosecond and ADC
ticks.

The purpose of updating these overlay files is not only for local
testing, but also to remind users that they can use this feature.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2024-04-18 11:16:45 +02:00
Erwan Gouriou 9d2cbf6217 samples: subsys: fs: stm:32 fix misuse of zephyr,sdmmc-disk compatible
"zephyr,sdmmc-disk" compatible stands for binding with sdmmc subsys which
is not compatible and not used with current STM32 sdmmc driver.
Declaring this compatible is a no op on STM32, so remove it.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-04-18 11:10:36 +02:00
Julien Vermillard ca1705d730 samples: net: sockets: coap_server: fix separate response MID reuse
Fixes #71620 by generating a different CoAP message ID for the
separate response.

Signed-off-by: Julien Vermillard <julien@vermillard.com>
2024-04-18 11:08:24 +02:00
Fin Maaß d0be2010c3 samples: mgmt: hawkbit: add custom attributes
Extend sample for the custom attributes

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-04-17 12:02:07 -07:00
Gerard Marull-Paretas 67a293e35b samples: net: tftp_client: do not allow native_posix
Because CONFIG_POSIX_API (required) cannot be selected on that platform,
resulting in build failures.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-04-17 11:53:22 -07:00
Rubin Gerritsen 46d3bf11c9 samples: bluetooth: Increase sync timeout to allow packet loss
The periodic advertiser samples use a periodic advertising interval
in the range of 1 to 1.2 seconds.

Previously the sync timeout of 1.7 seconds would cause the sync to be
lost after failing to receive a single periodic advertising packet.
This change therefore aims to improve the user experience.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2024-04-17 14:34:23 +02:00
Jukka Rissanen 03c5c0f818 samples: net: Disable native_posix target in more samples
The native_posix compilations fail with various socket
errors like this:

samples/net/sockets/can/src/main.c:65:9: error: implicit \
     declaration of function ‘send’ [-Werror=implicit-function-declaration]
     65 |   ret = send(fd, &sframe, sizeof(sframe), 0);
        |         ^~~~

So disable the native_posix board from networking samples as
native_posix board is not compatible with CONFIG_POSIX_API

This is related to commit b8fc1c4c3e ("samples: net: Disable
native_posix target in samples") but disables more network samples
for native_posix board.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-04-17 14:28:08 +02:00
Ayush Singh 71437f71df samples: net: sockets: echo_client: Enable subg tcp
- TCP should not be disbled by default for subg in this particular
  sample since it is mostly used to test network rather than
  performance.

Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2024-04-12 15:03:57 +02:00
Ayush Singh e9963be3af samples: net: sockets: echo_server: Enable subg tcp
- TCP should not be disbled by default for subg in this particular
  sample since it is mostly used to test network rather than
  performance.

Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2024-04-12 15:03:57 +02:00
Guillaume Gautier 97177ba01a samples: boards: stm32: pm: s2ram: add spi
Add SPI transfer in the suspend to ram samples to test SPI PM.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2024-04-12 13:49:04 +02:00
Vinayak Kariappa Chettimada cd58325b2a samples: Bluetooth: hci_ipc comment about NRF_DEFAULT_IRQ_PRIORITY
Update comment about use of NRF_DEFAULT_IRQ_PRIORITY in
hci_ipc sample for Nordic nRF53x series.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-04-12 13:48:57 +02:00
Vinayak Kariappa Chettimada 7ece6aed16 Bluetooth: Controller: Fix regression in BT_RX_STACK_SIZE use
Fix regression in BT_RX_STACK_SIZE use due to
commit b91728619c ("Bluetooth: host: remove
`CONFIG_BT_RECV_BLOCKING`").

Profiling of Controller Rx thread has been mentioned in
commit 586ba9fd13 ("Bluetooth: Controller: Increase
BT_RX_STACK_SIZE for BT_HCI_RAW enabled").

Also, move the TX_STACK_SIZE value as default in Kconfig
from the explicit value being set in hci_ipc sample.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-04-12 13:48:57 +02:00
Ayush Singh f50a2e58b3 samples: net: zperf: Add subg overlay
- Tested on beagleconnect_freedom

Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2024-04-12 11:54:55 +02:00
Jędrzej Ciupis 2b23a52642 boards: nrf53: switch to the network CPU management API
Switch to the network CPU management API from direct nrfx calls.

Signed-off-by: Jędrzej Ciupis <jedrzej.ciupis@nordicsemi.no>
2024-04-12 11:31:47 +02:00
Joakim Andersson eb133834ca samples: nrfx_prs: Workaround for uninit not clearing events
Add workaround for uninit functions not clearing events for
spim and uarte.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2024-04-12 09:18:35 +02:00
Joakim Andersson d97c780fb0 samples: nrfx_prs: Add handling of SCK initial value based on mode
Add handling of SCK initial value based on the SPI mode used.
If mode is using CPOL then SCK needs to be set.

Fixes: #71154

Signed-off-by: Joakim Andersson <joakim.andersson@heimdallpower.com>
2024-04-12 09:18:35 +02:00
Joakim Andersson e9cf74b581 samples: nrfx_prs: Fix sample frequency
Fix setting of sample frequency.
The nrfx drivers are now using raw integere values instead of nrf
definitions.

Fixes: #71154

Signed-off-by: Joakim Andersson <joakim.andersson@heimdallpower.com>
2024-04-12 09:18:35 +02:00
Jonathan Rico e3ff993000 Network: L2: remove IPSP
Remove IPSP support from the tree.

It has no maintainers, and is regularly broken. The fact that it's
nontrivial to set-up in linux makes it hard to fix reported issues.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2024-04-11 12:48:50 +02:00
Francois Ramu 503a3d78d2 samples: subsys: nvs fix hard fault when running on stm32 targets
on stm32f091 and stm32g071 nucleo boards
This avoids HARD Fault when reaching the last reboot
Disable the external flash memory of the b_u585i_iot02 target
to end the test properly

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-04-11 09:08:52 +02:00
Sebastian Głąb 0fdfcad675 samples: sensor: qdec: Move console regex to each test
It seems that harness_config defined in the 'common' section
is discarded when test adds fixture to it's harness_config.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-04-10 15:55:49 +02:00
Sebastian Głąb ad33d007ea samples: sensor: qdec: Add nRF54L15 to platform allow
Add nRF54L15 to platform_allow and integration_platforms
in the sample.yaml.
Overlay file for that target already exists in the boards
directory.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-04-10 15:55:49 +02:00
Piotr Kosycarz 884e661cc9 samples: sensor: isl29035: Align sample definition
Add fixutre as external hw is required.
Add regex.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2024-04-10 15:55:40 +02:00
Francois Ramu 325ae4d32a samples: drivers: spi flash testcase check the erased data
After erasing the sector, compare dat read with expected 0xFF pattern
to decide if erasing is successful instead of relying on the
returned code of the flash_erase function

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-04-10 08:00:53 -04:00
Piotr Kosycarz 8d4743d144 samples: sensor: qdec: Allow coverage calculation
Sample must end to dump coverage data.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2024-04-10 07:42:01 -04:00
Jamie McCrae 9c05618c2b tests: Fix missed renames
Fixes some missed renames for overlays with the recent change

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-04-10 11:50:29 +02:00
Dominik Ermel 5a0ecb9641 flash: Move dependency on FLASH_PAGE_LAYOUT where it belongs
The commit adds dependency on Kconfig FLASH_PAGE_LAYOUT to subsystems
that really require it:
 FCB, NVS, LittleFS
and removes direct selection from '*.conf' files where no longer
needed.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-04-10 10:01:40 +02:00
Yong Cong Sin b41db52ffe samples: subsys: mgmt: hawkbit: test more configurations
Exercise each and every hawkBit's Kconfig switches.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-04-10 10:01:33 +02:00
Sebastian Głąb f8ddeed85c samples: subsys: settings: Add configuration for nRF54L15
Add configuration needed to run the sample on
nrf54l15pdk/nrf54l15/cpuapp.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-04-10 10:01:17 +02:00
Torsten Rasmussen b9f3d68863 samples: tests: additional overlay and conf file adjustments
Adjustments of overlay and conf files to adjust for the MERGE removal.

The revert of MERGE requires specific overlay and conf files for boards
which relied on the MERGE feature.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-04-09 23:35:54 +02:00
Torsten Rasmussen abca917055 boards: board dts and defconfig file adjustments
Adjustments of dts and defconfig files to adjust for the MERGE removal.

The revert of MERGE requires specific dts and defconfig files for boards
which relied on the MERGE feature.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-04-09 23:35:54 +02:00
Jamie McCrae 79fe21c48c Revert "sample: basic: blinky_pwm: Exclude rpi_pico w variant"
This reverts commit c47c37d3db876f168f33bb3fa8c28ef8976093b6.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-04-09 23:35:54 +02:00
Jamie McCrae 5308c4f2f1 Revert "samples: blinky_pwm: enable pwm_leds in rpi_pico overlay"
This reverts commit 7277cae6fa7c3d0ad567b4f1ef9007dc12e44314.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-04-09 23:35:54 +02:00
Jamie McCrae 96b6c0c015 Revert "boards: Raspberry Pi pico pwm led adjustment"
This reverts commit 037a3b52a49a8e26ac3ee4bdac46c72d76bc7399.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-04-09 23:35:54 +02:00
Ping Wang f1d174e0d3 Bluetooth: Audio: broadcast assistant sync to PA
broadcast_audio_assistant application sync to PA and obtain the correct
subgroup information used by BASS.

Signed-off-by: Ping Wang <pinw@demant.com>
2024-04-08 09:17:33 -04:00
Adam Berlinger e8b898f450 boards: st: add support for LPTIMER for nucleo_h563zi board
LPTIM4 is selected, since it is used only for internal timing
and it doesn't support output/input

Signed-off-by: Adam Berlinger <adam.berlinger@st.com>
2024-04-08 15:55:24 +03:00
Torsten Rasmussen 4879681b7e cmake: remove stray overlay file from target sources
An overlay file was wrongly added to a target_sources call, this has
now been corrected.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-04-05 21:54:12 -05:00
Fin Maaß a9afee1d12 samples: use appropriate sys_randX_get()
use the appropriate sys_randX_get() instead
of always sys_rand32_get().

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-04-05 10:57:45 -05:00
Sylvio Alves 2bc8c77b4e samples: esp32: update to hal_espressif v5.1
Modify and reorganize SoC to meet updated hal.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-04-05 13:39:53 +02:00
Sylvio Alves 5cd077029e samples: board: esp32: rename board config to meet proper cpu cluster
This sample conf and overlay file regarding esp_wrover_kit should
be used only for procpu.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-04-04 13:14:27 -05:00
Jukka Rissanen 4ae75194aa samples: net: capture: Add a way to capture some cooked data
For demonstration purposes add a way to capture some arbitrary
data and send it in cooked mode for analysis.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-04-04 17:02:11 +02:00
Jukka Rissanen 76290b052f samples: net: echo-server: Make sure to attach to correct tunnel
If there are multiple tunnels, then use the tunnel device name
to select the correct one. Note that this tunnel is only used
for network packet capture in this sample application.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-04-04 17:02:11 +02:00
Jukka Rissanen 33c075d705 samples: net: net_mgmt: Fix build failure on multiple boards
The CONFIG_MAX_THREAD_BYTES=3 needs to be set for multiple
boards like mr_canhubk3 and xiao_ble when running in usermode.

Too many thread objects (18)
Increase CONFIG_MAX_THREAD_BYTES to 3

Fixes #70955

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-04-04 17:02:04 +02:00
Jukka Rissanen b8fc1c4c3e samples: net: Disable native_posix target in samples
The native_posix compilations fail with various socket
errors like this:

samples/net/sockets/echo_server/src/udp.c:45:26: error: implicit \
 declaration of function ‘socket’ [-Werror=implicit-function-declaration]
 45 |         data->udp.sock = socket(bind_addr->sa_family, SOCK_DGRAM,
    |                                 IPPROTO_UDP);

Disable the native_posix board from networking samples so that CI can pass.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-04-04 17:02:04 +02:00
Yong Cong Sin 80b3f15a03 samples: mgmt: hawkbit: make references to "frdm_k64f" consistent
The "frdm_k64f" is referred as frdm_k64f and ``frdm_k64f`` in
places, update them to ":ref:`Freedom-K64F <frdm_k64f>`" or
``frdm_k64f``.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-04-04 09:46:22 +01:00
Yong Cong Sin 10592b9df4 subsys/mgmt/hawkbit: change 'Hawkbit' & 'hawkbit' to 'hawkBit'
Change 'Hawkbit' and 'hawkbit' to 'hawkBit' wherever
makes sense, and a bit of touch ups here and there.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-04-04 09:46:22 +01:00
Krzysztof Chruściński 42ded807aa samples: logging: logger: Add harness to the BT configuration
Add harness as twister by default looks into ztest results and
in bluetooth configuration they won't be find.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-04-04 10:12:52 +02:00
Emil Gydesen 4844dabf3a Samples: Bluetooth: Add encrypted broadcast audio source
Add support for supplying a broadcast code to the
broadcast audio sample, which will, if non-empty, encrypt
the broadcast.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-04-03 22:30:57 +01:00
Carles Cufi 29aaaa2e60 samples: shell: shell_module: Add harness to the Bluetooth config
Add a harness to avoid twister waiting for results on the UART, which
won't happen unless there is a connection established to a remote
Bluetooth device.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-04-03 15:32:18 -04:00
Daniel Baluta 68a7057513 soc: nxp: imxrt: Prepare imxrt6xx soc for AMP support
imxrt6xx are dual core devices featuring an ARM Cortex-M33
core and an Cadence Xtensa HIFI4 Audio DSP.

Currently only m33 core is supported. In order to support
the Cadence DSP we need first to do some code-reorganization
for m33.

We start by moving all cm33 related code to its own directory
and introduce the cpuclusters property in soc.yml file.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2024-04-03 15:41:16 +01:00
Piotr Pryga 73bdf622f1 samples: bluetooth: hci_ipc: Add nrf54h20 DK board overlay
There are required DTS entries to nable peripherals required
for IPC communication between Radio and APP CPUs.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2024-04-03 10:27:02 +03:00
Erik Andersson 7282508f65 samples: ci: add st_b_lcd40_dsi1_mb1166_a09 shield
Add tests for shield st_b_lcd40_dsi1_mb1166_a09 in:
samples/drivers/display
samples/modules/lvgl/demos
samples/subsys/display/lvgl

Signed-off-by: Erik Andersson <erian747@gmail.com>
2024-04-02 21:03:10 -04:00
Pieter De Gendt a221b44d9c samples: subsys: mgmt: mcumgr: smp_svr: Remove POSIX_API config
The POSIX_API config should not be required to build the UDP mcumgr
transport.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-04-02 14:31:23 +01:00
Charles Dias 14015db4ab boards: arm: Add support for WeAct Studio MiniSTM32H743 Core board
Adds the device trees, Kconfig, and documentation files.

The following features have been confirmed working on hardware:
* LED
* Button
* ST7735 TFT-LCD
* External QuadSPI NOR Flash memory
* External SPI NOR Flash memory
* USB CDC ACM
* microSD card

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2024-04-02 14:30:04 +01:00
Luis Ubieda 92e0d0bbfc bluetooth: nus: Change Kconfigs prefix to BT_ZEPHYR_NUS
To prevent future conflicts with NCS's NUS implementation, whose
Kconfig's are prefixed with BT_NUS.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-04-02 10:36:01 +03:00
TOKITA Hiroshi 49be50c8dd samples: drivers: led_strip: Correcting document title to 'LED strip'
Other samples do not include 'sample' in the page title,
so following that.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-04-01 21:43:00 +01:00
Maureen Helm 3f218c6cda samples: sensor: Relax twister constraints on thermometer sample
The thermometer sensor sample application can support any board that
defines the `ambient-temp0` devicetree alias, but the restrictive
`platform_allow` list prevented twister from running on all but two
selected boards. Use a more flexible `dt_alias_exists` filter instead to
allow running this sample on additional boards.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-01 18:21:09 +01:00
Jukka Rissanen a8135bbdd5 samples: net: vlan: Support all three network interfaces
The VLAN sample application only had configuration support for
the Ethernet interface and one VLAN interface, and left the one
VLAN interface unconfigured. Fix this by adding config support for
all three network interfaces created by the sample.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-04-01 12:09:53 -05:00
Andrew Davis 0714052c74 samples: ipc: openamp_rsc_table: Remove virtual shared memory device
A virtual metal_device is created and then the needed IO regions created
and added to this device. Immediately we extract these regions back out
and make use of them. There is no reason to do this, instead simply
use the created IO regions.

This also removes the need to have struct metal_device defined to have
more than one IO region (METAL_MAX_DEVICE_REGIONS), which is not default.
If the libmetal library was built with a different value, then updating
this header would not fix the underlying implementation leading to runtime
failures.

Signed-off-by: Andrew Davis <afd@ti.com>
2024-03-29 17:21:20 -05:00
Andrew Davis 993f97801d samples: ipc: openamp_rsc_table: Do not create null shared memory pool
We are always the remote client in this example. The shared pool is only
used for allocating ring descriptors when we are the host. Do not create
a shared pool with a NULL base address, simply do no pass in a pool.

Signed-off-by: Andrew Davis <afd@ti.com>
2024-03-29 17:21:20 -05:00
Andrew Davis 21275868ee samples: ipc: openamp_rsc_table: Normalize printed output
Currently a mix of printk() and LOG_*() are used, switch to using
the LOG functions in all cases. The code also has mixed line-ending
types, as the LOG functions add newlines remove these.

Also some messages that are failures are printed with debug log level,
use ERR level here.

Signed-off-by: Andrew Davis <afd@ti.com>
2024-03-29 17:21:20 -05:00
Andrew Davis 27cb75edb8 samples: ipc: openamp_rsc_table: Check for endpoint create failure
Check if creating the RPMSG endpoint fails and exit the task if so.
This prevents a later null pointer dereference if we try to continue.

Signed-off-by: Andrew Davis <afd@ti.com>
2024-03-29 17:21:20 -05:00
Ryan Chu 2759a35a18 Samples: Bluetooth: Fix PAwR sample failed to set subevent data
Be respectful of PAwR subevents while scheduling scan activities.
The radio will be swtiched from scan to PAwR when it is closed to
the next subevent interval.

Signed-off-by: Ryan Chu <ryan.chu@nordicsemi.no>
2024-03-29 15:59:09 -05:00
Zak Portnoy 5cbc16ac2c boards: Update Xiao_BLE Sense DTS for pdm microphone
Create regulator on GPIO for microphone supply
Set pdm data and clk pins in pinctrl
Add xiao_ble_sense overlay for dmic sample support

Signed-off-by: Zak Portnoy <zakportnoy@gmail.com>
2024-03-28 16:00:12 -05:00
Daniel DeGrasse d5eb328544 boards: nxp: rd_rw612_bga: enable DMIC
Enable DMIC on RW612 BGA board. The DMIC is enabled for both onboard
MEMS microphones for this board, and the board is enabled with the DMIC
sample and test

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-28 09:44:25 +00:00
Zhaoxiang Jin bd9cad3a59 samples: drivers: dac: support frdm_mcxn947 dac example
add support frdm_mcxn947 dac example

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2024-03-28 09:42:38 +00:00
Jukka Rissanen def4a7ec12 net: gptp: Remove VLAN support
The gPTP is not suppose to be run on top of VLAN and the
earlier support was just for testing purposes. Remove VLAN
support now after the VLAN overhaul.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-28 09:41:38 +00:00
Jukka Rissanen d47386110b samples: net: lldp: Fix the VLAN support
The lldp sample VLAN code needed updating so that correct
interfaces are in use.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-28 09:41:38 +00:00
Jukka Rissanen 793cd56678 samples: net: mdns_responder: Fix the VLAN support
The mdns-responder VLAN code needed updating so that correct
interfaces are in use.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-28 09:41:38 +00:00
Jukka Rissanen b1e31f9f7f samples: net: txtime: Fix the VLAN support
The txtime VLAN code needed updating so that correct
interfaces are in use.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-28 09:41:38 +00:00
Jukka Rissanen 9fcf1a4c37 samples: net: echo-client: Fix the VLAN support
The echo-client VLAN code needed updating so that correct
interfaces are in use.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-28 09:41:38 +00:00
Jukka Rissanen b5eec907d1 samples: net: vlan: Use proper VLAN interface
The VLAN interfaces are now Virtual type so we need to
collect only the Virtual interfaces and not Ethernet ones.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-28 09:41:38 +00:00
Jukka Rissanen 55cbe530df samples: net: echo_server: Rework the VLAN support
Rework the code to support VLAN properly.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-28 09:41:38 +00:00
Chris Friedt bec115fbcf samples: thrift: add dependencies for c11 threads
The thrift hello/client sample did not have the required
kconfig options for some reason.

Adding these seemed to fix the issue.

CONFIG_COMMON_LIBC_THRD=y
CONFIG_DYNAMIC_THREAD=y
CONFIG_THREAD_STACK_INFO=y

Signed-off-by: Chris Friedt <chrisfriedt@gmail.com>
2024-03-28 10:57:38 +09:00
Jukka Rissanen a613e2427a samples: net: Disable native_sim net USB driver in samples
The native_sim USB driver gives this error currently if one
enables CONFIG_POSIX_API.

drivers/usb/device/usb_dc_native_posix_adapt.c:22:10: \
 fatal error: sys/un.h: No such file or directory
   22 | #include <sys/un.h>
      |          ^~~~~~~~~~
compilation terminated.

Disable the netusb support from networking shells for native_sim
board for now so that CI can pass.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-27 13:40:13 -05:00
Jukka Rissanen d7c9d67a9c net: Use always zephyr/posix/fcntl.h
Changing remaining users of fcntl.h to use the include from our own
POSIX file so that the values in there are consistent in all parts
of the sources.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-27 13:40:13 -05:00
Jukka Rissanen c0fcd8c9b5 samples: net: sockets: can: Fix the test termination criteria
If enabling CONFIG_POSIX_API, we get three file descriptors open
before any socket descriptors. The sample exit criteria checks
socket 0 and 1 which is no longer a valid one, so change the
check to be either 0 or 3, and 1 or 4 so that the test can be
run in both when POSIX API is enabled or disabled.

Also disable color printing for the test run so that it is
easier to read the output log.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-27 13:40:13 -05:00
Jukka Rissanen c4216dd65c samples: net: echo-server: Adjust CONFIG_MAX_THREAD_BYTES
This fixes this error printed by CI:

Too many thread objects (21)
Increase CONFIG_MAX_THREAD_BYTES to 3

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-27 13:40:13 -05:00
Jukka Rissanen 5c3fa85bc8 samples: net: Change to use CONFIG_POSIX_API
Change the sample applications that use network socket API to
use the POSIX_API config because the NET_SOCKETS_POSIX_NAMES is
deprecated. Convert also the zsock_ API calls to plain BSD
socket API calls when applicable.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-27 13:40:13 -05:00
Daniel Schultz f02170bd9f samples: driver: memc: Fix print argument
The sample wants to print the memory controller base address. However,
MEMC_BASE is used as argument in printf which is defined as long long
int. Use the memc pointer instead to print the base address.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2024-03-26 10:48:18 -04:00
Daniel Schultz 21411f4678 samples: drivers: memc: Fix README
The output example has not the correct indentation for the code-block
directive and therefore adds this output as normal text.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2024-03-26 10:48:18 -04:00
Daniel Schultz 0329aab044 samples: drivers: memc: Make sample more verbose
During a memory mismatch, the sample only prints an error message.
Also print the read and write buffer to see the actual difference.

Moreover, add a print for each compare step to see the sample is still
running.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2024-03-26 10:48:18 -04:00
Daniel Schultz d4965bf6c8 samples: drivers: memc: Add missing include
Add string.h because memcpy requires this include file.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2024-03-26 10:48:18 -04:00
Sylvio Alves ac8bc6f17f samples: boards: esp32: add and update sample.yaml files
Adds missing sample.yaml file.
Update some sample.yaml to include build_only
Update some sample.yaml for device testing.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-03-26 09:38:43 +00:00
Tomi Fontanilles 8ca15cedc2 samples: net: cellular_modem: increase the post-restart sleep time
A higher delay helps in getting the first post-restart echo
packet to be successful.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-03-26 09:29:55 +00:00
Mayank Mahajan 3d81167eaf ADD: GNSS Driver for U-BLOX M10 & Support for UBX Messages
MODEM_UBX: Adds Support for UBX Messages in Modem Subsystem.

GNSS API Supported: get_supported_systems, set_fix_rate, get_fix_rate,
	set_enabled_systems, get_enabled_systems, set_navigation_mode,
	get_navigation_mode.

Boards Tested: MIMXRT1062_FMURT6, VMU_RT1170.

Note: Partial support for U-BLOX Messages is provided as of now.

Signed-off-by: Sumit Batra <sumit.batra@nxp.com>
Signed-off-by: Mayank Mahajan <mayankmahajan.x@nxp.com>
2024-03-26 09:28:36 +00:00
Armando Visconti b929cf94e7 sample: board: sensortile_box_pro: add stts22h sensor support
Extend sensor sample reading also stts22h temperature data.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2024-03-25 18:40:54 -04:00
Sylvio Alves 93d005fc87 samples: hwmv2: rename espxx_luatos_core files
This board has variant model "usb" and is currently missing
hwmv2 changes.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-03-25 18:40:34 -04:00
Alberto Escolar Piedras feecb751b2 samples/bluetooth/unicast_audio_server: Fix nrf5340bsim board name
The nrf5340bsim_nrf5340_cpuapp hwmv1 board name
was replaced with nrf5340bsim/nrf5340/cpuapp in hwmv2.
Let's fix it

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-25 18:38:47 -04:00
Aleksandr Khromykh c97a8131c1 Samples: Bluetooth: HCI: add missed callback pointer
USB initialization function mandates pointer to
callback. Seems this pointer was missed in hci_usb sample.
Commit fixes this.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2024-03-25 15:12:23 +01:00
Daniel Leung 3664ed64c3 arch: move arch_interface.h under zephyr/arch
arch_interface.h is for architecture and should not be
under sys/. So move it under include/zephyr/arch/.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-03-25 09:58:35 +00:00
Marcin Niestroj 81574fd1df samples: net: echo_server: add config for native_sim offloaded sockets
Add configuration for Native Simulator offloaded sockets.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-03-22 14:39:27 +01:00
Marcin Niestroj 9359903bd6 samples: net: echo_server: add native_sim to allowed platforms
'native_sim' builds without any issues as part of twister and it also works
when manually setting up Ethernet virtual device (using
tools/net-tools/net-setup.sh).

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-03-22 14:39:27 +01:00
Marcin Niestroj 5c4b587f07 samples: http_get: add tests with Native Simulator offloaded sockets
'http_get' is one of the few samples that just require connection to
internet (google.com over HTTP or HTTPS) and check if HTTP GET was
successful. Use it for minimal coverage of Native Simulator offloaded
sockets:

 * DNS resolving
 * basic TCP transfer
 * compatibility with Zephyr TLS subsystem (which required some fcntl()
   operations)

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-03-22 14:39:27 +01:00
Grzegorz Swiderski 073240fa68 samples: drivers: mbox: Use FILE_SUFFIX
Simplify this sample's recently updated configuration, and ensure that
the file suffix feature works in sysbuild.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-03-22 12:41:32 +00:00
Luis Ubieda f67dc14a64 samples: shell: Add support for UART over Bluetooth LE NUS
Tested and working with nrf52840dk/nrf52840.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-03-22 10:25:37 +01:00
Luis Ubieda 1347a7e820 samples: logging: Add support for UART over Bluetooth LE NUS
Tested and working with nrf52840dk/nrf52840.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-03-22 10:25:37 +01:00
Luis Ubieda d834ec875e samples: bluetooth: nus: Add Peripheral NUS sample
Demonstrating basic usage of NUS to exchange data.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-03-22 10:25:37 +01:00
Herman Berget 976da5da5c samples: hci_uart_async: Dont try to receive 0 bytes
It is not necessary and it ends up in an nrfx assert.

Signed-off-by: Herman Berget <herman.berget@nordicsemi.no>
2024-03-22 10:24:38 +01:00
Erwan Gouriou 0014ec9f33 boards: st: tfm: Update board documentation
regression.sh path is now tfm/api_ns/regression.sh, reflect it in the
doc.
Remove duplicate TF-M material.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-22 09:23:30 +00:00
Erwan Gouriou c7e084e75b boards: st: nucleo_l552ze_q: Populate ns flash partitions
Rather than providing flash partitions in samples, provide default
partition (no tests) as part of the board ns variant default configuration.

Update or remove related overlays.

Update ns variant yaml file to specify actual flash available for the
ns application (36K).

Additionaly, fix comment in b_u585i_iot02a_ns.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-22 09:23:30 +00:00
Johann Fischer ae08fe99ae samples: cdc_acm: use USB notification messages to detect DTR
Use USB notification messages to detect DTR and baudrate updates.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-03-22 10:10:42 +01:00
Johann Fischer 77e0a9ef20 samples: usb: add message callback registration to the common code
This allows samples to receive earlier notification immediately after
initialization.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-03-22 10:10:42 +01:00
Jamie McCrae 931d286b57 samples: shields: x_nucleo_iks01a3: Fix deprecated config fragment
Fixes uses an old deprecated way of setting a Kconfig fragment
file for this sample

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-22 10:06:04 +01:00
Jamie McCrae f70aa925d7 samples: logging: multidomain: Fix usage of board name checking
Fixes using outdated hwmv1 board name checking with proper board
defines

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-22 10:06:04 +01:00
Jamie McCrae d9932718a7 samples: ipc: ipc_service: Fix usage of board name checking
Fixes using outdated hwmv1 board name checking with proper board
defines

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-22 10:06:04 +01:00
Jamie McCrae 6090821f93 samples: boards: nrf: nrf53_sync_rtc: Fix usage of board name check
Fixes using outdated hwmv1 board name checking with proper board
defines

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-22 10:06:04 +01:00
Jamie McCrae e6a873a971 samples: bluetooth: mesh: Fix usage of board name checking
Fixes using outdated hwmv1 board name checking with proper board
defines

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-22 10:06:04 +01:00
Jamie McCrae 3684b37524 samples: drivers: mbox_data: Fix usage of board name checking
Fixes using outdated hwmv1 board name checking with proper board
defines

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-22 10:06:04 +01:00