Commit Graph

110966 Commits

Author SHA1 Message Date
Jamie McCrae
05b6997491 soc: amd: acp_6_0: Fix bleeding Kconfig
Fixes a wrongly defined Kconfig

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-02-28 14:52:13 +01:00
Måns Ansgariusson
762861defd doc: Add k_pipe deprecation notice to 4.1 release notes
Add a notice to the 4.1 release notes that CONFIG_PIPES k_pipe
implementation is deprecated from 4.1.

Signed-off-by: Måns Ansgariusson <Mansgariusson@gmail.com>
2025-02-28 14:52:03 +01:00
Johann Fischer
9cb0fbf80d usb: device_next: fix Get Status request response
We need to track the self-powered status of the device independently of
the D6 bit in the bmAttributes value of the configuration descriptor
because the Get Status request about the self-powered status is valid in
address state and we support multiple configurations.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-28 14:51:53 +01:00
Måns Ansgariusson
467e15ddd3 drivers: rtc: rx8130ce: day alarm fix
The day alarm was not being set correctly. The day alarm should be set
using the WADA bit in the control register. This patch fixes the issue
by setting the WADA bit in the control register when setting the day alarm.

Signed-off-by: Måns Ansgariusson <Mansgariusson@gmail.com>
2025-02-28 14:51:43 +01:00
Benjamin Cabé
95c1c850bc doc: extensions: Add line reference support to zephyr_file/zephyr_module
Enhance the zephyr_file link role to support referencing specific lines
or line ranges in files.
This change allows users to link to exact locations within a file
using GitHub-style line references.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 10:10:47 +01:00
Kyra Lengfeld
6464ffa3f9 Bluetooth: Host: Fix deadlock when failing to alloc on BT RX thread
This commit alignes the timeout value for allocating buffers within att
on the BT RX thread, making it consistent within att.c, see
bt_att_req_alloc.

We are inferring in many bt_gatt_* functions that if called from a BT RX
thread (which is inherently the case if called from a callback when
running a Bluetooth application), we don't block and instead return
-ENOMEM when the ATT request queue is full, avoiding a deadlock.
This promise is fulfilled within bt_att_req_alloc, where the timeout for
allocation of the request slab is set to K_NO_WAIT if we are on the BT
RX thread. Unfortunately, we break this promise in
bt_att_chan_create_pdu, where the timeout for allocation of the att pool
is still K_FOREVER and deadlocks can (and do) occur when too many
requests are sent yet the pool is depleted.

Note: Both req_slab and att_pool sizes are defined by
CONFIG_BT_ATT_TX_COUNT. If applications start getting -ENOMEM with this
change, they were at risk of such a deadlock, and may increase
CONFIG_BT_ATT_TX_COUNT to allocate the att pool for their requests.

Note: This possible deadlock has been flying under the radar, as
att_pools are freed when the HCI driver has sent it to the controller
(instead of when receiving the response, as it happens with req_slabs)
and due to the att_pool and the req_slab being both sized by
CONFIG_BT_ATT_TX_COUNT, and req_slab being allocated before and
returning -ENOMEM already if there is no space, it takes a more specific
situation to deplete the att_pool but not the req_slab pool at this
point.

Note: Ideally, we don't want functions to behave differently depending
on which thread they are running, and while this commit makes it more
consistent, it should be considered a workaround solution.

Signed-off-by: Kyra Lengfeld <kyra.lengfeld@nordicsemi.no>
2025-02-28 10:10:01 +01:00
Emil Gydesen
210adaf399 drivers: Bluetooth: ipc: Add additional logging info
Add logging of the values that cause LOG_ERR statements.
This makes it easier to debug any issues that occur.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-28 08:01:46 +01:00
Kyra Lengfeld
775cc35236 Bluetooth: Host: improve GATT documentation
The gatt docs are very sparce, this commit adds imrpovements for the
GATT server API part. Others will follow.

Signed-off-by: Kyra Lengfeld <kyra.lengfeld@nordicsemi.no>
2025-02-28 08:00:42 +01:00
Peter Korsgaard
f6017c5e09 sys_clock: header: fix typo in NSEC_PER_USEC comment
Commit c910dc81a614("sys_clock: header: minor cleanup and doxygenization")
introduced a typo in the documentation comment above NSEC_PER_USEC.  Fix
that.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2025-02-27 23:22:20 +00:00
Mahesh Mahadevan
02bbdaf799 west.yml: Update HAL NXP to get fix for LPFlexcomm build issue
The LPFlexcomm HAL driver should be included based on
CONFIG_NXP_LP_FLEXCOMM config

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-02-27 23:20:23 +00:00
Andrej Butok
c887d5e235 sample: zms: add ZMS sample Kconfig
- adds ability to change the ZMS sample MAX_ITERATIONS
  and DELETE_ITERATION parameters via Kconfig without manually
  modifying the source code.
- adds ability to reduce flash memory wear on real devices
  by reducing the number of write iterations.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-02-27 23:19:34 +00:00
