Rajkumar Kanagaraj
83be3f24a5
Remove mbed wait deprecated APIs
2020-04-08 10:35:07 +01:00
Roman Okhrimenko
bb53efcdbd
Add TARGET_CYESKIT_064B0S2_4343W to list in flash_configs in TESTS
2020-04-05 13:52:27 +03:00
Martin Kojtal
74ace63eaa
Merge pull request #12729 from AnttiKauppila/mbedtls_fixes
...
Mbedtls fixes
2020-04-03 08:59:14 +02:00
Martin Kojtal
ded879daed
Merge pull request #12603 from dustin-crossman/pr/add-cysbsyskit_01
...
Add target CYSBSYSKIT_01
2020-04-02 18:18:11 +02:00
Martin Kojtal
e8208c062b
Merge pull request #12719 from jeromecoutant/PR_FPGA_JSON
...
FPGA CI TEST SHIELD: add test config json file
2020-04-01 08:58:44 +02:00
Martin Kojtal
f03860a971
Merge pull request #12604 from OpenNuvoton/nuvoton_nano130_tickless_lpticker
...
NANO130: Fix test failures with tickless from lp_ticker
2020-04-01 08:40:19 +02:00
Kimmo Vaisanen
9913f25d2a
Testing: Add missing TRACE_GROUP for multihoming tests
2020-04-01 08:32:06 +03:00
Qinghao Shi
5a0141c5a1
FIX: update usb device tests for deprecated API
2020-03-31 21:42:39 +01:00
Veijo Pesonen
61d70ae967
tests-integration-fs: CY8CPROTO_062_4343W regression
...
Created a new test case to reveal an issue with CY8CPROTO_062_4343W
which was earlier exposed by two intervening test cases.
2020-03-31 18:43:11 +03:00
Veijo Pesonen
7d2f005ca3
tests-integration-fs: makes tests independent
...
Cleans up the created files between test cases to avoid out of space
situations.
2020-03-31 18:42:46 +03:00
Kimmo Vaisanen
692aafc80c
Testing: Fix SocketAddress compare
...
TEST_ASSERT_EQUAL compares int values and converting SocketAddress as int is not supported.
2020-03-31 16:39:26 +03:00
Martin Kojtal
9bea1509da
Merge pull request #12612 from jamesbeyond/int_test
...
TEST: add RTOS macro to enable integration test
2020-03-31 15:13:51 +02:00
Teppo Järvelin
c5d5d21f05
Added missing optimizations based on mbedtls/baremetal.h config
2020-03-31 14:21:45 +03:00
Martin Kojtal
8b929726e1
Merge pull request #12609 from rajkan01/semwait_remove_deprecation
...
Remove Semaphore deprecated APIs
2020-03-31 10:36:43 +02:00
Martin Kojtal
fea7c1abef
Merge pull request #12472 from praveenCY/pr/wpa3_support_merge
...
Add WPA3 support in mbed-os for green tea tests
2020-03-31 08:32:27 +02:00
Qinghao Shi
0e67d1c258
TEST: fix typo
2020-03-30 20:55:38 +01:00
Qinghao Shi
8468fbe798
TEST: add RTOS macro to guard integration tests
2020-03-30 20:28:22 +01:00
jeromecoutant
2309a1749a
FPGA CI TEST SHIELD: add test config json file
2020-03-30 18:03:12 +02:00
Anna Bridge
009ff7adf3
Merge pull request #12036 from kjbracey-arm/callback_fiddle
...
Callback extension and optimisation
2020-03-27 14:07:20 +00:00
Anna Bridge
2736896fb9
Merge pull request #12706 from hugueskamba/hk_remove_armc5_support_tests
...
Tests: Remove support for ARM Compiler 5
2020-03-27 14:05:26 +00:00
Martin Kojtal
cb131c39b3
Merge pull request #12629 from evedon/ed-rtos-api
...
Add "rtos-api" to bare metal
2020-03-26 18:21:05 +01:00
Martin Kojtal
2d10d670d0
Merge pull request #12640 from evedon/ed-mprintf-profile
...
Remove minimal-printf extension profile
2020-03-26 14:50:13 +01:00
Hugues Kamba
4318a0747f
Tests: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 18:22:00 +00:00
Martin Kojtal
ddd3b013e8
Merge pull request #12632 from evedon/ed-minimal-snprintf
...
Fix snprintf in minimal-printf library
2020-03-25 11:34:23 +01:00
Evelyne Donnaes
94acb5da50
Fix snprintf in minimal-printf library.
...
mbed_minimal_putchar assumed that buffer being NULL meant that it
should print to a file. This caused a system crash when calling
snprintf with both buffer and stream set to NULL.
It is valid to call snprintf with a NULL buffer; nothing should
be outputted, but the string length should be measured.
2020-03-23 13:46:12 +00:00
Martin Kojtal
ef2c1c89e6
Merge pull request #12658 from VeijoPesonen/fix_tests-integration-fs
...
tests-integration;tests-filesystem: fix code causing compiler warnings and enable more tests
2020-03-23 12:31:13 +01:00
Anna Bridge
d048cd4c83
Merge pull request #12410 from rajkan01/serial_remove_deprecate
...
Remove the deprecated RawSerial, UARTSerial, Serial
2020-03-20 15:19:32 +00:00
Chun-Chieh Li
c3473e421d
Fix events-queue failure on low CPU frequency
2020-03-20 13:07:29 +08:00
Chun-Chieh Li
9ddcdcde4e
NANO130: Fix mbed_hal-stack_size_unification failure
...
NANO130 doesn't re-configure rtos.main-thread-stack-size, so keep EXPECTED_MAIN_THREAD_STACK_SIZE as normal.
2020-03-20 10:26:40 +08:00
Veijo Pesonen
41632891c3
tests-integration-*: target configuration cleanups
...
Stops duplication of target.components_add config parameter.
2020-03-19 18:43:18 +02:00
Veijo Pesonen
d46c397e74
tests-integration-*: Stops using deprecated wait()
...
Additionally removes some dead code.
2020-03-19 18:43:18 +02:00
Veijo Pesonen
148cf851c2
tests-integration-*: fixes traces
2020-03-19 18:43:18 +02:00
Evelyne Donnaes
1bbe3a725f
Removed minimal-printf profile
2020-03-17 13:57:48 +00:00
Rajkumar Kanagaraj
a6b78c6429
Remove Semaphore deprecated APIs
2020-03-16 09:37:45 -07:00
Evelyne Donnaes
ebf5d27788
Add "rtos-api" to bare metal
2020-03-16 11:40:49 +00:00
Kevin Bracey
d09d85431c
Disable test that breaks IAR
2020-03-11 15:46:03 +02:00
Kevin Bracey
171a5f80c7
Add more Callback tests
2020-03-11 15:46:03 +02:00
Kevin Bracey
bb733f1ee8
Callback updates
...
* Optimise clearing by adding `nullptr` overload. This overload means
`Callback(NULL)` or `Callback(0)` will no longer work; users must
use `Callback(nullptr)` or `Callback()`.
* Optimise clearing by not clearing storage - increases code size of
comparison, but that is extremely rare.
* Reduce ROM used by trivial functors - share copy/destroy code.
* Config option to force trivial functors - major ROM saving by
eliminating the "operations" table.
* Config option to eliminate comparison altogether - minor ROM saving by
eliminating zero padding.
* Conform more to `std::function` API.
2020-03-11 15:46:03 +02:00
Anna Bridge
d5f034b637
Merge pull request #12319 from maciejbocianski/fix_userallocatedevent_imp
...
Fix userallocatedevent imp
2020-03-11 12:43:17 +00:00
Anna Bridge
f6c6a9c4d6
Merge pull request #12601 from rajkan01/rtostimer_remove_deprecated
...
Remove RtosTimer deprecated class
2020-03-11 12:40:48 +00:00
Anna Bridge
33f3049286
Merge pull request #12233 from bulislaw/minimal_printf_default
...
Enable minimal-printf by default for all builds
2020-03-10 12:13:11 +00:00
Dustin Crossman
3f1afb8d91
Add CYSBSYSKIT_01 to qspi test flash configs.
2020-03-09 10:07:12 -07:00
Rajkumar Kanagaraj
8ae2ab404a
Remove RtosTimer deprecated class and its APIs
2020-03-09 09:52:29 -07:00
Evelyne Donnaes
74884bb7a7
Fixed more greentea tests
2020-03-06 15:02:26 +00:00
David Lin
4a4c50fa4f
Fixed typo 'timout'
...
timout -> timeout
2020-03-06 22:04:12 +08:00
Martin Kojtal
22f3bc4ae7
Merge pull request #12436 from mprse/fpga_remove_gpio_pinmaps
...
Remove GPIO pin-maps used for FPGA testing
2020-03-04 13:24:05 +00:00
Rajkumar Kanagaraj
df32091c7b
Remove the deprecated RawSerial, UARTSerial, Serial class and SerialBase attach API
2020-03-03 05:19:42 -08:00
Martin Kojtal
bad9c57085
Merge pull request #12460 from mprse/spi_init_nc_fix
...
Allow MISO/MOSI set to NC during SPI initialisation (fix for issue #12435 )
2020-03-03 09:56:47 +00:00
Martin Kojtal
e53b69bf58
Merge pull request #12548 from VeijoPesonen/fix_tests-integration-fs
...
tests-integration-net-single: fix build error
2020-03-03 09:54:22 +00:00
Evelyne Donnaes
5016fa1a10
Merge branch 'master' into minimal_printf_default
2020-03-02 17:31:37 +00:00
Evelyne Donnaes
0f2b0d1be5
Fixed greentea tests
2020-03-02 17:27:17 +00:00
Veijo Pesonen
9dbd5ed63a
tests-integration-net-single: fix build error
...
Stops using deprecated TCPSocket constructors and string-based APIs.
2020-03-02 15:23:41 +02:00
Martin Kojtal
8ec2970f65
threads: fix timeout (set to 25s)
2020-03-02 12:15:54 +00:00
Martin Kojtal
555981e522
Merge pull request #12498 from jamesbeyond/usb_test
...
TEST: update usb tests and guard them with macro
2020-02-27 08:52:30 +00:00
Martin Kojtal
981691f95f
Merge pull request #12519 from mprse/sleepmanaget_test_fix
...
tests-mbed_hal-sleep_manager: fix counter wraparound handling
2020-02-27 08:50:39 +00:00
Martin Kojtal
67e950296d
Merge pull request #12385 from tymoteuszblochmobica/rot
...
DeviceKey Root of Trust generation refactored.
2020-02-26 16:59:24 +00:00
Przemyslaw Stekiel
42a9cc1e20
tests-mbed_hal-sleep_manager: fix counter wraparound handling
...
There is a mismatch while handling counter wraparound in `test_sleep_auto` test case.
In the test timestamps in ticks are first converted to us and then while counting the time difference wraparound is handled (us and ticks fields are mismatched). The ticker wraparound case must be handled in the field of ticks, and then the difference converted to us.
2020-02-26 14:05:46 +01:00
Praveen babu chandran
8b97e4c3ef
Add WPA3 support for green tea tests
2020-02-25 10:14:30 -08:00
Qinghao Shi
1bf3590587
TEST: update licenses and add an empty line in the end
2020-02-25 16:26:21 +00:00
Martin Kojtal
a3f8202cde
Merge pull request #12502 from DavidLin1577/patch-4
...
Fixed macro error
2020-02-25 09:52:29 +00:00
David Lin
7f1443de88
Fixed macro error in emac_util.cpp
...
Fixed macro spelling error: INVALID_LENGHT-> INVALID_LENGHT
2020-02-24 23:43:07 +08:00
David Lin
5965985734
Fixed macro error in emac_util.h
...
INVALID_LENGHT -> INVALID_LENGTH
2020-02-24 23:33:30 +08:00
Przemyslaw Stekiel
2a9e32e4cb
tests-mbed_hal_fpga_ci_test_shield-uart: fix include order
2020-02-24 14:57:10 +01:00
Przemyslaw Stekiel
6cd012d215
tests-mbed_hal-pinmap: Remove testing GPIO pinmaps (GPIO pinmaps are removed)
2020-02-24 14:57:09 +01:00
Qinghao Shi
70c5797a94
TEST: update usb test README
2020-02-24 12:25:38 +00:00
Martin Kojtal
dc733d8883
Merge pull request #12477 from fkjagodzinski/hal-gpio-get_capabilities
...
HAL: Add a get_capabilities() function to GPIO API
2020-02-24 07:47:39 +00:00
Qinghao Shi
d657fa178b
TEST: Add USB_DEVICE_TESTS macro to guard usb test
2020-02-22 21:11:56 +00:00
Martin Kojtal
9cb8a12cc2
fix SPDX identifier typos
2020-02-21 07:01:55 +00:00
Martin Kojtal
e20e7b8066
tests: fix SPDX identifiers
2020-02-21 07:01:01 +00:00
Martin Kojtal
6e64fe3800
test: fix SPDX identifier
2020-02-21 07:00:59 +00:00
Filip Jagodzinski
ce65a80f82
Tests: GPIO: Use the get_capabilities()
...
Make use of the gpio_get_capabilities() function to skip unsupported
input pull modes when testing with the FPGA-CI-test-shield.
2020-02-19 18:35:19 +01:00
Przemyslaw Stekiel
6d0a9015cc
SPI FPGA test: Test all possible pin configurations to init SPI
2020-02-19 11:46:44 +01:00
Tymoteusz Bloch
0e7a53cdb1
DeviceKey Root of Trust generation refactored.
...
It's no longer automatically and silently created.
2020-02-18 16:32:20 +01:00
Martin Kojtal
a8188bfd4d
Merge pull request #12166 from hugueskamba/hk-baremetal-NRF52840_DK-fix
...
NRF52840_DK: Fix baremetal linker error
2020-02-14 08:21:27 +00:00
Martin Kojtal
ba2a1bc120
Merge pull request #12403 from OpenNuvoton/nuvoton_fpga-ci_i2c
...
FPGA: Enlarge timeout with mbed_hal_fpga_ci_test_shield-i2c
2020-02-13 09:22:42 +00:00
Martin Kojtal
f502b4166e
Merge pull request #12378 from jamesbeyond/test_update
...
TEST: Refactor mbedmicro tests to use utest framework
2020-02-13 08:16:13 +00:00
Maciej Bocianski
83a07836e4
queue test update
...
- extend mixed test with periodic events
- improve static event queue test
2020-02-12 14:41:35 +01:00
Maciej Bocianski
784393a919
equeue tests update
...
- test periodic user allocated events
- test user allocated events re-posting
- test unnecessary cancels of user allocated events
2020-02-12 14:41:17 +01:00
Hugues Kamba
65fbee1d33
NRF52840_DK: Fix baremetal linker error
...
Compile in the inclusion of cryptocell310 only if the library is included
in the build
2020-02-10 15:18:46 +00:00
Martin Kojtal
a8e87236de
Merge pull request #12368 from mprse/NRF_Serial_Fpga_fix
...
Fix NRF52840_DK UART driver and adapt FPGA test
2020-02-10 14:26:31 +00:00
Martin Kojtal
deb4995dae
Merge pull request #12150 from Patater/update-tls-crypto-20191220
...
Update Mbed TLS and Mbed Crypto to latest as of 2019-12-20
2020-02-10 13:04:12 +00:00
Chun-Chieh Li
68f9196b44
FPGA: Enlarge timeout with mbed_hal_fpga_ci_test_shield-i2c
...
Meet timeout error on some slow target. Enlarge the timeout configuration.
2020-02-10 17:39:54 +08:00
Przemyslaw Stekiel
8fda5a453a
Use dedicated macros to skip test cases instead target macro.
2020-02-06 12:53:41 +01:00
Qinghao Shi
4bd91ce890
TEST: update license
2020-02-06 10:54:29 +00:00
Qinghao Shi
c37df2efca
TEST: Refactor mbedmicro tests to use utest framework
2020-02-06 10:05:04 +00:00
Martin Kojtal
e3ad1cae55
Merge pull request #12334 from AriParkkila/cell-c030-r412m
...
Update cellular drivers/tests for UBLOX_C030_R412M
2020-02-05 12:50:11 +00:00
Przemyslaw Stekiel
22acc795c9
fpga_ci_test_shield-uart: Disable test cases not supported on NRF52840_DK target
...
According to the documentation, `NRF52840_DK` does not support odd parity and 2 stop bits. Skip these test case using #if !defined(TARGET_NRF52840) directive.
This is temporary solution. In the future we shell consider adding `uart_get_capabilities()` function.
-
2020-02-05 08:47:10 +01:00
Martin Kojtal
5165559a2c
Merge pull request #12142 from kjbracey-arm/thread_rm510
...
Thread: remove methods deprecated in 5.10
2020-02-03 15:09:34 +00:00
Martin Kojtal
f7c58221be
Merge pull request #12333 from tymoteuszblochmobica/udpfix
...
UDP echotests fix in case of no memory or device busy.
2020-02-03 12:35:58 +00:00
Kevin Bracey
268096dd79
Merge pull request #12296 from jeromecoutant/PR_FPGA_FORCE
...
FPGA_CI_TEST_SHIELD : force all peripheral to be tested
2020-01-31 15:00:20 +02:00
Kevin Bracey
ba5dd4d8c1
Merge pull request #12153 from mprse/spi_fpga_test_extend
...
Hackathon: Increase coverage of the SPI master FPGA test
2020-01-31 15:00:02 +02:00
Kevin Bracey
e01aeccc55
Merge pull request #12308 from michalpasztamobica/multihoming_tests_trace_header
...
Tests: add missing mbed_trace.h multihoming header
2020-01-31 14:59:35 +02:00
Tymoteusz Bloch
a185d6c277
UDP echotests hold in case of no memory or device busy status.
...
This gives possibility of freeing memory and mesh device recover from busy state.
2020-01-30 15:26:52 +01:00
Ari Parkkila
4da93bf979
Add UBLOX_C030_R412M in CellularInterface.json
2020-01-30 04:30:54 -08:00
jeromecoutant
84b48410f0
STM32: enable QSPI test with MX25LM51245G octo SPI
2020-01-29 16:18:38 +01:00
Ari Parkkila
cd6d9e6e8c
Enable SYNCHRONOUS_DNS_CACHE just for NSAPI_PPP_AVAILABLE
2020-01-29 03:19:21 -08:00
Ari Parkkila
72281a57b3
Fix UDPSOCKET_ECHOTEST to handle oversized packets
2020-01-29 03:06:55 -08:00
Przemyslaw Stekiel
4b6c844be9
Extend FPGA-Test-Shield SPI master test
...
Increase coverage of the SPI master FPGA test:
- check supported frequencies (based on the device capabilities),
- add support for manual CS handling and test cases,
- add test cases for rx/tx buffers with different length (based on the device capabilities),
- add test case for one symbol transmission,
- add test cases for different symbol sizes (based on the device capabilities).
2020-01-29 08:23:49 +01:00
Tymoteusz Bloch
17c5f3ecd7
Greentea DNS tests workaround due to NSAPI DNS bug/deadlock with Nanostack.
...
Tests sequence swaped:
ASYNCHRONOUS_DNS_TIMEOUTS
ASYNCHRONOUS_DNS_INVALID_HOST
This is temporary solution to prevent Jenkins fail until root cause will be fixed.
2020-01-24 13:26:29 +01:00
Michal Paszta
39fd30e46f
Tests: add missing mbed_trace.h multihoming header
2020-01-24 09:21:07 +02:00
Anna Bridge
ee1d998d43
Merge pull request #12278 from rajkan01/feature_rename_default_lib
...
Rename "default_lib" to "c_lib".
2020-01-21 16:39:11 +00:00
Anna Bridge
40a0b28068
Merge pull request #12225 from evedon/ed-heap-stack-test
...
Fix baremetal heap and stack initialisation
2020-01-21 16:27:37 +00:00
jeromecoutant
0a1875924b
FPGA_CI_TEST_SHIELD : force all peripheral to be tested
2020-01-21 17:17:55 +01:00
Anna Bridge
80fe861f1d
Merge pull request #12035 from kjbracey-arm/callback_prep
...
Preparation for Callback changes
2020-01-21 11:50:43 +00:00
Evelyne Donnaes
3e3af70afc
Fixed baremetal heap and stack initialisation.
...
Enabled heap_and_stack test for baremetal.
Added a test to check that global variables are initialised.
In mbed_sdk_boot:
- Added initialisation for mbed_stack_isr_start/size and mbed_heap_start/size for all toolchains.
- ARM toolchain:
- Added call to mbed_toolchain_init() to initialise global variables.
- Moved microlib initialisation code from mbed_retarget.cpp to mbed_sdk_boot.c.
- IAR toolchain: there is no equivalent to a software init hook that can be called. __low_level_init() was used but since this function is called before RAM initialisation, it cannot be used to initialize global variables. Defined a new __mbed_init() function called from IAR startup file instead.
2020-01-21 10:13:16 +00:00
Rajkumar Kanagaraj
8a0fdd24d9
Rename "default_lib" to "c_lib".
2020-01-17 08:05:48 -08:00
Ari Parkkila
031d90a3ce
Fix UDP socket test cases
...
Fix UDP socket test cases to check more strictly on failure,
and lower trace levels to not print errors on successful cases.
2020-01-17 01:24:51 -08:00
Martin Kojtal
31988d85fe
Merge pull request #12139 from fkjagodzinski/hal-reset_reason-get_capabilities
...
HAL: Add a get_capabilities() function to ResetReason API
2020-01-16 14:44:31 +00:00
Martin Kojtal
18c941cc84
Merge pull request #12207 from hugueskamba/hk-add-buffered_serial
...
Add BufferedSerial class to replace UARTSerial
2020-01-16 10:06:22 +00:00
Filip Jagodzinski
e8bbbaf1fb
Test: LP_Ticker: Increase the UART flush wait
2020-01-15 13:34:50 +01:00
Filip Jagodzinski
fa7eb7d888
Test: Sleep: Increase the UART flush wait
2020-01-15 13:34:45 +01:00
Filip Jagodzinski
7f1ed02291
Test: ResetReason: Increase the UART flush wait
2020-01-15 13:34:42 +01:00
Filip Jagodzinski
7d575af4b9
Test: Watchdog: Increase the UART flush wait
2020-01-15 13:34:28 +01:00
Martin Kojtal
40b6f12dfd
Merge pull request #12239 from tymoteuszblochmobica/testfix
...
Fix DNS multiple query hints to perform both IP4 and IP6 tests
2020-01-15 13:02:43 +01:00
Martin Kojtal
f4842c7c6d
Merge pull request #12157 from michalpasztamobica/esp8266_send_retry
...
ESP8266: Avoid duplicate data sends
2020-01-15 12:57:12 +01:00
Martin Kojtal
4922d10d9f
Merge pull request #11433 from fkjagodzinski/fpga-watchdog_timing
...
FPGA CI shield: Add a watchdog timing test
2020-01-15 12:56:23 +01:00
Hugues Kamba
18f677e91c
Implement the BufferedSerial class to replace UARTSerial
...
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class.
2020-01-13 13:20:57 +00:00
Tymoteusz Bloch
d30dba29ec
Fix DNS multiple query hints to perform both IP4 and IP6 tests
2020-01-10 17:54:39 +01:00
Evelyne Donnaes
8a4bba33bd
Fixed baremetal build failures
2020-01-10 13:20:59 +00:00
Kevin Bracey
33d9abe762
Merge callback tests
2020-01-09 14:52:50 +02:00
Martin Kojtal
8c4ed4a6cb
Merge pull request #11897 from kjbracey-arm/crc
...
MbedCRC: improve init value handling and tests
2020-01-09 13:31:30 +01:00
Martin Kojtal
d7b7223bcd
Merge pull request #12218 from mprse/ticker_interrupt_test_fix
...
tests-mbed_hal-common_tickers: adapt ticker_interrupt_test() test case for high frequency tickers - WIP
2020-01-09 13:16:16 +01:00
Przemyslaw Stekiel
db8e77672f
tests-mbed_hal-common_tickers: adapt ticker_interrupt_test() test case for high frequency tickers
...
On some targets with very fast counters used for us ticker (e.g. 26 MHz) tested interrupt delays provided in the ticker_timeout array may be too short (execution of the set_interrupt() function takes longer than the tested delay).
We will skip tested ticker delay if the delay is less than assumed max set_interrupt() function execution time (20 us).
Also, the test array will be extended.
2020-01-09 08:32:30 +01:00
Kevin Bracey
d23db1a1e4
Change signals test to test new methods
2020-01-08 16:47:18 +02:00
Kevin Bracey
ccd2a32ad1
MbedCRC: improve default constructors
...
Original default constructor implementation wasn't quite working
properly; it didn't cope with the new "mode_limit" parameter.
Change mechanism so that this now works:
MbedCRC<POLY32_BIT_ANSI_CRC, 32, CrcMode::TABLE> crc;
2020-01-08 13:36:17 +02:00
Kevin Bracey
83a9606140
CRC tests: increase parameter reflection coverage
...
CRC tests failed to exercise handling of the initial and final-xor
values with respect to reflection parameters. Add tests covering this.
Expected behaviour is that the initial value is always non-reflected and
the final-xor happens after the optional output reflection.
2020-01-08 13:36:17 +02:00
Kevin Bracey
c46a2ad6ba
MbedCRC HAL test: remove duplicates
2020-01-08 13:36:17 +02:00
Martin Kojtal
fab9e3b6c7
Merge pull request #12176 from OpenNuvoton/nuvoton_usbd
...
Nuvoton: Support usbd
2020-01-07 16:38:39 +01:00
Martin Kojtal
3e790cc9ab
Merge pull request #12065 from AriParkkila/cell-fea-nidd
...
Non-IP socket implementation for NIDD over CP
2020-01-07 15:55:15 +01:00
Martin Kojtal
9d16a17e7e
Merge pull request #11653 from tymoteuszblochmobica/multiple
...
Add Getaddrinfo interface for multiple DNS adresses
2020-01-07 14:53:36 +01:00
Martin Kojtal
39daa5fd77
Merge pull request #12109 from hugueskamba/hk-replace-rawserial-usage
...
Replace RawSerial as it has been deprecated
2020-01-07 12:59:57 +01:00
Ari Parkkila
4b3ef73333
Cellular: Fix astyle
2020-01-06 22:35:53 -08:00
Ari Parkkila
27024b34e3
Cellular: Add NIDD over CP socket tests
2020-01-06 22:35:18 -08:00
Hugues Kamba
dbaeeaf758
Replace RawSerial instances as it has been deprecated
2020-01-06 15:48:49 +00:00
cyliangtw
2764f481dd
NANO130 SRAM 16KB can't afford usb-msd test, to skip this test
2020-01-06 19:12:00 +08:00
Martin Kojtal
7090448577
Merge pull request #12182 from fkjagodzinski/test_update-watchdog_teardown
...
Update watchdog tests to run with bare metal profile
2020-01-03 12:07:48 +00:00
Martin Kojtal
fc2a71064d
Merge pull request #12068 from rajkan01/feature_bare_metal
...
Enabling small C library option and deprecating uARM toolchain
2020-01-03 11:35:48 +00:00
Filip Jagodzinski
0b8baa568d
Tests: ResetReason: Use the get_capabilities()
...
Make use of the new hal_reset_reason_get_capabilities() function to skip
unsupported reset resaons during tests.
2020-01-03 12:11:45 +01:00
Rajkumar Kanagaraj
952330721d
Bare metal:Enabling the watchdog green tea test
2020-01-03 11:07:49 +01:00
Filip Jagodzinski
5a0fafdc89
Test: Watchdog: Update the test case teardown
...
Replace the thread used in the test case teardown with a Ticker to allow
testing with the bare metal profile. This Ticker is used to prevent the
watchdog from resetting the device during the final greentea
communication.
2020-01-02 17:31:32 +01:00
Michal Paszta
6dfa2d78ad
Increase UDP test timeout to 1200s
...
This is because the ESP8266 is now waiting for SEND OK and takes much
more to complete the send_repeat, and echo_burst tests in RAAS.
(but has higher pass ratio).
2020-01-02 17:21:09 +02:00
jeromecoutant
4bdd57341b
TESTS-MBED_HAL-COMMON_TICKERS no more executed
2019-12-27 16:04:30 +01:00
Anna Bridge
5bef46b71a
Merge pull request #12063 from michalpasztamobica/get_ip_address_if_fixed
...
Move get_ip_address_if() to NetworkStack and include it in multihoming test
2019-12-24 11:04:59 +00:00
Rajkumar Kanagaraj
3697815761
Minimal-printf: Fix system test without using standard library printf
2019-12-23 08:30:13 -08:00
Rajkumar Kanagaraj
6d081eeb70
Fixed the build tools test case failure,incorporated review comments
2019-12-23 03:54:18 -08:00
Jaeden Amero
689274b6b4
crypto: Update the service for Mbed Crypto 3.x
...
Update Mbed OS's PSA Crypto service to work with Mbed Crypto 3.x.
- psa_asymmetric_verify() is now called psa_verify_hash().
- psa_asymmetric_sign() is now called psa_sign_hash().
Compatibilty wrappers are provided via crypto_compat.h for source-level
backwards compatibility.
2019-12-20 16:01:17 +00:00
Ari Parkkila
6b374804be
TESTS: Allow NSAPI_ERROR_NO_MEMORY on UDPSOCKET_ECHOTEST_BURST
2019-12-20 04:44:29 -08:00
Rajkumar Kanagaraj
957dca2082
Enabling small C library option and deprecating uARM toolchain
...
- By default, Mbed OS build tools use standard C library for all supported toolchains.
It is possible to use smaller C libraries by overriding the "target.default_lib" option
with "small". This option is only currently supported for the GCC_ARM toolchain.
This override config option is now extended in the build tool for ARM toolchain.
- Add configuration option to specify libraries supported for each toolchain per targets.
- Move __aeabi_assert function from rtos to retarget code so it’s available for bare metal.
- Use 2 memory region model for ARM toolchain scatter file for the following targets:
NUCLEO_F207ZG, STM32F411xE, STM32F429xI, NUCLEO_L073RZ, STM32F303xE
- Add a warning message in the build tools to deprecate uARM toolchain.
- NewLib-Nano C library is not supporting floating-point and printf with %hhd,%hhu,%hhX,%lld,%llu,%llX
format specifier so skipping those green tea test cases.
2019-12-19 10:05:11 -08:00
Anna Bridge
fb8bbb83e4
Merge pull request #11997 from kjbracey-arm/rm_fp
...
Remove deprecated FunctionPointer class
2019-12-19 16:32:46 +00:00
Martin Kojtal
9cd3813282
Merge pull request #12045 from tymoteuszblochmobica/wisun
...
Netsocket test adjusted to Wisun
2019-12-19 08:23:36 +01:00
Anna Bridge
806ad39648
Merge pull request #12101 from rajkan01/feature_crash_report_fix
...
Bare metal: Retrieve error context after crash
2019-12-17 16:27:59 +00:00
Anna Bridge
0770798bd2
Merge pull request #12048 from kjbracey-arm/sharedptr_nullptr
...
SharedPtr: add nullptr constructor
2019-12-17 16:21:54 +00:00
Anna Bridge
6b4262f7a0
Merge pull request #12032 from kjbracey-arm/fallthrough
...
Add MBED_FALLTHROUGH attribute
2019-12-17 16:20:35 +00:00
Tymoteusz Bloch
8b2f4c2e7e
Getaddrinfo interface for multiple DNS adresses added.
...
New members are added to the network interface
-getaddrinfo
-getaddrinfo_async
gethostbyname is unchanged but gethostbyname_async result param now contains results od DNS records found.
Test cases for sync/async added added to DNS test folder.
2019-12-16 13:59:46 +01:00
Anna Bridge
d128ff4882
Merge pull request #11961 from hugueskamba/hk-add-unbuffered-serial-class
...
UnbufferedSerial: Introduce the class to replace RawSerial
2019-12-13 15:54:40 +00:00
Hugues Kamba
7b845409a0
UnbufferedSerial: Introduce the class to replace RawSerial
...
* Deprecate RawSerial.
* Introduce UnbufferedSerial to provide unbuffered I/O by implementing
with a FileHandle interface for I/O streams.
* Add Greentea test for the UnbufferedSerial class.
2019-12-12 08:44:09 +00:00
Michal Paszta
92e237414e
Modify multihoming tests to use get_ip_address_if
2019-12-12 09:20:33 +02:00
Tymoteusz Bloch
0859ff7b79
Netsocket tests timeouts and JSON and TLS configuration adjusted to pass under mesh Wisun.
...
Netsocket timeouts increased due to long node join on current Wisun implementation.
2019-12-11 17:42:29 +01:00
Rajkumar Kanagaraj
f6a7f6587a
Fixing the Mbed OS crash reporting and enable green tea test for bare metal.
...
Added missing mbed_error_initialize function call in bare metal boot code which is used
to retrieve the crash report from RAM in case of any previous abnormal re-boot but this function call is present in RTOS boot code.
2019-12-11 04:28:42 -08:00
Martin Kojtal
f2701463ae
Merge pull request #12052 from yarbcy/pr/fix-for-arm-issue-11860
...
fpga tests: clear uart fix
Fixes #11860 (correction from the commit msg)
2019-12-11 08:05:53 +01:00
Martin Kojtal
09a2db0184
Merge pull request #12044 from shuopeng-deng/pr/cypress-fs-integration-test
...
increamed qspi size for cypress integration fs tests
2019-12-10 09:48:26 +01:00
Martin Kojtal
9151ac9d80
Merge pull request #12013 from kivaisan/udp_echotest_connect_send_recv
...
Add UDP ECHOTEST with connect/send/recv calls
2019-12-10 09:45:42 +01:00
Kimmo Vaisanen
c2d72b5e73
Update netsocket test README for connect-send-recv UDP tests
2019-12-09 16:23:07 +02:00
YARB(Cypress)
a79b1b3369
Fix for ARM issue 11859.
...
1. Clear UART events before enabling
2. Reset device before return from test case
2019-12-09 12:58:47 +02:00
Kevin Bracey
2b4b7232b7
SharedPtr: add nullptr constructor
...
For consistency with `std::shared_ptr`, and `mbed::Callback`, and as a
potential optimisation aid, give `SharedPtr` a distinct constructor for
`nullptr`.
2019-12-09 11:37:06 +02:00
Martin Kojtal
0175a9f845
Merge pull request #12039 from evedon/ed-baremetal-nrf52840
...
Fix build errors for bare metal greentea tests on NRF52840_DK
2019-12-06 15:48:32 +01:00
Chris Trowbridge
6b8b324eaa
Add QSPI and relevant test support for target EP_AGORA
2019-12-05 14:58:06 -05:00
Shuopeng Deng
6cee24d078
increamed qspi size for cypress integration fs tests
...
The fs integration tests requires about 10 little fs blocks.
The qspi erase size is 256K, with the default size of 2MB, this only
allocates 8 little fs blocks. The tests need 10 little fs blocks to
work.
Also Added no-led tags to cypress board that only have 1 LED. The
fs integration tests blinks 2 LEDs.
2019-12-05 10:54:33 -08:00
Evelyne Donnaes
c6454156da
Enable bare metal greentea tests on NRF52840_DK
2019-12-05 16:25:36 +00:00
Kevin Bracey
d97460f8bb
Add MBED_FALLTHROUGH attribute
...
C++17 standardised `[[fallthrough]]` for `switch` statements to suppress
compiler warnings. Provide access to it, or compiler-specific
alternatives.
2019-12-05 12:08:26 +02:00
Martin Kojtal
412a9317de
Merge pull request #12017 from VeijoPesonen/remove_nvstore
...
NVStore: already deprecated implementation removed
2019-12-05 09:10:30 +01:00
Martin Kojtal
083f6511a1
Merge pull request #12024 from mtomczykmobica/ONME-4366
...
ONME-4366 - Fix UBLOX_EVK_ODIN_W2 fails in emac tests due to heap mem…
2019-12-04 14:41:19 +01:00
Marcin Tomczyk
0693da6e2b
ONME-4366 - Fix UBLOX_EVK_ODIN_W2 fails in emac tests due to heap memory allocation failure. Increse event queue and free allocated buffer if cannot post packet to event queue.
2019-12-04 01:11:06 -08:00
Martin Kojtal
419e58af2c
Merge pull request #12012 from jeromecoutant/PR_USB_HIDTEST
...
USB device HID test: remove duplicated define
2019-12-04 10:09:55 +01:00
Veijo Pesonen
060a1c6df7
NVStore: deprecated implementation removed
2019-12-03 15:36:31 +02:00
jeromecoutant
69eb099ac0
USB device HID test: remove duplicated define
2019-12-03 13:31:03 +01:00
Martin Kojtal
ad3647c191
Merge pull request #11957 from kjbracey-arm/crc-redo
...
MbedCRC and CRC HAL revisions (6.0 redo)
2019-12-03 13:21:36 +01:00
Kimmo Vaisanen
767c40d970
Add UDP ECHOTEST with connect/send/recv calls
...
UDPSocket can be used also similar to TCPSocket using connect(), send() and recv() methods.
This commit adds UDP ECHOTESTS which uses these methods instead of sendto() and recvfrom().
2019-12-03 13:39:50 +02:00
Martin Kojtal
25ca5d2a72
Merge pull request #11880 from kjbracey-arm/callback_variadic
...
Remove deprecated Callback methods
2019-12-03 09:04:55 +01:00
Kevin Bracey
60e07ef8d6
Remove deprecated FunctionPointer class
2019-12-02 15:53:47 +02:00
Kevin Bracey
0b28553ac2
Remove deprecated Callback methods
2019-12-02 15:27:10 +02:00
Kevin Bracey
a995c162ac
Revise MbedCRC template
...
* Use compile-time detection of hardware CRC capability, so unneeded
code and tables do not go into the image.
* Add global JSON config option to allow choice between no tables,
16-entry tables or 256-entry tables for software CRC. Default set
to 16-entry, reducing ROM size from previous 256-entry.
* Allow manual override in template parameter to force software or
bitwise CRC for a particular instance.
* Micro-optimisations, particularly use of `RBIT` instruction and
optimising bitwise computation using inline assembler.
Incompatible changes:
* Remove special-case "POLY_32BIT_REV_ANSI" - users can use standard
POLY_32BIT_ANSI, which now uses the same 16-entry tables by default,
or can use hardware acceleration, which was disabled for
POLY_32BIT_REV_ANSI. MbedCRC<POLY_32BIT_ANSI, 32, CrcMode::TABLE> can
be used to force software like POLY_32BIT_REV_ANSI.
* The precomputed table for POLY_16BIT_IBM had errors - this has been
corrected, but software CRC results will be different from the previous
software calculation.
* < 8-bit CRC results are no longer are shifted up in the output value,
but placed in the lowest bits, like other sizes. This means that code
performing the SD command CRC will now need to use `(crc << 1) | 1`,
rather than `crc | 1`.
2019-12-02 14:45:37 +02:00
Kevin Bracey
fe22bc023e
Update HAL CRC API
...
* Change "is supported" check to be a macro, so it can be done at
compile-time.
* Eliminate weird shift on 7-bit CRCs.
* Add support for 32-bit CRCs and reversals to TMPM3HQ.
2019-12-02 14:45:37 +02:00
Qinghao Shi
01d35911a6
TESTS: move include trace to test headers
2019-11-29 15:28:46 +00:00
Qinghao Shi
0971254ced
TESTS: remove include missing header
2019-11-29 15:26:37 +00:00
Martin Kojtal
0b1210835e
Merge pull request #11979 from evedon/ed-baremetal-fixes
...
Bare metal greentea tests compilation fixes
2019-11-29 09:06:10 +01:00
Martin Kojtal
aa168594a7
Merge pull request #11892 from mprse/feature-hal-spec-explicit-pinmap
...
Bring static pinmap extension to master
2019-11-28 15:46:38 +01:00
Evelyne Donnaes
f32292952e
Compilation fixes
2019-11-28 14:45:07 +00:00
Martin Kojtal
ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
...
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
Przemyslaw Stekiel
b2dad08387
Change explicit pinmap to static pinmap
2019-11-28 08:32:12 +01:00
Przemyslaw Stekiel
d75cc97d80
Explicit pinmap - fix style
2019-11-28 08:32:02 +01:00
Przemyslaw Stekiel
af0ab802d4
Adapt FPGA tests for spi, i2c, analogin, pwm, uart to test direct init (explicit pinmap).
2019-11-28 08:32:01 +01:00
Michal Paszta
71db612913
Remove udpsocket_sendto_invalid
...
It tested parameter checks in the now obsoleted string-based API.
2019-11-27 20:04:47 +02:00
Michal Paszta
5ece00c787
Tests: TLSSocket invalid connect simplified
2019-11-27 20:02:27 +02:00
Michal Paszta
ea04c4f85e
Remove internal usage of deprecated APIs in IPCore
...
Updated:
* netsocket classes,
* unittests, stubs and mocks,
* greentea tests
2019-11-27 20:02:20 +02:00
Martin Kojtal
d5f813b6a3
Merge pull request #11956 from ABOSTM/FIX_SLEEP_MANAGER
...
tests-mbed_hal-sleep_manager: fix regression found on since PR #11721
2019-11-27 11:45:04 +01:00
Alexandre Bourdiol
64765ff35d
tests-mbed_hal-sleep_manager: fix regression found on since PR #11721
...
This test is failed since #11721 Bare metal greentea support
on many STM32 boards:
NUCLEO_F072RB, NUCLEO_F070RB
NUCLEO_F411RE, NUCLEO_F439ZI, NUCLEO_F446ZE, DISCO_F407VG
NUCLEO_F303RE
...
2019-11-27 09:20:46 +01:00
Martin Kojtal
5f7ecea00b
Revert "MbedCRC and CRC HAL revisions"
2019-11-26 13:45:37 +00:00
Martin Kojtal
9bfcb955e2
Merge pull request #11943 from 0xc0170/integration-tests-split
...
Split integration tests in fs/net
2019-11-26 13:11:50 +01:00
Martin Kojtal
e4b3603fe4
Merge pull request #11936 from kivaisan/cancel_timedout_async_dns_query
...
DNS tests: Cancel asynchronous dns query if it times out
2019-11-26 11:47:33 +01:00