Commit Graph

99061 Commits

Author SHA1 Message Date
Alessandro Manganaro
d947fbb378 drivers: bluetooth: hci: Fix stm32wb BLE behavior
Enabling BT_HCI_SETUP for STM32WB55 to have a
correct and proper initialization procedure to fix
#75318 issue

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
(cherry picked from commit 4fc77248de)
2024-08-06 12:45:25 -04:00
Alessandro Manganaro
d698d40bb7 drivers: bluetooth: hci: Fix stm32wb BLE behavior
Implementing HCI setup function to have a correct and proper
initialization procedure to fix #75318 issue

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
(cherry picked from commit 7ca2072ed0)
2024-08-06 12:45:25 -04:00
Robert Lubos
67a6217906 doc: migration-guide-3.7: Add entry about CoAP block API change
Add entry about the coap_get_block1_option() and
coap_get_block2_option() API change.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-08-06 12:44:17 -04:00
Robert Lubos
0807227653 net: coap: Parse more flag in coap_get_block2_option()
Parse the more flag in coap_get_block2_option(), so that the function
can be used not only with requests but also with replies (where the more
flag should not be ignored).

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-08-06 12:44:17 -04:00
Robert Lubos
bc1c81bc00 net: coap: Fix underlying type for block number
The block number in block1/2 options can be encoded on up to 20 bits
according to RFC 7959, therefore the underlying type used in helper
functions to retrieve the block number should be large enough to hold
the result. Therefore, replace the container for block number with
uint32_t instead of uint8_t.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-08-06 12:44:17 -04:00
Julia Azziz
c5472feea3 drivers: adc: fix missing ref_internal in adc_sam0
The .ref_internal field in the adc_driver_api
struct was previously unset.
Now it's set to the proper value, 1 V.

Signed-off-by: Julia Azziz <juliaazziz7@gmail.com>
(cherry picked from commit e7cfb05c72)
2024-08-06 12:42:22 -04:00
Georges Oates_Larsen
c5de8ab5d1 net: net_if: fix net_if_send_data for offloaded ifaces
Some offloaded ifaces have an L2, but lack support for
net_l2->send. This edge case is not handled by
net_if_send_data, resulting in a NULL dereference under
rare circumstances.

This patch expands the offloaded iface guard in
net_if_send_data to handle this edge case.

Signed-off-by: Georges Oates_Larsen <georges.larsen@nordicsemi.no>
(cherry picked from commit 1c79445059)
2024-08-06 12:41:41 -04:00
Benjamin Cabé
c394cdb0fa net: ptp: Properly handle second overflow/underflow
Fixes issues with net_ptp_time arithmetic where second
overflow/underflow would not be handled properly.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Signed-off-by: Adam Wojasinski <awojasinski@baylibre.com>
(cherry picked from commit 43b948f9a8)
2024-08-06 12:41:07 -04:00
Benjamin Cabé
ec8dc79124 net: ptp: Adjust clock using correct offset
Offset should be *subtracted* from current clock value, not added.
This was causing clock to accumulate error instead of actually
"converging".

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
(cherry picked from commit dff19c3ac6)
2024-08-06 12:41:07 -04:00
Maochen Wang
642b308bfc net: wifi: Fix the nm type check error
Fix the NM iface type check error, should use (1 << WIFI_TYPE_STA),
instead of WIFI_TYPE_STA. Same for WIFI_TYPE_SAP.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
(cherry picked from commit bf42164084)
2024-08-02 22:11:51 -05:00
Robert Lubos
3a6653a7a9 net: sockets: tls: Fix poll update event check
In case POLLIN is set, and no new application data has been detected,
the ztls_poll_update_ctx() should only return -EAGAIN if no other events
are available for the socket. Otherwise, the function may end up
busy-looping, in case for example POLLOUT is also monitored for the
socket.

Current check verifying that was wrong, as it caused to function to
return -EAGAIN even if some other events could've been reported for the
socket.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
(cherry picked from commit bfe958a7f1)
2024-08-02 22:11:03 -05:00
Manuel Argüelles
7d59805274 soc: s32k3: fix RAM retention
Initialize TCM and SRAM contents only after a destructive reset (e.g.
PoR reset). SRAM retains content during functional reset through a
hardware mechanism, therefore accesses do not cause content
corruption errors.

Fixes #75912

Signed-off-by: Manuel Argüelles <marguelles.dev@gmail.com>
(cherry picked from commit ec7289039b)
2024-08-02 22:10:45 -05:00
Yong Cong Sin
57c1f22178 arch: riscv: stacktrace: fix user thread stack bound check
According to the riscv's `arch.h`:

 +------------+ <- thread.arch.priv_stack_start
 | Guard      | } Z_RISCV_STACK_GUARD_SIZE
 +------------+
 | Priv Stack | } CONFIG_PRIVILEGED_STACK_SIZE
 +------------+ <- thread.arch.priv_stack_start +
                   CONFIG_PRIVILEGED_STACK_SIZE +
                   Z_RISCV_STACK_GUARD_SIZE

