Commit graph

126,787 commits

Author SHA1 Message Date
Flavio Ceolin
11f28ab11a doc: vuln: Add CVE under embargo
Add an entry to CVE-2025-9408.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-10-31 10:35:03 -04:00
Flavio Ceolin
8c560135b6 doc: release/4.3: Add CVE under embargo
Add information about CVE under embargo.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-10-31 10:35:03 -04:00
Fabrice DJIATSA
0e987438b8 tests: net: iface: increase ztest stack size in net.iface.iid.stable
Moving from legacy Mbed TLS crypto to the PSA API may cause some
STM32 platforms or other vendor platforms to fail due to stack overflow.
Increasing the ztest stack size solves this problem.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-10-31 10:34:24 -04:00
Lyle Zhu
d95358e934 Bluetooth: Classic: L2CAP: Reset rx.cid when channel is deleted
rootcause: The dynamic L2CAP channel rx.cid is not reset, it
will be intercepted by the judgment condition of the fixed channel,
directly using the last alloced cid may cause cid conflict.

Co-authored-by: zhenwei fang <fangzhenwei@bytedance.com>
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-10-31 10:34:04 -04:00
Jukka Rissanen
73315dd73d net: shell: stats: Fix undefined function call
If CONFIG_NET_STATISTICS_PER_INTERFACE is not set, then the
net_shell_print_statistics_all() function was not found and
the compilation was failing.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-31 10:33:47 -04:00
Robert Robinson
84dfdedc87 manifest: Update hal_nordic to pull file missing in mdk 8.72.4 release
Update hal_nordic to pull file missing change from mdk 8.72.4 release

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2025-10-31 10:23:33 -04:00
Chekhov Ma
f4522490b9 driver: gpio: pca_series: fix pca6416 test issue
There are multiple issues in this driver:
1. gpio_pca_series_part_cfg_pca6416 is not using correct macros
2. gpio_pca_series_interrupt_handler_standard not updating input when
   no interrupt configured

Fixing these issues.

Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
2025-10-31 10:23:23 -04:00
Mathieu Choplain
2e998cf17d drivers: usb: udc: stm32: use instance MPS for IN endpoints capabilities
When setting endpoint capabilities, the driver uses the MPS stored in each
instance's configuration for OUT endpoints, but used a hardcoded 1023 for
IN endpoints.

Use the instance MPS when preparing IN endpoints' capabilities too.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-31 10:22:29 -04:00
Wojciech Slenska
0468c5fb42 drivers: serial: stm32: don't disable DMA in circular mode
When cyclic mode is enabled, do not disable RX.
This mode ensures continuous availability of RX buffers.

Signed-off-by: Wojciech Slenska <wsl@trackunit.com>
2025-10-31 10:21:47 -04:00
Benjamin Cabé
301b20aae3 include: drivers: edac: add doxygen documentation to edac_synopsys.h
This ensures the vendor-specific API provided in this header file is
fully documented and exposed in our API documentation.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-31 10:21:01 -04:00
Benjamin Cabé
52c8f88858 include: edac: use correct full name for edac_synopsys.h include guard
Minor change but ensures the include guard corresponds to the full path
of the file as done elsewhere in the tree.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-31 10:21:01 -04:00
Mathieu Choplain
acd7660bcb boards: st: *: add missing space before inline markup in documentation
Add missing space before |reg| or |trade| in documentation of ST boards
which prevents proper rendering.

Also add a few missing spaces in the `stm32wb5mmg` board documentation.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-31 10:18:51 -04:00
Mathieu Choplain
0063f15162 boards: st: *: fix USB Type-C trademark marker
USB Type-C is a registered trademark of USB Implementers Forum and should
thus be annotated as (R), not TM. Update documentation of STM32 boards
using the wrong symbol.

