Commit Graph

91251 Commits

Author SHA1 Message Date
Erwan Gouriou 5381e8a670 boards: stm32h573i_dk: Enable debug support with pyocd
Support of stm32h5 targets with pyocd is required to allow debugging.
Provide runner configuration and update board documentation.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-02-14 19:07:43 +01:00
Christopher Friedt 2155a9e5f7 logging: rename log2_generic to log_generic
The log2 prefix was deprecated and changed to log some time ago,
but log2_generic() seems to have been inadvertantly left with
the old prefix.

Rename log2_generic() to log_generic() to follow suit.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-14 19:07:30 +01:00
Henrik Brix Andersen 6e5c1ba3c1 drivers: can: mcan: fix handling of bus-off status events
Fix handling bus-off events in the Bosch M_CAN driver backend:
- Cancel all pending TX buffers when entering bus-off state
- Call all pending TX buffer callbacks with -ENETUNREACH when entering
  bus-off
- Automatically initiate bus-off recovery if
  CONFIG_CAN_AUTO_BUS_OFF_RECOVERY=y

Fixes: #68953

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-14 19:07:18 +01:00
Robert Lubos 5f65ab5435 doc: release-notes: Fix typo when referring to Socket Service
Use singular Service when referring to Socket Service library.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-02-14 19:07:04 +01:00
Ping Wang 5ccd75b49b Bluetooth: Audio: define bt_bap_bass_subgroup struct.
The Broadcast Assistant API should be fully independent of the scan
delegator. Therefore the new struct bt_bap_bass_subgroup has been
defined to avoid a dependency.

Fixes: #68338

Signed-off-by: Ping Wang <pinw@demant.com>
2024-02-14 19:04:01 +01:00
Mike Szczys e01a66f10c twister: support domains when cleaning up binaries
Binaries are located in multiple build directory subfolders when built for
multiple domains (sysbuild is one example). Parse domains.yaml and preserve
files across all domains for testing when --prep-artifacts-for-testing
option is used.

Signed-off-by: Mike Szczys <szczys@hotmail.com>
2024-02-14 19:03:39 +01:00
Ryan Erickson d8afcfb501 modem: hl7800: validate IPv4 DNS addr len for IPv6
If the IPv6 DNS address is not a valid address, DNS will fallback
to the IPv4 DNS address.
Fix copying the IPv4 address to the IPv6 address by using
the IPv6 address destination length.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2024-02-14 19:03:02 +01:00
Anas Nashif 3222351946 doc: ipc: fix header location
Header for ip_service was wrong in the docs.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-14 19:02:45 +01:00
Bjarki Arge Andreasen 080d51bb36 modem: modem_cellular: CID 338067
incorrect size passed to strncpy()

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-14 17:48:11 +01:00
Bjarki Arge Andreasen b668296a50 modem: modem_cellular: CID 338073
incorrect size passed to strncpy()

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-14 17:48:11 +01:00
Bjarki Arge Andreasen 08a51bae89 modem: modem_cellular: CID 338115
incorrect size passed to strncpy()

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-14 17:48:11 +01:00
Bjarki Arge Andreasen ae951f5f02 modem: modem_cellular: CID 338140
incorrect size passed to strncpy

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-14 17:48:11 +01:00
Bjarki Arge Andreasen adcdf64a0f modem: modem_cellular: CID 338164
strncpy() passed incorrect size

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-14 17:48:11 +01:00
Robert Lubos 5517e22133 doc: release-notes: Add 3.6.0 release notes for networking
Add 3.6.0 release notes for networking.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-02-14 17:21:28 +01:00
Anas Nashif 78bc5dd716 doc: fix include path of log_ctrl.h
fix zephyr/log_ctrl.h -> zephyr/logging/log_ctrl.h

Fixes #68902

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-14 16:48:03 +01:00
Henrik Brix Andersen adeaa63bb7 mgmt: mcumgr: img_mgmt_client: avoid using uninitialized variable
Make sure temp_data is initialized before use.

Fixes: #68636

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-14 15:25:00 +01:00
Sean Farrelly 9e28e9e564 samples: Bluetooth: Broadcast Audio Source: Fix potential memory leak
In error cases, where send_data() returns early, the allocated net_buf
is not free'd, causing a memory leak affecting the net_buf pool.
Fix this by freeing the allocated net_buf before returning early
from send_data().