Raffael Rostagno
40823be8b7 runners: esp32: Fix board arguments
Fix board arguments to properly build runners.yaml and
set esp-monitor-baud.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-02-27 23:19:20 +00:00
Maciej Perkowski
b85e4f1b00 samples: sensors: Add test criteria
Verify the output according to the description of the sample.
fixes: #84156

Signed-off-by: Maciej Perkowski <maciej.perkowski@nordicsemi.no>
2025-02-27 23:19:09 +00:00
Declan Snyder
1ca895dc0e spi_nxp_lpspi: Reintroduce fast path no configure
Reintroduce the fast path that skips reconfiguring if we use the same
configuration, this fixes regression that causes a lot of latency at the
start of repeated transfers. Unfortuantely need to find alternative
workaround for S32K3 in order to do this instead of module reset, so
disable skipping for that platform.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-27 23:18:46 +00:00
Declan Snyder
09e31d6b42 spi_nxp_lpspi: Fix faulting register access
On some platforms, the module is not getting clocked until call to
LPSPI_MasterInit, this will be fixed soon with upcoming update to native
driver and will clock the module in driver init instead of start of
transfer, but for now, move this code within the condition check that
already exists for this purpose.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-27 23:18:46 +00:00
Declan Snyder
25f32107f6 dts: nxp: mcxn23x: Fix LPSPI fifo sizes
The LPSPI FIFOs on this platform are 8 words long, not 16.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-27 23:18:46 +00:00
Johann Fischer
a05fd62119 drivers: usb: do not enabled nRF USBREG interrupt
The drivers still use the USBREG HAL driver which enables/disables the
interrupt by itself.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-27 23:18:39 +00:00
Johann Fischer
f00d42f1de modules: hal_nordic: update version to include USBREG fix
Update version to include USBREG HAL driver fix.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-27 23:18:39 +00:00
Benjamin Cabé
6f56bea2b5 Revert "samples: zms: fix dropped messages"
This reverts commit 63bb55eb16
which causes failures in CI on qemu_x86/atom target.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-27 23:17:56 +00:00
Jonas Spinner
bc3a01a7e5 arch: arm64: fix spelling of "exception"
/s/expection/exception/

Signed-off-by: Jonas Spinner <jonas.spinner@burkert.com>
2025-02-27 13:28:21 +00:00
Jonas Spinner
4ffe3891df arch: arm: cortex_m: fix spelling of "exceptions"
s/expections/exceptions/

Signed-off-by: Jonas Spinner <jonas.spinner@burkert.com>
2025-02-27 13:28:21 +00:00
Alberto Escolar Piedras
414996f880 tests/subsys/fs/nvs: Fix flakiness due to not init'ed data
This test has been seen failing at random (though not often).
A valgrind check showed the nvs_ate structures were being
CRC'ed with not-initialized data, and checked later (assuming
the CRC would be different than a constant).
This maybe have been the cause of the test failures, so let's
initialize the whole structure to prevent the CRC value
from depending on random memory/stack content.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:28:12 +00:00
Andrej Butok
63bb55eb16 samples: zms: fix dropped messages
- Sets CONFIG_LOG_MODE_IMMEDIATE for the zms sample.
- Fixes "--- 9999 messages dropped ---".

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-02-27 13:28:01 +00:00
Alberto Escolar Piedras
b1680688c1 samples/subsys/debug/fuzz: run on native_sim instead of native_posix
native_posix is deprecated and will be removed in 4.2
Run this sample in native_sim instead.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Alberto Escolar Piedras
cc2d31f4da samples/subsys/fs/zms: Allow it to run and add check
This sample could not run on any target as it depedend on zms
which is set by no board.
But it seems to run just fine in both allowed platforms,
so let's add a trivial twister check (so it actually passes instead
of waiting for ever), and remove that `depends on`.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Alberto Escolar Piedras
4a91a55ae2 samples/subsys/fs/zms: run on native_sim instead of native_posix
native_posix is deprecated and will be removed in 4.2
Run this sample in native_sim instead.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Eve Redero
3daac6aee3 board: due: change pinctrl header to match soc
Arduino Due uses Atmel SAM3X8E, not SAM3X8H, so pinctrl should
call the appropriate header.

Signed-off-by: Eve Redero <eve.redero@gmail.com>
2025-02-27 13:27:34 +00:00
Joakim Andersson
d082c7dc46 net: http_client: Fix handling of poll error revents
Fix handling of poll setting socket error flag.
In this case errno is no set, so should not be the return value either.
Instead retrieve the socket error for SOCKERR and return EBADF for
SOCKNVAL.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2025-02-27 13:27:28 +00:00
Lars-Ove Karlsson
5a1f7a58db cmake: toolchain: Removed config FP16 from IAR kconfig.default
Removed config FP16 from kconfig.default as it is set by the arch/cpu.

Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
2025-02-27 13:27:20 +00:00
Benjamin Cabé
d15bbfafef doc: releases: Zephyr 4.1 release highlights
A first stab at adding some highlights for the upcoming 4.1 release.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-27 13:26:56 +00:00
Benjamin Cabé
6060f07189 doc: toolchain: add reference label for IAR Arm Toolchain documentation
Add anchor to be able to reference this page from other places.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-27 13:26:56 +00:00
Jordan Yates
b74b092f22 modules: tf-m: fix build verbosity
Only set CMAKE_INSTALL_MESSAGE in a single location, remove the
unconditional overrides of the value in other locations.