Also add a missing space in steval_stwinbx1 board documentation.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-31 10:18:51 -04:00
Erwan Gouriou
0f5e03f1fc boards: *: Fix wrong feature identifier for usb_device
`usb device` isn't a valid feature name, fix it, using the new "usbd" tag.
Remove it when not enabled on the board.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-10-30 18:40:27 -04:00
Simon Maurer
01a7ed9097 soc: xlnx: zynq7000: move SoC code to common folder
remove duplicate xc7zxxx and xc7zxxxs soc code

Signed-off-by: Simon Maurer <mail@maurer.systems>
2025-10-30 18:39:16 -04:00
Wenxi Xu
503df3e69e drivers: dma: stm32: add null callback checking
Fix the STM32 DMA driver did not check if the optional dma_callback was
set in dma_stm32_configure(). This could lead to a hard fault when an
interrupt occurs and the callback is NULL, even though the API allows
the callback to be omitted.

Fixes #97454
Signed-off-by: Wenxi Xu <xuwenxi0517@gmail.com>
2025-10-30 18:38:39 -04:00
Mathieu Choplain
2e7ad10247 drivers: usb: udc: stm32: use addr_before_status capability
Instead of snooping SETUP packets for SET_ADDRESS request to call the HAL
SetAddress() function manually, mark device with the addr_before_status
capability such that the UDC stack will call udc_stm32_set_address()
before submitting status by itself.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-30 18:38:29 -04:00
Ali Hozhabri
7a593ede3e drivers: bluetooth: hci: Fix the issue about the TRNG peripheral instance
Fix the issue regarding passing the TRNG peripheral instance to the driver.

Increase the SYSTEM_WORKQUEUE_STACK_SIZE when CONFIG_BT is set.
According to the log of thread analyzer for beacon sample, 1048 bytes
are needed. So, it's been increased to a safer value.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2025-10-30 18:38:02 -04:00
Ali Hozhabri
57ebf79d87 drivers: entropy: Modify the recover_seed_error function for WB0x
Exclude the WB0x series from discarding data 12 times from the RNG data
register.

Add a comment to the recover_seed_error function explaining the reason
for reading and discarding data from the RNG data register 12 times.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2025-10-30 18:38:02 -04:00
Ali Hozhabri
d7074f2747 drivers: entropy: Fix non-stop RNG ISR firing for STM32WB09
Fix the TRNG driver issue regarding non-stop ISR firing for STM32WB09 by
clearing RNG_IRQ_SR_ERROR_IRQ flag.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2025-10-30 18:38:02 -04:00
Jiafei Pan
04baf84eaf cmake: toolchain: cross_compile: check newlib and picolibc
Add support to check whether Cross Compile toolchain support newlib and
picolibc or not.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-10-30 18:37:44 -04:00
Sebastian Modersohn
8ae4195499 boards: stm32n6570_dk: fix overlapping partitions
* reducing mcuboot partition size so slot_0 and slot_1 can stay where
  they are
* fixes #97850

Signed-off-by: Sebastian Modersohn <im24@msohn.de>
2025-10-30 18:37:17 -04:00
Szymon Janc
973934c1e9 Bluetooth: Host: Fix crash on bt_disable() with limited advertising
When limited advertising is enabled there is pending deleyable work
for timing it out. If in such case struct bt_le_ext_adv is cleared by
memset system will crash on next tick.

Fix this by ensuring work is cancelled before clearing struct
bt_le_ext_adv. Using bt_le_ext_adv_foreach() ensures that this will
be correctly handled with and without extended advertising enabled.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-10-30 18:37:07 -04:00
William Tambe
45a4f381c7 xtensa: suppress warning on variable used uninitialized
This change suppress the warning:
variable 'ie' is used uninitialized whenever switch default is
taken [-Wsometimes-uninitialized]

Signed-off-by: William Tambe <williamt@cadence.com>
2025-10-30 18:36:49 -04:00
William Tambe
611f381ed9 xtensa: properly compute irq number
This is a miss from:
abeccfec28 xtensa: support for more than 32 interrupts

