Configure the HAS tester to advertise preset synchronization support by
setting preset_sync_support=true in bt_has_register(). This passing the
PTS tests, even if we fake the synchronization. The test does not require
an additional lower tester, so there is no other IUT to synchronize with.
Additional any actual inter-device synchronization is expected to be
implemented by the application..
Signed-off-by: Alex Ciascai <alexandru.ciascai@nordicsemi.no>
Since, commit 2f7d13840f ("kconfig: Fix CONFIG_FLASH_LOAD_OFFSET for non-0
starting addresses"), the way to compute offsets in the flash memory has
changed.
With this change, the arguments passed to siwx91x_isp_prepare.py were not
correct anymore and "west flash" ended up with:
ERROR: Waiting for flashloader failed: 108 - Checksum error
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Detect the kernel and libc heaps through the total size of the heap,
instead of comparing block counts to total sizes.
Signed-off-by: Jordan Yates <jordan@embeint.com>
Rework flash simulator to use per-instance configuration,
replacing single global state and enabling support for
multiple independent simulator instances.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Use `Z_HEAP_MIN_SIZE_FOR` on the system heap. This fixes allocations
failing when there is only a single small user of the heap defining
a symbol like the following, even when only allocating 16 bytes.
```
config HEAP_MEM_POOL_ADD_SIZE_{X}
int
default 64
```
Signed-off-by: Jordan Yates <jordan@embeint.com>
Add a testcase that outputs the overhead of heaps declared multiple
different ways, by printing the largest single allocation that can be
made from the heap.
```
START - test_heap_overhead
Base | Raw | Z_HEAP_MIN_SIZE | Z_HEAP_MIN_SIZE_FOR
64 | 12 | 60 | 68
128 | 68 | 124 | 132
256 | 196 | 244 | 260
512 | 444 | 500 | 516
1024 | 956 | 1004 | 1028
2048 | 1972 | 2028 | 2052
```
Signed-off-by: Jordan Yates <jordan@embeint.com>
test
Add a macro to approximate the heap size required by a heap in order for
an allocation of N bytes to succeed. The intent is to provide a way for
small heaps to more accurately specify their sizes.
Signed-off-by: Jordan Yates <jordan@embeint.com>
Always put the inclusion of snippets-rodata.ld into the normal rodata
section no matter pinned sections are used or not. No reason to put it
in pinned sections.
Signed-off-by: Dong Wang <dong.d.wang@intel.com>
The sample does not set or print separate inverting and
non-inverting gains.
Remove the parts related to the description of the two gains.
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
Update the harness to:
- Accept a gain token that is either an integer or a fraction:
(?:\d+|\d+/\d+)
- Match the full printed line including the (@gain: …) token
- Remove the invalid expectations for "Set opamp inverting/
non-inverting gain"
This aligns CI with the sample’s actual output.
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
Whenever a buffer descriptor or one of its properties is
referenced, either in macros, struct declarations or variable
declarations, use the spelling 'rx_bd'/'RX_BD'/'tx_bd'/'TX_BD'
instead of 'rxbd'/'RXBD'/'txbd'/'TXBD'.
Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
Add fixes for ZynqMP-based targets:
- Consider the retrofitted 64-bit RX/TX buffer descriptor ring
base address registers which didn't exist on the Zynq-7000 yet.
- Properly tie off the unused set of RX/TX BD ring base address
registers as described in the ZynqMP TRM (UG1085 v2.4, chap. 34:
'GEM Ethernet', 'Programming Model', 'Initialize the controller',
p. 1064): indicate that there's no data to be transmitted via the
unused TX BD ring, and that no data can be placed via the unused
RX BD ring.
- Change the DMA layout: instead of having both the BD rings and
the packet buffers in non-cached memory or the Zynq's OCM, place
the BD rings in uncached memory but place the actual RX/TX packet
buffers in cached memory instead.
- Add the required cache maintenance operations for this layout.
- Select the required facilities for nocache memory and cache
maintenance support in the driver's Kconfig file.
Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
In tickless mode, advance last_count in whole tick increments rather
than setting it to the raw timer value. This prevents sub-tick ISR
latency from accumulating in last_count, which would otherwise manifest
as long-term timer drift.
The fix inverts the conditional logic so that:
- Tickless mode: last_count += elapsed_ticks * CYC_PER_TICK
- Tickful mode: last_count = now (unchanged behavior)
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Add optional support for controlling a hardware enable pin via devicetree.
When an enable GPIO is provided, the driver configures it as an output and
toggles it in stepper enable/disable so boards can energize and de-energize
the driver stage reliably.
If no enable GPIO is present, behavior is unchanged.
Signed-off-by: Andre Stefanov <mail@andrestefanov.de>
Unchecked indexing into intc_gpio_data.cb could lead to overflow in
the following functions:
- stm32_gpio_intc_set_irq_callback
- stm32_gpio_intc_remove_irq_callback
Fixeszephyrproject-rtos/zephyr#103573
Signed-off-by: Moritz Gericke <xmoexdev@gmail.com>
Oops. #103436 tried to make the bootloader select the correct specs file
using CONFIG_PICOLIBC, but that variable wasn't set while configuring the
bootloader. Pass that from the Zephyr build into the bootloader build.
This also uncovered a gap in the target_compile_options setting when
picolibc is not the default C library -- the bootloader was getting linked
with --specs=picolibc.specs but it wasn't getting compiled with that flag,
so compilation was happening using the default C library headers.
Signed-off-by: Keith Packard <keithp@keithp.com>
Adds simonguinot as collaborator for the LPC11U6x SOC support
and lpcxpresso11u68 board, so they can help maintain this platform
support.
Signed-off-by: Derek Snell <derek.snell@nxp.com>
Adds henrikbrixandersen as collaborator who contributed the KE1xF SOC
support and twr_ke18f board, so they can help maintain this
platform support.
Added in https://github.com/zephyrproject-rtos/zephyr/pull/16049
Signed-off-by: Derek Snell <derek.snell@nxp.com>
Change comment from "increasing" order to "decreasing"
since the 0th indexed Pstate must have the highest
threshold.
Signed-off-by: Sean Kyer <sean.actor@gmail.com>
Add property for overriding the maximum number of hardware message buffers
used for RX filters on a per-instance basis.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
The maximum number of RX filters is limited by the number of message
buffers, which cannot exceed 128. Add a range to the Kconfig option
imposing this.
Remove artificial build-time check on CONFIG_CAN_MCUX_FLEXCAN_MAX_FILTERS
being larger than zero, as transmit-only configuration is otherwise fully
supported.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit moves NXP Bluetooth HCI calibration data handling from the
HAL to Zephyr hci_nxp driver.
Added Kconfig choice to select antenna diversity.
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
No need to have such a low MTU 576 bytes as it prevents sending
larger packets for loopback interface. If one have low MTU setting
and one tries to send for example larger UDP packets, then one
can get this rather confusing error message
Available payload buffer (548) is not enough for requested DGRAM (1197)
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Rename the NXP LPC family MCAN driver to not use "MCUX" in its name as this
is not a shim driver based on the MCUXpresso HAL.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
Since the audio DSP is not using the architecture boot path,
the BSS is not cleared/zeroed at boot. So we need to manually
zero out the BSS via arch_bss_zero().
Also, the _bss_table_start/_end symbols are no longer needed
since we are not using the arch boot code. Saves a few bytes.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>