Commit Graph

105337 Commits

Author SHA1 Message Date
Seppo Takalo 41ee35ae8b net: lib: coap_client: Don't clear internal structures on response
When response is received and handled, don't just clear the structure
but instead mark it as ongoing=false.
So if we later on receive a duplicate response for it, we can still
respond with Ack or Rst.

This is achieved by using release_internal_request() when we don't
expect any response for it and reset_internal_request() when we really
fill up a new request.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Seppo Takalo 107dc9b96d tests: coap_client: Add testcase for receiving RST
When server responds with CoAP RESET, we should inform the
client and stop the request.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Seppo Takalo 05a6ba678e tests: coap_client: Add testcase for observation
Add test for ongoing observation and cancellation.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Seppo Takalo 237b26c44a tests: coap_client: Test for operating on socket while another fails
CoAP client should be able to push data through functioning socket
while another sockets is failing or reporting poll() errors.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Seppo Takalo fc51fa491f tests: coap_client: Add testcase for Ack failure
Add testcase where sending Ack to incomming Confirmable message fails.
This should be reported to application as now the server is unaware
that transmission have succeeded, so we cannot thread it as success.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Seppo Takalo 5559a520c9 tests: coap_client: Improve retry testcases
Add testcases for testing client's retry behaviour.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Seppo Takalo 120aabbb8f tests: coap_client: Add test when separate response is lost
Test a scenario where Ack is received but the actual response
is not coming.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Seppo Takalo 83bc1fcb46 tests: coap_client: Add test for duplicate response
Add test where we receive same UDP packet twice.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Seppo Takalo ca67f51170 tests: coap_client: Improve socket stubs
* Use sys_rand_get() and seed the CoAP library, so our MIDs are
  random.
* Set socket events per socket, so we don't accidentally receive
  on wrong socket
* Reply with correct tokens

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-11-16 13:33:28 -05:00
Daniel DeGrasse 0be5dcd25d arch: arm: add MPU definitions for all flash and SRAM region sizes
Add definitions for all possible flash and SRAM region sizes for ARMv7
MPU. Also, correct some of the SRAM size checks to use <= instead of ==,
to be consistent with the remainder of the file

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-11-16 13:33:15 -05:00
Declan Snyder 6d1a3bb36e boards: rd_rw612_bga: Move FCB in tree
Move the FCB to be in tree for this board instead of in the NXP HAL.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-11-16 13:32:48 -05:00
Maximilian Deubel 9bed2b7a98 scripts: logging: dictionary: Add support for size_t %z format specifier
This patch adds support for the size_t %z format specifier to the
dictionary parser.
It's the correct format to use for size_t types in modern C,
but it's not supported in python directly.

Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
2024-11-16 13:32:22 -05:00
Nidhal BEN OTHMEN 92a7ddfb56 boards: st: Update nucleo_wba55cg dts file
Update nucleo_wba55cg dts file to use pinctrl dtsi file of WBA55
instead of WBA52.

Signed-off-by: Nidhal BEN OTHMEN <nidhal.benothmen@st.com>
2024-11-16 13:32:13 -05:00
Pieter De Gendt 175bfb4bc9 tests: net: lib: lwm2m: interop: Fix strip-with-multi-characters (B005)
All strip functions remove any of the provided characters instead of a
prefix/suffix. This is likely a bug.

See https://docs.astral.sh/ruff/rules/strip-with-multi-characters/

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-11-16 13:32:02 -05:00
Marcin Niestroj 8f14c68660 boards: st: nucleo_u5a5zj_q: configure PD14 as SPI1 nCS
ST ZIO connector is Arduino Uno compatible. Arduino SPI pins are placed on
D10-D13 pins, where D10 is SPI nCS pin. This pin is connected with PD14 of
STM32U5A.

According to schematics of this Nucleo board [1]:

  Due to muxing constrainte, the SPI_NSS is not available as an alternate
  on this IO, so this pin is affected with an I/O function to do the Chip
  Select

This means that software control of GPIO is needed to make use of this SPI
interface on regular SPI signals on Arduino connector. Reconfigure
SPI1 (used as Arduino SPI) interface to account for that.

Note that previously configured PE12 is only available on ST ZIO and ST
Morpho connectors, not on Arduino connector.