The start of the privilege stack should be:

  `thread.arch.priv_stack_start + Z_RISCV_STACK_GUARD_SIZE`

Instead of

  `thread.arch.priv_stack_start - CONFIG_PRIVILEGED_STACK_SIZE`

For the `end`, use the same equation of `top_of_priv_stack` in
the `arch_user_mode_enter()`

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
(cherry picked from commit 7db18ab721)
2024-08-02 22:10:08 -05:00
Benjamin Cabé
dc7129bd20 boards: disco_l475_iot1: fix arduino_i2c config
disco l475 board exposes I2C3 on standard Arduino Uno pins A4/A5,
not I2C1.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
(cherry picked from commit 0f05f58bf5)
2024-08-02 22:09:41 -05:00
Alberto Escolar Piedras
36940db938 release: Zephyr v3.7.0
Set the version to v3.7.0

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-07-26 13:17:55 +02:00
Alberto Escolar Piedras
07ed4b04e3 doc: release: Finalize v3.7.0 release notes and migration guide
Remove working draft status from the v3.7.0 release notes and migration
guide.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-07-26 13:17:55 +02:00
Alberto Escolar Piedras
0483685642 doc: release: Add v3.7.0 to the list of supported releases
Adds v3.7.0 to the list of supported releases.
The EOL data is currently set as 2.5 years after release
which is the minimum support period we claim.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-07-26 13:17:55 +02:00
Jan Kowalewski
51c39d7d3f doc: release-notes-3.7: add ctcc/nrf52840
Add ctcc/nrf52840 entry to newly added boards.

Signed-off-by: Jan Kowalewski <jkowalewski@cthings.co>
2024-07-26 10:01:28 +02:00
Jan Kowalewski
58f3714d01 boards: ct: ctcc: add M.2 picture and fix pictures quality
Provides a picture of M.2 version of a card and fixes quality
mPCIe version.

Signed-off-by: Jan Kowalewski <jkowalewski@cthings.co>
2024-07-26 10:01:28 +02:00
Alberto Escolar Piedras
257f9dcb09 doc: 3.7 migration guide: Remove empty headings
Remove headings without content

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-07-26 09:57:50 +02:00
Alberto Escolar Piedras
4b26e2698d doc: 3.7 migration guide: Minor fixes
Minor fixes to the migration guide

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-07-26 09:57:50 +02:00
Alberto Escolar Piedras
edb8409e01 doc: 3.7 release_notes: Remove empty headings
Remove headings without content

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-07-26 09:57:50 +02:00
Alberto Escolar Piedras
48f66a6997 doc: 3.7 release_notes: Remove mention of never introduced options
ac52bd629d removed from the
tree some kconfig options which weren't there for a full release.
Let's also not mention them in the release notes so we avoid
broken links.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-07-26 09:57:50 +02:00
Alberto Escolar Piedras
66feacc781 doc: 3.7 release_notes: Fix minor issues
Fix a few typos, minor grammar mistakes and simplify grammar
in a couple of sentences.
Also fix indentation in one list.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-07-26 09:57:50 +02:00
Thomas Stranger
cad3320cef doc: release notes: add 1-wire release notes for 3.7
No significant changes to 1-Wire master drivers for the 3.7 release.
Only the changes in the pull-up configuration of the zephyr,w1-gpio
driver added in the migration guide.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2024-07-25 12:25:49 +02:00
Tomi Fontanilles
45ae95241a modules: tf-m: fix git clone during build
As of v2.1.0 TF-M has updated to CMSIS v6 and switched from hosting
the sources to depending on the upstream repository, cloning it at
build time.

To prevent a download from happening during the build, CMSIS v6 sources
are pushed to Zephyr's fork of TF-M and the `CMSIS_PATH` CMake variable
is set to point to them.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-07-25 12:25:32 +02:00
Luis Ubieda
0910c86231 snippets: nus-console: doc: Remove invalid device-tree requirements
These were copied-over from cdc-acm-console by mistake. It's not valid
for this snippet, therefore it's being removed.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-07-25 09:26:20 +02:00
Jamie McCrae
2aa6b81b64 retention: Fix documentation issue
Fixes a minor issue with the return value in the documentation

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-07-25 09:25:21 +02:00
Lyle Zhu
b88948d4e7 doc: release-notes-3.7: Add info for bt_foreach_bond and HCI Driver
Add information support for BR key traversal by bt_foreach_bond.
Add information support for NXP IW612.

Change "Added support for NXP platforms." to
"Added support for NXP RW61x.".

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2024-07-25 09:24:04 +02:00
Rubin Gerritsen
c3dd1e8a74 Bluetooth: Host: Fix bt_disable() for IPC giving HCI Reset timeout
Some HCI drivers issue HCI reset when disabling, like the IPC HCI
driver. We need to keep the RX thread running to allow receiving
the command complete.

This commit postpones aborting the RX thread until this is done.
The issue happens started occuring after commit
d0e75ab87c.