Signed-off-by: William Tambe <williamt@cadence.com>
2025-10-30 18:36:41 -04:00
Benjamin Cabé
00770f4f38 samples: instrumentation: remove unnecessary include of instrumentation.h
The instrumentation.h header is not needed to compile the
instrumentation sample and it can be misleading for folks to think they
have to include it in their code to use the subsystem, so remove it.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-30 18:36:32 -04:00
Benjamin Cabé
2838fb8be5 doc: releases: introduce release notes and migration guide docs for 4.4
This introduces the release notes and migration guide for Zephyr 4.4.0
earlier so that people have a placeholder to start adding content as
they line up pull requests for the 4.4 release.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-30 18:36:22 -04:00
Jukka Rissanen
3af17bf8b1 tests: posix: portability: fs: Increase number of fds
The test had too few file descriptors.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-30 14:23:46 -04:00
Jukka Rissanen
fe78f4d29a tests: posix: xsi_realtime: Set enough file descriptors
Earlier fix in commit bfd033df81
caused the Posix xsi_realtime test to fail. Set minimum amount
of file descriptors in the test to pass the build assert.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-30 14:23:46 -04:00
Jukka Rissanen
79a0dadef3 tests: net: lwm2m_engine: The test needs more fds
Set minimum amount of file descriptors in the test to pass
the tests.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-30 14:23:46 -04:00
Jukka Rissanen
0ad1a5ad6a tests: net: dns_resolver: The test needs more fds
Set minimum amount of file descriptors in the test to pass
the tests.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-30 14:23:46 -04:00
Allen Zhang
82f419de74 drivers: flash: Fixed the typo in clear_flash_caches
elif should be else

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-10-30 11:54:03 -04:00
Bartosz Miller
a8bf08bf4e tests: drivers: flash: Add test with buffer size over the bus packet limit
Applicable to flash devices with MSPI controller

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-10-30 15:16:37 +02:00
Pieter De Gendt
ed92ee5064 scripts: Bump ruff to 0.14.2
Update the ruff version to the latest 0.14.2 and update the excluded files
to match with the last checks for linter and formatting issues.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-10-30 15:16:25 +02:00
Khoa Tran
e72107e877 tests: drivers: i2c: Fix incorrect file paths in SCI I2C test support
The current paths to the .overlay and .conf files used for SCI I2C tests
are incorrect, as they include {NORMALIZED_BOARD_QUALIFIERS}, which does
not exist in the actual file names.

This commit corrects the file paths in the test support configuration.

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-30 15:16:13 +02:00
Khoa Tran
141b88ed1d tests: subsys: fs: Update test configuration for Renesas RA
Remove redundant "partition" and "slot1_partition" nodes that are not
needed and conflict with the MRAM device node labeled "mram" on
Renesas RA boards. These conflicts caused build errors.

For the affected board overlays, the SDHC and SDMMC nodes are now
enabled at the board or shield layer, so they no longer need to be
defined in the test configuration.

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-30 15:16:04 +02:00
Ayush Singh
5aa87d48aa dts: vendor: ti: k3-am62-main: Change license to Apache-2
This probably should have been caught much earlier, but well, here we
are. The original license came from the following linux dt that
BeagleBoard.org uses [0]. However, due to differences between linux and
zephyr dt and the fact that zephyr does not yet support most of the
devices on this soc, the only lines same between the two files are the
`status = "disabled";`, and some of the address (not all since things
like GPIO are handled differently). Keeping that in mind, this file
should never have used that license or have TI Copyright.

If it's too late to change the license now, we can probably add this
file to exceptions, since the current license of the file, i.e. GPL-2.0
and MIT should cover all cases where Apache-2 can be used. Again,
apologies since there was no reason for this file to use the dual
license.

