Commit graph

85,247 commits

Author SHA1 Message Date
Sylvio Alves
f433e95262 samples: ipm_esp32: use net core source from build ouput
Current ipm_esp32 sample code requires esp32_net_firmware.c file
as source input, which is generated after ipm_esp32_net build.
esp32_net_firmware.c was manually added as binary blob, which needs to
be removed from the repository.

This change modifies ipm_esp32 CMakeLists.txt to include the build
output of ipm_esp32_net as input source of ipm_esp32 build, allowing the
binary blob to be removed.

Current approach shall be updated during next release.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-02-16 21:30:35 +09:00
Jason Yuan
57e6532b0a doc: update documentation for shell library change
The SHELL_SUBCMD_DICT_SET_CREATE macro was previous changed in PR #51231
to require a string comment as part of the macro but the documentation
was not updated to reflect that. This patch updates the documentation to
relect the change in the shell library.

Signed-off-by: Jason Yuan <jasonyuan@google.com>
2023-02-16 20:31:46 +09:00
Oyvind Roti
3e5ac7a89d doc: posix arch: Fix trivial typos
Fix some trivial typos in the native POSIX architecture documentation.

Signed-off-by: Oyvind Roti <opensource@oyvindroti.com>
2023-02-16 19:25:52 +09:00
Daniel Leung
7c60b0d08e doc: release-notes/3.3: adds a few bits on IPM
This adds a note of IPM driver fixes.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-02-16 19:02:06 +09:00
Daniel Leung
e4903e0664 doc: release-notes/3.3: add bits on I3C
This adds a few bits on I3C subsystem.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-02-16 19:02:06 +09:00
Daniel Leung
51246d1ca8 doc: release-note/3.3: adds a few bits about serial and UART
This adds a few bits about changes in serial and UART drivers.
Also mentions a few new additions.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-02-16 19:02:06 +09:00
Daniel Leung
1093a6f24d doc: release-notes/3.3: add bits about PCIE
This adds a few bits mentioning newly introduced API and
modifications on the PCIE subsystem.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-02-16 19:02:06 +09:00
Martin Jäger
fcf1170290 doc: peripherals: can: fix can_filter mask variable name
The member variable was renamed from id_mask to mask in #51361, but
the docs were not adjusted accordingly.

Signed-off-by: Martin Jäger <martin@libre.solar>
2023-02-16 19:01:30 +09:00
Martí Bolívar
e03d6cf56f doc: release: devicetree API notes for v3.3
These were generated by looking at the logs for
include/zephyr/devicetree*.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2023-02-16 07:46:01 +09:00
Martí Bolívar
8e5ede2b62 doc: release: devicetree bindings changes for v3.3
This content was mostly generated with a script, but there were some
manual changes and additions done to the output in some cases.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2023-02-16 07:46:01 +09:00
Benjamin Cabé
3f009bd834 doc: Remove Google Analytics tracking code
This removes Google Analytics related code from the generated
documentation.
Fixes #54873

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-02-16 07:40:34 +09:00
Johann Fischer
4d4e25292f doc: release-notes-3.3: add release notes for USB support
Add release notes for USB support.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-02-16 00:29:22 +09:00
Marek Pieta
aed165df61 Bluetooth: host: Fix SC indication on encrypt change
The SC indication can be sent only if the GATT Service Changed is
enabled in the configuration. Change fixes build issues related to
implicit sc_indicate declaration when Service Changed is disabled.

Fixes: #54813

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
2023-02-16 00:21:07 +09:00
Marek Pieta
32e534c935 Bluetooth: host: Remove GATT Client dependency for storing CCC and CF
Change removes GATT Client dependency for storing CCC and CF on pairing
complete and identity resolved. These features are needed also if GATT
Client role is disabled.

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
2023-02-16 00:21:07 +09:00
Jonathan Rico
a0614b6cd1 Bluetooth: host: save CF and CCC values written before bonding
On bond establishment: save the CF and CCC data that have been written
before the peer was bonded.

On identity resolved: update the CF data to use the peer's identity address
instead of its private address (same as is currently done for the CCC).

Fixes #54770.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-16 00:21:07 +09:00
Jonathan Rico
3ad452663e tests: Bluetooth: reproduce gatt settings bug
Reproduce #54470.

- client connects
- client writes to CF & CCC
- client bonds
- server reboots

