The parsing of the number of bytes to read in the read command was being
done in hexadecimal, causing unexpected behavior.
Now the number can be interpreted in decimal or hexadecimal if prefixed
with 0x.
Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
This patch runs clang-format on the shell_flash_test.c file
before the real patch gets applied, otherwise the changes
would be hard to read.
Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
Add a test case verifying that if there's a static resource defined
which overlaps a FS resource pointing to a directory, it takes
preference on exact URI match.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Both cases use a large static buffer, we can optimize here and use a
single mutex-protected buffer for both.
sendmsg() test case needed adjustments, as it was also testing a buffer
overflow scenario. This can only be properly tested however if CID
feature is disabled, as otherwise the common helper buffer size is
increased for the CID use case, preventing the overflow from taking
place.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
We've to ensure nothing blocks the watchdog init on startup,
otherwise we'll get into bootloop. Hence increase the piority.
Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
Enable wdt_basic_api watchdog only for cm7. For cr52,
because the SoC set the cores in Thumb mode after reset,
so a debugger is always needed to switch the core to Arm
state before loading zephyr application.
wdt_basic_reset_none test can be enabled for both.
Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
The K_TIMEOUT_SUM() macro is intended as a means to add two
k_timeout_t values together. This may be useful for a developer
applying an exponential backoff algorithm.
Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
Add test and sample overlays for CY8CKIT-041S-MAX board:
- GPIO basic API test using P1.2 and P1.3 pins
- Button sample using P11.5 with pull-up configuration
Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
- Add a new test configuration file enabling RTC calibration and alarm
features for the nucleo_u385rg_q board
- Add the nucleo_u385rg_q device tree overlay defining the RTC alias
Signed-off-by: Antoine Pradoux <antoine.pradoux@st.com>
Fixes an issue whereby a variant of the slot 1 image is built...
which would occupy the same slot that the test is building for,
therefore disable using the new experimental variant image Kconfig
in this configuration
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
The plus signs in version strings need to be escaped with double
backslashes when used in regex patterns for the test harness.
This ensures proper pattern matching during test execution.
Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
Fix the missing use of remainder value in the sync_offset_us
calculations. Also, Periodic Sync reception is relative to
Peripheral event hence ticks_anchor does not require the
ticker margin and event jitter to be subtracted.
Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Since now there is a single backend for crypto, i.e. the PSA Crypto API
one, it's better to rename corresponding test case and related
configuration file so that instead of mentioning "psa" they mention
"integrity-check".
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Following the removal of legacy Mbed TLS crypto for SHA-256 in the
subsys, this commit updates the related sample. "overlay-mbedtls.conf" is
removed as no more necessary and the corresponding test case is removed
from "testcase.yaml". "overlay-psa.conf" is updated removing unnecessary
Kconfig selections.
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Initialize the i2s_config struct to zero before use in the
test_i2s_state_not_ready_neg test case.
When frame_clk_freq is set to 0 to unconfigure a stream, other
fields in the struct were left uninitialized. On platforms with
userspace support, the syscall handler validates block_size against
the mem_slab block size before calling the driver.
Uninitialized garbage values could cause this validation to
fail unexpectedly.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
When removing TOOLCHAIN_DISABLE_CLANG_WARNING, building the
settings.mgmt test with clang fails with:
tests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c:87:22: error:
variable 'test_response_read_data_start' is not needed and will not be
emitted [-Werror,-Wunneeded-internal-declaration]
87 | static const uint8_t test_response_read_data_start[5] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c:91:22: error:
variable 'test_response_read_data_end' is not needed and will not be
emitted [-Werror,-Wunneeded-internal-declaration]
91 | static const uint8_t test_response_read_data_end[1] = {
Add additional asserts to use these variables in the test.
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
The negative flash write and fill tests assumed that unaligned
offsets are always invalid.
This is not true for flash drivers reporting a write_block_size of
1, where all offsets and sizes are naturally aligned.
Condition the unaligned offset and size tests on the actual
write_block_size reported by the driver to avoid false failures and
ensure the tests follow the flash API contract.
No functional change for drivers with write_block_size > 1.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Changes CONFIG_MCUMGR_TRANSPORT_UART from selecting
CONFIG_UART_MCUMGR to instead of depending upon it, as it should
never have selected a driver Kconfig and instead always depended
upon it, and is needed for supporting different UART transports
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Add board-specific configuration and overlay files for
running DAC API tests on the SAM E54 Xplained Pro board.
- Add sam_e54_xpro.conf
- Add sam_e54_xpro.overlay
- Update DAC API test to support the board
Signed-off-by: farsin NASAR V A <farsin.nasarva@microchip.com>
Add the TMA525B touch controller driver to the input build_all test.
This includes:
- Device tree overlay entry for the TMA525B device
- Test configuration enabling interrupt mode
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Adds a test which checks that the sysbuild slot1 variant image is
generated, and ensures that it boots properly when both images are
present or when only the second image is present
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This change accommodates support for next-generation
soc(it51600).
Tested with:
west build -p always -b it51xxx_evb/it51526aw samples/hello_world/
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Enable power management using LPTMR0 as the idle timer.
- Set zephyr,cortex-m-idle-timer to lptmr0
- Remove redundant stop state DTS overrides
- Add power_mgmt_soc test configuration and overlay
Signed-off-by: Holt Sun <holt.sun@nxp.com>
CONFIG_XOPEN_STREAMS does not follow the pattern of other XSI Option
Groups, where the Option Group name is not the same as the feature
test macro that indicates it is supported by the implementation.
Deprecate CONFIG_XOPEN_STREAMS and rename it to CONFIG_XSI_STREAMS.
For more information, please see
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/\
V1_chap02.html#tag_02_01_05_09
Signed-off-by: Chris Friedt <chris@fr4.co>
Fix issue with re-registering CSIS where it relied on
a stack allocated value during the service unregistering
and reset. To fix this properly, and to allow for further
optimization, the register function was refactored to dynamically
create the service, rather than relying on a static allocation
and dynamically remove unwanted characteristics.
Additionally this new approach also allow us to rely on
IS_ENABLED and remove some #if defined, as well as reducing
both ROM and RAM memory usage.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
- Adds pic32cx_sg41_cult.overlay for wdt test projects.
- Adds pic32cx_sg41_cult platform allow in testcase.yaml.
- Adds wdt board specific configuration in main.c
Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>