Update documentation as well, which was referencing PA4 as nCS signal (used
on some other Nucleo boards).

[1] https://www.st.com/resource/en/schematic_pack/mb1549-u5a5ziq-c04-schematic.pdf

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-11-16 13:31:53 -05:00
Andrej Butok a730d9abad boards: nxp: fix s26ks512s0 flash write-block-size
- Sets s26ks512s0 flash write-block-size to correct 256KB.
- Optimizes MCUboot partitions to fit the correct write-block-size.

Fixes #80284

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-11-16 13:31:35 -05:00
Jamie McCrae ed8f613e55 cmake: dts: Use temporary file for dts.cmake
Uses a temporary file for dts output then uses CMake to copy to the
correct file if it has changed. This prevents a ping-pong issue when
sysbuild is used of configuring and building cycle when nothing has
changed and there is sysbuild code which loads in the devicetree
data from an image

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-11-16 13:31:02 -05:00
Alberto Escolar Piedras 2324d5daa1 doc nrf54l15bsim: Clarify the L10 and L05 are also covered
Clarify that one can simulate equally well the nRF54L10 and L05
variants with this target.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-11-16 13:30:49 -05:00
Alberto Escolar Piedras 5e6c28bfa3 doc nrf54l15bsim: Remove experimental warning
This target simulated is reasonably tested.
Let's stop warning about it being experimental.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-11-16 13:30:49 -05:00
Marvin Ouma 05196e38a9 tests: posix: common: separate posix barriers to standalone test
posix.common contains testsuites that can be separated into smaller
groups of tests. This change moves barrier into a singular
testsuite at tests/posix/barriers app directory.

Signed-off-by: Marvin Ouma <pancakesdeath@protonmail.com>
2024-11-16 13:30:36 -05:00
Nidhal BEN OTHMEN a199f7f9d3 tests: bluetooth: tester: Fix bluetooth tester for nucleo_wba55cg
Fix compilation error by specifying usart1 to be used for uart-pipe.
Add a board-specific configuration file to disable the console,
so, the usart1 will be used only for bluetooth and to specify
the BT_HCI_TX_STACK_SIZE.

Signed-off-by: Nidhal BEN OTHMEN <nidhal.benothmen@st.com>
2024-11-16 13:29:39 -05:00
Anas Nashif cfc232fa32 twister: stats: fix platform stats
Fix wrong reporting about where testcases were executed.

We have:

INFO    - 1130 of 1130 executed test cases passed (100.00%) on 0 out of
total 860 platforms (0.00%).