[0]:https://github.com/beagleboard/BeagleBoard-DeviceTrees/blob/v6.12.x-Beagle/src/arm64/ti/k3-am62-main.dtsi

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-10-30 15:15:49 +02:00
Allen Zhang
e2c62743ea soc: mcxw2xx: Add clock enablement for flash controller
kCLOCK_Sysctl must be enabled for FLASH_CacheClear,
FLASH_CacheSpeculationControl and FLASH_CheckECC to have an effect.

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-10-30 15:15:35 +02:00
Allen Zhang
86b346e097 drivers: flash: Added clear_flash_caches function for MCXW2XX
MCXW2XX ROMAPI provide the function FLASH_CacheClear to clear the cache.
The SMSCM is not supported on MCXW2XX platform.

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-10-30 15:15:35 +02:00
Rubin Gerritsen
499102fc47 soc: nordic: nrf54h: s2ram: Fix compiling with FPU
This commit fixes a change introduced in #97025
where too many definitions where removed.

Fixes issue #98382

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2025-10-30 15:15:18 +02:00
Amneesh Singh
f0222a4e17 samples: adc_stream: fix sample filter
io-channels in zephyr,user is required for this sample to compile, so
add that to the filter and remove the redundant ifdef in the source code.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2025-10-30 15:15:08 +02:00
Jordan Yates
3dc72db57e wifi: nrf_wifi: named MAC address choice
Add a name to the "Wi-Fi MAC address type" choice symbol so that the
default can be updated on a per-board basis.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-30 15:14:59 +02:00
Marcin Jelinski
0a9f28fdef modules: nordic: select correct timer for NFCT on nRF54L
Set the appropriate default NFC timer for the nRF54L series SoCs.

Ref: NCSDK-31244

Signed-off-by: Marcin Jelinski <marcin.jelinski@nordicsemi.no>
2025-10-30 15:14:48 +02:00
Guotao Zhang
ec970a635e drivers: bluetooth: h4: Fix check for sufficient buffer size
When alloc the evt buffer,such as the adv report, only compare the
remaining data len, should aslo consider the hdr_len, because the
hdr also copy to alloced buffer.if not consider the hdr, then
hdr + remaining data may larger than alloced buffer, because the
alloced buffer is not enough,then will assert when receive the
remaining data.

Signed-off-by: Guotao Zhang <guotao.zhang@nxp.com>
2025-10-30 15:14:20 +02:00
Jamie McCrae
79faa6af5f doc: releases: release_notes: 4.3: Add new MCUmgr Kconfigs
Lists new Kconfigs for MCUmgr

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-30 15:14:10 +02:00
Jamie McCrae
b5c17b29c9 doc: release: migration_guide: 4.3: Add notes on TF-M and MCUboot
Adds notes of changes made to these

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-30 15:14:10 +02:00
Carles Cufi
093bb9972c scripts: compliance: Harden the execution of npx
Instead of relying on various exceptions that can happen when one tries
to execute a program that is not installed in the system (typically
FileNotFoundError but sometimes PermissionError), use shutil.which() to
ensure the npx executable is available before running it.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-10-30 15:13:53 +02:00
Carles Cufi
cd8e773b32 kernel: events: Depend on multithreading
Kernel events depend on multithreading being enabled, and mixing them
with a non-multithreaded build gives linker failures internal to
events.c. To avoid this, make events depend on multithreading.

```
libkernel.a(events.c.obj): in function `k_event_post_internal':
175: undefined reference to `z_sched_waitq_walk'
events.c:183: undefined reference to `z_sched_wake_thread'
events.c:191: undefined reference to `z_reschedule'
libkernel.a(events.c.obj): in function `k_sched_current_thread_query':
kernel.h:216: undefined reference to `z_impl_k_sched_current_thread_query'
libkernel.a(events.c.obj): in function `k_event_wait_internal':
events.c:312: undefined reference to `z_pend_curr'
```

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-10-30 15:13:38 +02:00
Qingsong Gou
4bb1c676cc drivers: dma: sf32lb: fix dma compile error
Fix dma clock compile error

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2025-10-30 15:13:25 +02:00
Jordan Yates
bfd033df81 modules: nrf_wifi: add missing Kconfig dependency
`ZVFS_OPEN_ADD_SIZE_NRF70_ENABLE_DUAL_VIF` should only exist in the
build if `NRF70_ENABLE_DUAL_VIF`, not for every application in tree.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-30 15:13:13 +02:00