After this, we would expect to have the CCC and CF values be correctly
restored from settings but they are not.

Additionally add the same test with BT_PRIVACY=y, which shows that the
feature is broken with that config (fixed in a subsequent commit).

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-16 00:21:07 +09:00
Jonathan Rico
5d46a0c398 Bluetooth: host: fix subtle bug in db_hash_process
Fixes a bug introduced in the previous refactoring: we would always mark
all peers as change-unaware. Now we only do so when the hash has been
recalculated.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-16 00:21:07 +09:00
Jakub Rzeszutko
9fdc86be76 doc: release-notes: shell release notes for v3.3.0
Add release notes for shell subsystem.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
2023-02-15 22:13:52 +09:00
Johan Hedberg
c4c8583814 doc: release-notes: Mention rpl_crb board
Mention new Intel Raptor Lake CRB support in Zephyr 3.3 release notes.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-02-15 21:19:50 +09:00
Rodrigo Peixoto
1303a1f1e3 doc: release notes: zbus
Add the new subsystem zbus information to Zephyr 3.3 release notes.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2023-02-15 21:19:18 +09:00
Fabio Baltieri
c9225e4365 boards: arm: arduino_portenta_h7: fix wrong code block tag
Fix wrong code-block tag in the board documentation.

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
2023-02-15 11:43:25 +01:00
Flavio Ceolin
b3f90283c5 doc: release-notes: Security related notes
Added information about CVEs fixed during this release.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-02-15 19:22:24 +09:00
Flavio Ceolin
68d421e73c docs: security: Add published CVEs information
Add information about 3 CVEs recently published.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-02-15 19:22:24 +09:00
Kumar Gala
2e94de0401 boards: arm: nuvoton npcx: Update docs to say Nuvoton
Add Nuvoton vendor name so this shows up in the full supported
board list.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
2023-02-15 19:21:33 +09:00
Jakub Rzeszutko
44488f1cf6 shell: fix documentation link
Correcting the reference to the commands execution drawing.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
2023-02-15 01:26:47 +09:00
Andrzej Głąbek
81aaf4a365 doc: release: Add v3.3.0 notes for ADC, I2S, PWM, and Nordic HAL/boards
Add release notes related to ADC and PWM drivers, Nordic HAL, and
boards featuring nRF SoCs. Nothing relevant to be added for I2S.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-02-15 00:10:09 +09:00
Benjamin Cabé
9acb6e6049 MAINTAINERS: Add B. Cabé as doc maintainer & doc infra collaborator
Adding myself, kartben, as a doc maintainer & doc infra collaborator

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-02-14 23:55:09 +09:00
Filip Kokosinski
599eddcfaf doc: release-notes: fix RISC-V release notes for v3.3.0
This commit fixes one RISC-V release notes entry for Zephyr v3.3.0.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2023-02-14 23:49:49 +09:00
Gerard Marull-Paretas
38a9833958 doc: redirects: add old sockets page to redirects
The BSD sockets page was moved a while ago when documentation was
reorganized (reported by Nordic technical support). This patch adds a
redirect so that old links keep working just fine.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-02-14 23:49:40 +09:00
Benjamin Cabé
0eb9c51f5a doc: Improve navigation towards LTS documentation.
Fixed the version selector so that it links to latest version of the LTS
release instead of 2.7.0.
Fixes #54786

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-02-14 14:02:12 +01:00
Sylvio Alves
839050b994 boards: esp32: add default HEAP for all ESP32 boards
In order to avoid missing k_malloc options, add default
HEAP value for all boards.

Fixes #54428

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-02-14 20:53:22 +09:00
Kevin Townsend
511eab6a3d doc: release-notes: Add Aarch32, TF-M v3.3.0 notes
Add release notes for Aarch32 and TF-M for the 3.3.0 release.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
2023-02-14 20:45:54 +09:00
Martin Jäger
da81d65ad3 doc: release-notes: add DAC release notes for v3.3
Add DAC related release notes for Zephyr v3.3.0.

Signed-off-by: Martin Jäger <martin@libre.solar>
2023-02-14 20:43:45 +09:00
Alexander Wachter
89efc7099a hwinfo: add release-notes for 3.3.0
Release-notes for 3.3.0 release

Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
2023-02-14 20:43:17 +09:00
Andy Ross
bf3f9f011b doc: release-notes: v3.3: Kernel and Timer subsystem changes
Notes for user-visible API and behavior changes

