Ensure the USB clock is enabled before initializing the
controller by invoking the pre_enable hook. This avoids
initialization failures when the HAL has not yet configured
the clock.
Adds shutdown hook to allow interrupt and clock deinit.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Add SPI support for board RZ/N2L-RSK, RZ/T2M-RSK
Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
Add SPI driver support for Renesas RZN2L, T2M
Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
Add support for USB on STM32WBA6x series, along with a tiny rework of how
the st,stm32u5-otghs-phy is handled to make the code more generic by
actually consuming DT information.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add missing nodes for USB feature to STM32WBA6x DTSI.
(Note: only WBA65 DTSI exists today, but USB is available in other SoCs of
the series - this should be reworked later)
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add missing OTGHS_SEL macro to STM32WBA clock header. This macro applies
only to certain SoCs of STM32WBA6x series.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
MCUMGR_GRP_FS_HASH_SHA256 now already selects Mbed TLS and its PSA Crypto
support if TF-M is not enabled in the build, so there is no need to do
that in test configuration files.
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
The long-term goal of Zephyr is to rely exclusively on PSA Crypto API for
crypto support. At the same time Mbed TLS is going to remove legacy crypto
support starting from the next relase (v4.0).
Therefore this commit removes usage of legacy Mbed TLS crypto in favor
of PSA Crypto API. Mbed TLS will still be used in case of a build where
TF-M is not enabled.
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
A recent change in OpenOCD deprecates ST-Link HLA interface requiring
changes in some board OpenOCD configuration files in the Zephyr tree.
Since this deprecation, in order to support old and recent OpenOCD
tool we needed to change of debug driver interface for these boards,
potentially causing trouble to user to have a recent OpenOCD and
an old ST-Link adapter firmware. Therefore add an entry in the migration
guide to give some hints on the potential issue and how to address
it.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
This change aims to address a compatibility issue with recent OpenOCD
pre-release and what is planned in OpenOCD v1.0.0 planned end of 2025.
OpenOCD commit 34ec5536c0ba ("stlink: deprecate HLA support") [1] was
merged in December 2024 after release tag 0.12.0 and before coming
release v1.0.0. It deprecates the legacy HLA driver interface (also
called transport) in favor to the generic DAP interface that is
supported by ST-Link firmware v2.1 (that is version v2j24) and later.
Since the referred commit, OpenOCD config script must source a new
config file (interface/stlink-hla.cfg) in order to select hla_swd
transport. This change breaks many ST-Link based OpenOCD config files
of Zephyr. Alternatively, already existing interface/stlink-dap.cfg
can be used together with dapdirect_swd interface to use direct DAP
interface.
To overcome the issue and support older and newer OpenOCD releases,
this change uses OpenOCD native board config script files when
available or if none, we select the dapdirect_swd transport ID that
is supported since a long time and still maintained thank to
OpenOCD native interface/stlink-dap.cfg config script file.
One may potentially face connection issues if using both a recent
OpenOCD tool and an ST-Link adapter that embeds a old ST-Link
firmware v1.x. This ST-Link firmware only supports HLA interface.
It is not shipped by ST in ST-Link adapter since 2015. This situation
however may happen with old STM32 L0/L1/L4/F4 Nucleo/Discovery
boards or with old ST-Link adapter devices. ST-Link firmware v1.0 do not
support DAP direct SWD interface. In such a case, either upgrade the
ST-Link firmware (see STM32CubeProgrammer guide), or revert the change
made here to explicitly use hla_swd transport based on stlink-hla.cfg.
Alternatively, use an older OpenOCD release which may not be desired.
Link: https://sourceforge.net/p/openocd/code/ci/34ec5536c0ba3315bc5a841244bbf70141ccfbb4/ [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Adjusted GET_ARG_N and GET_ARGS_LESS_N to use UTIL_CAT instead of simple
concatenation. This allows to use a macro as the argument N instead of
only numbers.
Adjusted the unit tests to showcase this.
Signed-off-by: Greter Raffael <rgreter@baumer.com>
Fixes#97473 by:
- Marking the test as passed if the hardware executes user threads for a
while without triggering a stack corruption, instead of waiting
indefinitely.
- Adding a timeout to ensure the test exists gracefully if the issue is
not reproduced.
Also fixes a stack corruption issue on QEMU targets, caused by
insufficient stack size and revealed by the timer change.
Signed-off-by: Sudan Landge <sudan.landge@arm.com>
Allow the emulator to be set to an arbitrary UTC time, instead of being
locked to reporting the current system uptime as UTC.
Signed-off-by: Jordan Yates <jordan@embeint.com>
Provide an escape hatch from the GNSS API requirement that a device
be active to run the configuration `get` functions. This is useful in
the context of an emulator device to query how other software modules
have configured the GNSS.
Signed-off-by: Jordan Yates <jordan@embeint.com>
Add an option for the GNSS fix state reported by the emulated GNSS modem
to be manually configured by test code, instead of being hardcoded to
always achieve a fix of hardcoded parameters after 5 seconds.
Signed-off-by: Jordan Yates <jordan@embeint.com>
GATT subscription in conn_stress test was failing and stalling the test
due to lack of TX buffers. Retry mechanism added as a workaround.
Removing this workaround would make the test fail due to deadlocks,
and require allocating more buffers with CONFIG_BT_L2CAP_TX_BUF_COUNT
set to 10 as a workaround.
Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
led0 in this board is active low according to the schematic.
Tested on a XIAO-nRF54L15 and a XIAO-nRF54L15 sense.
Signed-off-by: Ricardo Cañuelo Navarro <rcn@igalia.com>
8498c39e13 seems to have introduce
an incorrect dependency which prevents the RTC timer from
been built if any of the RTC's are enabled.
It should only depend on the rtc1.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Only uart2 and uart6 were considered before, so if any other uart
was used, it wouldn't work and even worse, it would crash when
trying to access it because the RDC wasn't configured.
Signed-off-by: Diego Herranz <diegoherranz@diegoherranz.com>
As per OpenThread API documentation, it is recommended for a Border Router
to use this functionality
Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
Instead of using a mutually exclusive group for sysbuild/no-sysbuild
argparse arguments, use the argparse.BooleanOptionalAction to allow passing
multiple arguments, where the last one is applied.
This is consistent with for example gcc compiler flags.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
- We want to reuse ext_advs when first stopped and restarted
- This ensures SID is the same
- Fixes CAP/CL/ADV/BV-03-C
Signed-off-by: Alexander Svensen <alexander.svensen@nordicsemi.no>
There's a bunch of convenience macros in sys/util.h that are intended to
help out with translating array indices and determining if an element is
part of an array or not. Use those instead of custom code.
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
When RISCV_ISA_EXT_A is enabled,
ATOMIC_OPERATIONS_BUILTIN automaticly enabled,
we don't need to do it at the soc level again.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Use single evaluation clamp for few input drivers. No reason not to,
make some sense for the input_kbd_matrix call since one of the arguments
is a function.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Fix -Wsometimes-uninitialized warning by initializing data_opt directly
from fifo_wmark_cfg->opt. At this point in the code flow, fifo_wmark_cfg
is guaranteed to be non-NULL because we can only reach this code after
fifo_full_irq is true, which requires fifo_wmark_cfg to be non-NULL.
Added an assertion to document this invariant.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Added mikrobus_i2c, mikrobus_spi and mikrobus_header node labels
to FRDM-MCXN947 device tree board definition, allowing compatible
shield boards to be used. Also add new FlexComm SPI pinmux for the
LPSPI6 on LPFLEXCOMM6 and enable required GPIO3 and GPIO5.
Signed-off-by: Stephan Linz <linz@li-pro.net>
Added arduino_serial, arduino_i2c, arduino_spi and arduino_header
node labels to FRDM-MCXN947 device tree board definition, allowing
compatible shield boards to be used. Also extend the board YAML file
with related support tags arduino_gpio, arduino_i2c, arduino_serial
and arduino_spi.
Signed-off-by: Stephan Linz <linz@li-pro.net>
When CONFIG_WIFI_NM_HOSTAPD_AP is enabled, input 'wifi reg_domain', there
is error log shows 'zephyr_get_hapd_handle_by_ifname: Unable to get hapd
hanl, Interface ml not found'. The reason is the parameter dev of
hostapd_ap_reg_domain is from STA not SAP interface. Getting the correct
SAP dev can fix this issue.
Signed-off-by: Maochen Wang <maochen.wang@nxp.com>