Signed-off-by: Sean Farrelly <sean.farrelly@outlook.com>
2024-02-14 14:28:28 +01:00
Aleksandr Khromykh 6bb5076a21 settings: NVS: add entry into cache after writing
Settings NVS adds entry into Settings NVS cache after writing it
into flash. Previously, the entry was added into cache only
on the second writing attempt that caused very huge timing
despite cache was enabled since it was still empty.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2024-02-14 14:28:08 +01:00
Jordan Yates d323acafc3 doc: build: snippets: application required snippets
Document how an application can automatically include snippets when
being built.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2024-02-14 14:14:20 +01:00
Mikkel Jakobsen ef8e32561d drivers: led_strip: tlc5971: fix brightness control bit shifting
The lower bits of the brightness control registers were erroneously
shifted even though FIELD_PREP already does the shifting. In practice,
the effect is negliglible but of course should be fixed.

Also add missing parenthesis around shifting operations to satisy static
analysis.

Signed-off-by: Mikkel Jakobsen <mikkel.aunsbjerg@escolifesciences.com>
2024-02-14 13:09:54 +01:00
Erwan Gouriou 019b81a184 doc: release-notes-3.6: Shields additions changes
Update V3.6.0 release notes with shields additions.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-02-14 12:17:40 +01:00
Erwan Gouriou fc92484ca8 doc: release-notes-3.6: STM32 changes
Update V3.6.0 release notes with STM32 related changes

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-02-14 12:17:40 +01:00
Maureen Helm 8016647dc6 doc: release: Add ADI boards for v3.6.0
Adds notes about new ADI boards added since the last release.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-14 12:16:45 +01:00
Maureen Helm ba0dad8ccc doc: release: Add sensor release notes for v3.6.0
Adds notes about sensor driver changes since the last release.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-14 12:16:45 +01:00
Rajavardhan Gundi 57f1976ea8 drivers: i2c_mchp: Replace slave by target
Replace slave_register with target_register and slave_unregister
with target_unregister.

Signed-off-by: Rajavardhan Gundi <rajavardhan.gundi@intel.com>
Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2024-02-14 12:06:20 +01:00
Henrik Brix Andersen 29bc308f79 boards: arm: nrf52840_papyr: add zephyr,code-partition chosen property
Add missing zephyr,code-partition chosen property.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-14 10:59:21 +00:00
Henrik Brix Andersen d179be20d8 boards: arm: nrf52840_blip: add zephyr,code-partition chosen property
Add missing zephyr,code-partition chosen property.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-14 10:59:21 +00:00
Cui Wei cdb8f3cc47 samples: posix: gettimeofday: Fix fatal error caused by small stack
Fix #68727.

Signed-off-by: Cui Wei <chris.wei.cui@foxmail.com>
2024-02-14 10:58:42 +01:00
Daniel Leung fe8fe27b4e boards: x86/acrn: add devicetree PCIe controller node
Commit 940c66f82e added a bunch of
ACPI PNP ID to x86 boards but skipped those for ACRN. And commit
34a2fbfba1 changed the behavior of
PCIe controller to looking for PNP ID, it results in compilation
error due to build asserts. So add the PCIe controller node to
the ACRN base DTS file.

Fixes #68956

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-02-14 10:40:11 +01:00
Guillaume Gautier b0e1e9f5fb drivers: bbram: stm32: add include to fix compilation error
Driver BBRAM for STM32 had a compilation error: "unknown type name
'RTC_TypeDef'" due to missing include file.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2024-02-14 10:40:00 +01:00
Emil Gydesen 9ec754d9e6 Bluetooth: Host: Add ISO tx check for LOG_WRN in le_init_iso
The warning should only apply for configurations where the
device may actually send ISO data (e.g. not the ISO sync receiver).

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-14 08:25:10 +01:00
Carles Cufi 30213a275e boards: nrf54*: Add a note about current status
The nRF54* SoCs are in a very early stage of production and the software
supporting them is to be considered experimental. Document this
accordingly in the respective boards.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-02-14 08:24:30 +01:00
Doug Foster 7f83db489e samples: doc: Add README for Grove sensor samples
Added a README.rst for grove_light and grove_temperature sensor
sample applications.

Signed-off-by: Doug Foster <dougwfost@gmail.com>
2024-02-14 00:44:29 +01:00
Thomas Stranger 61f065230a drivers: sensor: ltrf216a: fix overflow in conversion
The conversion of the raw sensor value overflows because
only a 32 bit multiplication is executed.
Fix the issue by promoting the raw sensor value to uint64_t before
executing the multiplication.