which is obviously wrong.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-16 13:29:23 -05:00
Carles Cufi a3cc532221 actions: manifest: check additional metadata in projects
See https://github.com/zephyrproject-rtos/action-manifest/pull/14.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-11-16 13:28:58 -05:00
Mahesh Mahadevan 0006ba8ee3 release: Zephyr v4.0.99
Set the version to v4.0.99

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-11-16 13:40:34 +01:00
Mahesh Mahadevan 8469084dfa release: Zephyr v4.0.0
Set the version to v4.0.0

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-11-15 17:27:32 -06:00
Mahesh Mahadevan c5b27d948a doc: release: Finalize v3.7.0 release notes and migration guide
Remove working draft status from the 4.0.0 release notes and
migration guide.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-11-15 17:27:32 -06:00
Mahesh Mahadevan 95633cf68c doc: release: Add v4.0.0 to the list of supported releases
Add v4.0.0 to the list of supported releases.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-11-15 17:27:32 -06:00
Mahesh Mahadevan 5c31f61d51 doc: release-notes-4.0: Update the DAC section
This incorrectly had references to timers and watchdog
related items.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-11-15 15:09:56 -08:00
Jilay Pandya 955d7974d5 docs: release notes: add 80875 to known issues
add #80875 to known issues in release notes 4.0.0.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2024-11-15 16:32:41 -06:00
Mahesh Mahadevan 91c3768b25 doc: release-notes-4.0: Release notes cleanup
1. Move deprecated items to the deprecated section.
2. Fixed a portion of a sentence that was deleted.
3. Miscellaneous cleanup.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-11-15 16:03:40 -06:00
Andrzej Głąbek c7a1b53f82 doc: release-notes-4.0: Add a few Nordic related entries and an ADC one
Add notes for Nordic HAL and other nRF related stuff plus one more ADC
entry.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2024-11-15 16:03:40 -06:00
Flavio Ceolin 659eec8d85 doc: release-notes-4.0: Add CVE-2024-11263 info
Add CVE-2024-11263 to release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2024-11-15 13:03:16 -06:00
Flavio Ceolin 7aa7e894bc doc: security: Disclose CVE-2024-11263
Disclose information about published CVE

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2024-11-15 13:03:16 -06:00
Benjamin Cabé 275f44730e doc: releases: re-arrange API Changes section
some entries were not properly put under either
Removed or Deprecated section. This commit
fixes that.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Benjamin Cabé c1d150934a doc: releases: use correct compatible for zephyr.gpio-steppers
The current name of the compatible is zephyr,gpio-steppers

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Benjamin Cabé 2be735c558 doc: releases: fix galaxycore,gc2145 compatible
fix typo in compatible name

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Benjamin Cabé 7fa0d83966 doc: releases: drop empty subsections from migration guide
Drop sections with no updates

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Benjamin Cabé 657229f72e doc: releases: fix typos in MCUboot section
Fix minor typos

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Benjamin Cabé 36ccae904d doc: releases: drop empty lib/subsystems subsections
Drop sections with no updates

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Benjamin Cabé a3978892c3 doc: releases: drop empty driver subsections
Drop sections with no updates

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Benjamin Cabé 8f0a4bd323 doc: releases: fix Devicetree spelling
Spell Devicetree with a capital D

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Benjamin Cabé c4b00f7bea doc: releases: add more release highlights for 4.0
This adds a few more entries to hopefully complete the list of
4.0 highlights.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-15 13:03:02 -06:00
Chris Friedt 1bf22569fc doc: release-notes-4.0: add posix api release notes
Add POSIX API release notes for new features and enhancements
since v3.7.0 .

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-11-15 11:10:20 -06:00
Chris Friedt 95f4912e72 doc: posix: options: correct anchor for thread safe functions
Previously, the anchor for `_POSIX_THREAD_SAFE_FUNCTIONS` was
`posix_thread_safe_functions` but it should have been
`posix_option_thread_safe_functions`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-11-15 11:10:20 -06:00
Yves Vandervennet 214837fa2b doc: release: NXP contribution
Adding NXP's contributions to v4.0

Signed-off-by: Yves Vandervennet <yves.vandervennet@nxp.com>
2024-11-15 11:09:10 -06:00
Gerson Fernando Budke d71d4c0e80 drivers: rtc: sam: Fix missing function
The #64939 introduced a few convenience function like
rtc_utils_validate_rtc_time. However the PR did not replace all
occurrences which result on a build error. This add the missing
header include to remove a building warning and replace the old
function by the new one.

Fixes #81454

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2024-11-15 11:08:58 -06:00
Alberto Escolar Piedras 24c2c43bcd boards nrf52_bsim: Fix sample used as example
Let's fix the sample used in the example. The peripheral_hr and
central_hr are meant to be run with each other.
Let's also use the :zephyr:code-sample: directive to refer to the
samples so we get a link.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-11-15 08:10:08 -06:00
Ahmed Adel 8034de73d5 doc: services: debugging: Remove unwanted reference link
Remove unwanted reference link to the section (Usage)
in ARM Coresight Trace Deformatter that shows up in
the main Debugging documentation page, by lowering
the level of (Usage) heading from ##### to *****

The commit also has a typo fix.

Signed-off-by: Ahmed Adel <a.adel2010@gmail.com>
2024-11-15 08:09:53 -06:00
Jilay Pandya a482884751 doc: release: doc stepper API as major enhancement
Add entry in "Major enhancements with this release include:" for
stepper device driver subsystem.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2024-11-15 08:09:39 -06:00
Lukasz Mrugala 7092335c11 doc: Add information on Twister Statuses
Currently, Twister Statuses are only useful for
the initiated, save for the very basics.
This is in opposition to the fact
that they are the main thing end users take into
account when checking their Twister run reports.

In order to make Statuses more useful for the end user,
a new documentation page has been created,
elucidating the full meaning of all Statuses.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2024-11-15 08:09:28 -06:00