Fixes #76202.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2024-07-25 09:14:39 +02:00
Pisit Sawangvonganan
d6afb8fb52 doc: releases: fix typo release-notes-3.7.rst
Utilize a code spell-checking tool to correct spelling errors
in `doc/releases/release-notes-3.7.rst` file.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-07-24 09:00:47 +02:00
Emil Gydesen
27d0aad70c doc: Bluetooth: Update LE Audio and iso in the BT features page
Added Isochronous channels to the controller
Moved Isochronous channels from LE Audio to the host
Changed the LE Audio to refer to the page where
the feature is more detailed described.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-07-24 08:59:24 +02:00
Chris Friedt
95d117259a doc: posix: options: explicitly note kconfig options
Note which Kconfig options activate which POSIX Options
and Option Groups.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-07-24 08:59:07 +02:00
Chris Friedt
3ec76e82eb doc: posix: options: make column size consistent
For some reason, when the "Supported" coumn of the posix option
documentation included large strings, it would distort the size
of the entire table.

Move blurbs about undefined behaviour and failing with ENOSYS
to a paragraph above the table, so that all tables have a
homogeneous size.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-07-24 08:59:07 +02:00
Chris Friedt
31c7773484 doc: posix: options: decrement header level
Decrement the header level of option group items so that they
are not listed in the outline.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-07-24 08:59:07 +02:00
Chris Friedt
d95d5a640d doc: posix: options: alphabetize order of options, groups
Reorder posix options and option groups so that they are
in alphabetical order in the documentation.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-07-24 08:59:07 +02:00
Johan Hedberg
099209b7d5 doc: release-notes-3.7: Add more details for Bluetooth HCI drivers
Make sure all added (and removed) HCI drivers are mentioned, and also
provide a reference to the new HCI driver API.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2024-07-23 12:16:32 +02:00
Johan Hedberg
541479c479 doc: migration-guide-3.7: Group Bluetooth sections together
Move Bluetooth HCI section under the existing Bluetooth top-level section.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2024-07-23 12:16:32 +02:00
Evgeniy Paltsev
f2259ccd7a doc: add release-notes for Synopsys / ARC architecture and platforms
Add release notes for ARC for 3.7 release

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2024-07-23 09:14:12 +02:00
Joakim Andersson
276850ca02 testsuite: Remove reference to deprecated ztest API
Remove reference to deprecated ztest_test_suite function from API
description.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2024-07-23 09:14:04 +02:00
Martin Jäger
5681d422fe doc: release-notes-3.7: add DAC release notes
Add newly added DACs for this release.

Signed-off-by: Martin Jäger <martin@libre.solar>
2024-07-22 18:04:22 +02:00
Filip Kokosinski
d472dd8864 doc/releases/release-note-3.7: add notes for Renesas RZ/T2M SoC
This commit adds release notes for the Renesas RZ/T2M SoC.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-07-22 18:03:39 +02:00
Martin Jäger
6a1a3658fe doc: release-notes-3.7: add Task Watchdog section
Mention the newly added shell for the task watchdog subsystem.

Signed-off-by: Martin Jäger <martin@libre.solar>
2024-07-22 18:03:14 +02:00
TOKITA Hiroshi
098376e036 doc: release: 3.7: Add note on RaspberryPi Pico related changes
Adds notes on changes about rpi_pico

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-07-22 18:02:51 +02:00
TOKITA Hiroshi
a004f44b9f doc: release: 3.7: Add note on Renesas RA related changes
Adds notes on changes about rpi_pico

- Add support for Renesas RA8 series

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-07-22 18:02:29 +02:00
Théo Battrel
f2b6490dee Docs: Bluetooth: Update qualification page
With the new Bluetooth Qualification process the QDID and link to
launchstudio are outdated, remove them.

Also remove the ICS listing as it hasn't been updated for a while.
Instead add a download link to the Zephyr Bluetooth Host ICS file.

Update the documentation configuration script to include the ICS file
(`*.pts`) in the external contents.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
2024-07-22 03:29:29 -04:00
Flavio Ceolin
f9de58efb9 pm: Do not select deprecated symbol
PM_DEVICE_RUNTIME_EXCLUSIVE was deprecated and its behavior
is achived with PM_DEVICE_SYSTEM_MANAGED=n.

Fixes #76037

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-07-22 03:28:54 -04:00
Benjamin Cabé
f9e3b65d3a doc: porting_guide: fix ReStructuredText in Kconfig.plank
Using <  > in the kconfig:option role was causing the <_board> section
to be omitted from the rendered docs, and using the role was useless
anyway as the option name was not a real one.
Use the fancy :samp: role instead to achieve the same goal.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-07-21 08:20:10 +02:00
Benjamin Cabé
52a9e7014a doc: release-notes-3.7: misc typo/spelling fixes
Minor fixups (spelling mistakes, formatting issues, ...)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-07-20 11:06:08 +02:00
Benjamin Cabé
6fb55e1417 doc: release-notes-3.7: Improve release highlights section
Added links to relevant doc pages when appropriate
Added a mention about PTP
Added a mention about PSA Crypto

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-07-20 11:06:08 +02:00