Analysis:
The current implementation overflows for all raw values grater
than 9544(14-bit).
But according to the datasheet the sensor has a maximum resolution of
20-bit. So Multiplying that value with 450.000 would need at least 39
bit to avoid an overflow, hence do it using 64-bit arithmetic.

Fixes CID 330657

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2024-02-13 21:14:21 +01:00
Christopher Friedt 25227aa4b7 doc: release: 3.6: add posix api release notes
Add highlights between v3.5.0 and today for the the POSIX API.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-13 21:13:40 +01:00
Jukka Rissanen 2e55c9e3f3 doc: release: 3.6: Add Ethernet and Wi-Fi info
Add changes to Ethernet and Wi-Fi drivers for v3.6.
Also add information about generic Ethernet and Wi-Fi changes.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-02-13 21:13:26 +01:00
Daniel Leung c88455873b doc: release-notes/migration-guide/3.6: add bits on Xtensa
This adds some bits in both migration guide and release notes
about changhes in Xtensa.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-02-13 21:04:11 +01:00
Daniel Leung a03f779097 docs: migration-guide-3.6: notes about userspace funcs renaming
Quite a few of userspace related functions, macros and struct
have been renamed (z_ to k_). So make notes in the migration
guide.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-02-13 21:04:11 +01:00
Daniel Leung 5db6f86fd6 doc: release-notes/3.6: add some bits about UART
This adds a few bits about more significant changes in UART.
Small changes and bug fixes are omitted.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-02-13 21:04:11 +01:00
Daniel Leung 8bbca36a28 doc: release-notes/3.6: add some bits about PCIe
This adds some bits on changes of PCIe to the release notes.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-02-13 21:04:11 +01:00
Daniel Leung d3310ef413 doc: release-notes/3.6: add some bits about I3C
This adds some bits on changes of I3C to the release notes.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-02-13 21:04:11 +01:00
Markus Swarowsky 49c7f43561 modules: tf-m: Rename crypto modules to ENABLED
The TF-M crypto modules got renames from CRYPTO_XXX_MODULE_DISABLED to
CRYPTO_XXX_MODULE_ENABLED
Therefore also re naming it in zephyr build integration.

Signed-off-by: Markus Swarowsky <markus.swarowsky@nordicsemi.no>
2024-02-13 19:37:33 +01:00
Markus Swarowsky 75fc64969d modules: tf-m: Remove QCBOR path from build
QCBOR is only needed  by the TF-M tests, as they are not build
separately due to the TF-M split build.
If we still set it there is a CMake build warning.

Signed-off-by: Markus Swarowsky <markus.swarowsky@nordicsemi.no>
2024-02-13 19:37:33 +01:00
Markus Swarowsky 8e16b36c18 modules: tf-m: Remove TFM_TEST_REPO_PATH
TF-M 2.0.0 doesn't use the TFM_TEST_REPO_PATH anymore so removing it.

Signed-off-by: Markus Swarowsky <markus.swarowsky@nordicsemi.no>
2024-02-13 19:37:33 +01:00
Christopher Friedt 218f787e26 thrift: null-terminate certificates in samples and tests
The thrift methods loadCertificateFromBuffer(),
loadPrivateKeyFromBuffer(), and
loadTrustedCertificatesFromBuffer() expect a null-terminated
string.

Append '\0' to each array used to hold a certificate in
thrift samples and tests.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-13 19:36:58 +01:00
Jamie McCrae 2fef763ff4 doc: release: 3.6: Add release notes for MCUmgr
Adds release notes for MCUmgr for this release

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-02-13 19:36:43 +01:00
Jukka Rissanen 7e6813dcf5 net: trickle: Print the abs value using %u
The Imax_abs value should be printed using %u instead of %d
as it can be large and should be printed as positive value.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-02-13 19:36:30 +01:00
Erwan Gouriou 881dfd36ae boards: nucleo_f722ze: Add code-partition chosen
If slots partitions are defined, related chosen should be configured.

Fixes build issue in samples/subsys/usb/dfu

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-02-13 19:35:58 +01:00
Gerard Marull-Paretas ebbf672cc5 doc: release-notes: add relevant pinctrl changes
Add a list of relevant new features or new drivers.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-13 17:15:49 +01:00
Emil Gydesen 302974bdcb samples: Bluetooth: Add missing svc data for broadcast audio sink
Add missing service data for BASS for the broadcast audio sink
sample.

This also required the controller to increase its maximum data
length. Increased more than minimum required so that the name
can be changed without needing to increase this again.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-13 16:47:01 +01:00