This prevents dozens of rather pointless messages appearing in the build
log when CONFIG_TFM_BUILD_LOG_QUIET is set.
```
Installing: /home/jordan/code/workspace/build/nrf5340dk/...
```

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:08:24 +00:00
Jordan Yates
c0ef487a38 tests: secure_storage: add dependencies
Now that `SECURE_STORAGE` does not `select` dependencies, they need to
be enabled explicitly by the tests.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
Jordan Yates
5ad76de07f secure_storage: swap select to depends on
Mixing `select` and `depends on` is a common source of Kconfig
dependency loops and should be avoided. Both `ZMS` and `SETTINGS` are
more commonly used with `depends on` rather than `select`.

The usage here also contradicts the Zephyr best practices guide for
`select`:
 * Avoid selecting symbols with prompts or dependencies.
   Prefer depends on.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
Jordan Yates
8f36307329 secure_storage: remove incorrect imply symbols
`SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS` does not use either
the `FLASH_MAP` or `NVS` APIs, only `SETTINGS`.

Similarly, `SECURE_STORAGE_ITS_STORE_MODULE` does not consist of any
code itself and therefore should not select or imply any options.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
Jordan Yates
76c526a035 fs: nvs: move FLASH_PAGE_LAYOUT to depends on
`FLASH_PAGE_LAYOUT` has a hardware dependency on `FLASH_HAS_PAGE_LAYOUT`
which is not present for all boards. Forcing this symbol to `y` when
the hardware doesn't support it results in build errors at the Kconfig
stage.

`FLASH_PAGE_LAYOUT` is enabled by default when `FLASH_HAS_PAGE_LAYOUT`
is true, so this change will not require any user changes.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
David Brown
68a5a95f2b docs: develop: languages: Add initial documentation for Rust
Start a simple set of documentation on using Rust within Zephyr.  This
gives an overview of how to use Rust, and pointers to the generated API
documentation.

Signed-off-by: David Brown <david.brown@linaro.org>
2025-02-27 09:07:42 +00:00
Daniel Leung
88968b970c doc: release/4.1: add bits about I3C
This adds some bits about changes in I3C drivers in the release
note.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-02-27 09:07:26 +00:00
Daniel Leung
634403f093 doc: release/4.1: add bits about common architecture interface
This adds bits in the release note on changes in common
architecture interface, where the changes affect more than one
architectures.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-02-27 09:07:26 +00:00
James Roy
f527494e90 dts: wifi: Simplify the description of the binding
Remove redundant descriptions in Wi-Fi bindings, such
as "This is a representation of".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-02-27 08:01:38 +01:00
Vinayak Kariappa Chettimada
1cc6bab2ee doc: Update to release notes update scope and purpose
Update the scope and purpose of release notes to include
style, typographical fixes and upmerge from maintenance
releases to keep the latest documentation consistent with
the changes in the project.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-27 08:01:29 +01:00
Emil Gydesen
9e84fc39d5 Bluetooth: TBS: Add missing documentation for bt_tbs_register_param
The struct was missing doxygen documentation.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-27 08:01:18 +01:00
Emil Gydesen
570a88c29f Bluetooth: CAP: Add missing documentation for some structs
bt_cap_commander_broadcast_reception_stop_param and
bt_cap_commander_distribute_broadcast_code_param
were missing doxygen documentation.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-27 08:01:18 +01:00
Emil Gydesen
029e06610e Bluetooth: Audio: Fix bad uses of @internal in header files
Replaced the use of @internal with @cond INTERNAL_HIDDEN
which is the correct way to hide fields from doxygen.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-27 08:01:18 +01:00
Emil Gydesen
6f882f3401 Bluetooth: BAP: Fix bad documentation in bap.h
Add missing of documentation of BT_BAP_BASS_MAX_SUBGROUPS
and simplify the definition.

Removed incorrect use of @internal and replaced with
@cond INTERNAL_HIDDEN.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-27 08:01:18 +01:00
Flavio Ceolin
902751411f doc: release-notes-4.1: Add CVE-2025-1675
Add CVE-2025-1675 to release notes.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
3918c86b1a doc: release-notes-4.1: Add CVE-2025-1674
Add CVE-2025-1674 to release notes.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
5a0d4675a8 doc: release-notes-4.1: Add CVE-2025-1673
Add CVE-2025-1673 to release notes.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
bc189229ac doc: security: Disclose CVE-2025-1675
Disclose information about published CVE.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
b777714e2a doc: security: Disclose CVE-2025-1674
Disclose information about published CVE.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00