Signed-off-by: Andy Ross <andyross@google.com>
2023-02-14 20:43:05 +09:00
Sylvio Alves
918cd78f8f doc: release: 3.3: add notes about hal_espressif
Add 3.3.0 release notes for HAL updates.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-02-14 20:42:56 +09:00
Krzysztof Chruscinski
f69c880855 doc: release notes: Add entries for the logging subsystem
Updated release notes with the logging section.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2023-02-14 20:42:31 +09:00
Gerson Fernando Budke
b7fde5359f doc: release: 3.3: Add notes about Management: UpdateHub
Added release notes related to UpdateHub.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2023-02-14 20:41:55 +09:00
Gerson Fernando Budke
7f47828190 doc: release: 3.3: Add notes about Atmel
Add 3.3.0 release notes for Atmel.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2023-02-14 20:41:55 +09:00
Andrzej Głąbek
31c11a5dc0 drivers: nrf_rtc_timer: Fix handling of COMPARE events in set_alarm()
This is a follow-up to commits cf871aec64
and 205e684958.

It turns out that the current implementation of the nrf_rtc_timer may
still fail to properly handle a timeout if that timeout is set in very
specific conditions - when a previously set timeout is about to expire.
When that happens, the new timeout is handled 512 seconds later (when
the system timer overflows) than it should be.

A recently added nrf_rtc_timer test case (test_tight_rescheduling)
exposes this problem and this commit fixes it by adding examination
of COMPARE events that appear during setting of the CC register value
for a given timeout.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-02-14 08:28:28 +01:00
Andrzej Głąbek
d6ba49e298 drivers: nrf_rtc_timer: Rename set_absolute_alarm() to set_alarm()
This function name is misleading as the absolute time values handled
by the driver are 64-bit and this function receives a 32-bit parameter,
which is supposed to be a CC register value, not the target time.
Correct the name of this function and its parameter, and remove a now
unnecessary masking from its body.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-02-14 08:28:28 +01:00
Andrzej Głąbek
8e8644ba6a tests: drivers: nrf_rtc_timer: Add a test case to check rescheduling
Add a test case that schedules an alarm and then, after a delay that
is changed in every iteration, tries to reschedule it to one cycle
later.
This reveals a problem in the current nrf_rtc_timer implementation
that in certain conditions a scheduled timeout may be missed and
its expiration is handled 512 seconds later (when the system timer
overflows).

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-02-14 08:28:28 +01:00
Torsten Rasmussen
5786b63e6c doc: release notes: added entry regarding app controlled image config
Added entry on application specific configurations of sysbuild
controlled images.
Ref: https://github.com/zephyrproject-rtos/zephyr/pull/51166

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2023-02-13 23:58:58 +09:00
Andrei Emeltchenko
fedec33514 doc: usb: Correct include path uhc.h
Fixes broken link to the USB HC API header file.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-02-13 23:58:23 +09:00
Erwan Gouriou
6de61d1ab2 doc: release_notes v3.3: Shields additions
Update for shields related changes during this release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2023-02-13 23:57:30 +09:00
Erwan Gouriou
fc3405281b doc: release_notes v3.3: STM32 Platform additions
Update for STM32 related changes during this release.
I focused on changes that could have impact for users.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2023-02-13 23:57:30 +09:00
Jonathan Rico
2a15a63509 Bluetooth: host: don't store hash in db_hash_gen()
Move out the storage of the calculated hash from the fn that calculates
it (db_hash_gen).

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00
Jonathan Rico
b60b0f3505 Bluetooth: host: don't overwrite GATT DB hash before settings_load
Previously, if the app registered a bunch of services at boot before
calling `settings_load()`, then the hash would be silently overwritten.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00
Jonathan Rico
e8f3ef29a4 Bluetooth: host: store GATT change-aware status in settings
The spec says we have to persist the change-aware status of bonded peers
between resets.
This stores it at the end of the CF storage that we currently have.

Fixes #54173

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00
Jonathan Rico
4772e5695f Bluetooth: host: Store Client Supported Features on write
Store the Client supported features value when it is written to, instead of
only on disconnection/identity resolved.

Works around the situation where a user bonds, CF is written and the device
is abruptly powered off, discarding the CF value, but keeping the bond.

Fixes #54172.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00