Commit Graph

203 Commits (595754dffa210a61dcf32e1781cbc53db5493e54)

Author SHA1 Message Date
Kevin Bracey 8e3e19837a More Chrono test fixes
* Timer test - handle removal of Timer(ticker_data_t *)
* Timer test - use Chrono, don't test deprecated methods
* Kernel tick count test - TEST_ASSERT_WITHIN -> TEST_ASSERT_INT_WITHIN
* Mutex test - fix up Chrono changes
* SysTimer test - adapt to SysTimer Chrono changes
* Thread test - use Chrono
* SysTimer - devirtualize destructor
2020-04-27 10:19:08 +03:00
Kevin Bracey e5e45d83e7 Chrono test fixes
* Remove ambiguity in single-parameter Queue::put and get
* Fix type problems in RTC test - add missing include
* Don't attempt to use TimerEvent default constructor
* Remove references to Timer::read_duration
2020-04-27 10:19:08 +03:00
Rajkumar Kanagaraj 9739b565b2 Fix the CI build issue 2020-04-08 10:35:07 +01:00
Rajkumar Kanagaraj 83be3f24a5 Remove mbed wait deprecated APIs 2020-04-08 10:35:07 +01: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
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
Rajkumar Kanagaraj a6b78c6429 Remove Semaphore deprecated APIs 2020-03-16 09:37:45 -07:00
Evelyne Donnaes 74884bb7a7 Fixed more greentea tests 2020-03-06 15:02:26 +00:00
Rajkumar Kanagaraj df32091c7b Remove the deprecated RawSerial, UARTSerial, Serial class and SerialBase attach API 2020-03-03 05:19:42 -08: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
Martin Kojtal 6e64fe3800 test: fix SPDX identifier 2020-02-21 07:00:59 +00: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 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
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
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
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
Hugues Kamba dbaeeaf758 Replace RawSerial instances as it has been deprecated 2020-01-06 15:48:49 +00: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
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
Rajkumar Kanagaraj 6d081eeb70 Fixed the build tools test case failure,incorporated review comments 2019-12-23 03:54:18 -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
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
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
Martin Kojtal 5f7ecea00b
Revert "MbedCRC and CRC HAL revisions" 2019-11-26 13:45:37 +00:00
Martin Kojtal 83fc580f79
Merge pull request #11773 from fkjagodzinski/fix-watchdog_reset_test
Fix watchdog reset test
2019-11-22 22:26:44 +01:00
Kevin Bracey 3939c992d4 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-11-13 14:31:49 +02:00
RAJKUMAR KANAGARAJ 6437f99a11 Error message correction and rx_lib header filer removed on systimer test case 2019-11-08 16:11:11 -08:00
RAJKUMAR KANAGARAJ 9e994cfe38 Incorporated review comments 2019-11-08 06:49:28 -08:00
RAJKUMAR KANAGARAJ f1139ebd8e Incorporated the review comments
-Added "rtos-api" in TESTS/configs/baremetal.json
-some test case used thread_sleep_for instead Thisthread::sleep_for
-Added the EOF character
-Disable completely the non supported test cases
2019-11-07 07:19:13 -08:00
RAJKUMAR KANAGARAJ b1731ce3c8 -New PR for PSA,Netsocket,storage components,reverted all the changes to back to original
-Change the #error description more precisely
 -Separated the MBED_CONF_RTOS_PRESENT guarded
2019-11-06 01:59:05 -08:00
RAJKUMAR KANAGARAJ 302f595c28 - Emac,NFC-EEPROM,PSA-CRYPTO components build issue fixed
- RTOS supported test case guarded with MBED_CONF_RTOS_PRESENT flag
 - Added the #error to non supported test case for bare metal
2019-11-06 01:57:29 -08:00
Filip Jagodzinski 55e1a760cb Test: Watchdog: Update the deepsleep wait
Extend the deepsleep wait up to 220% of the Watchdog timeout.
One of the current Watchdog timing requirements is to fire BEFORE twice
the timeout value, but at least one target (K64F) is expected to fire
EXACTLY at a doubled timeout value in deepsleep mode. This patch updates
the test to cope with a new deepsleep timing requirement.
2019-11-05 11:49:39 +01:00
Filip Jagodzinski 8640da4f9d Test: Watchdog: Update the sleep & deepsleep cases
Use ThisThread::sleep_for() for sleeping instead of the calls to
Semaphore::acquire().
2019-10-30 12:51:47 +01:00
Filip Jagodzinski 361804b91d Test: Watchdog: Fix deepsleep wait
Wait for the serial buffers flush before starting the watchdog.
2019-10-30 12:51:47 +01:00
Filip Jagodzinski e3f8711818 Test: Watchdog: Update the deprecated calls
Replace the wait_ms() with wait_us().
Replace the Semaphore::wait() with Semaphore::acquire().
2019-10-30 12:51:46 +01:00
Filip Jagodzinski 2410257551 Test: Watchdog: Fix LP ticker preproc condition 2019-10-30 12:51:46 +01:00
Filip Jagodzinski 7af11fa4b5 Test: Watchdog: Fix error handling
Add a watchdog-kicking thread running in the background when the test
suite is handling a failed assertion. A single watchdog kick did not
provide enough time for the greentea communication if the watchdog
reset happened later than expected.
2019-10-30 12:51:19 +01:00
Mike Naberezny 6be96ba4b2 FlashIAP: Get erase value from HAL instead of hardcoding it 2019-10-26 14:11:42 -07:00
int_szyk b481e15eaa Change reset_reason timeout.
Changed mbed_drivers-reset_reason and mbed_hal-reset_reason tests
because sometimes for some devices it was a little bit to short.
2019-09-13 13:29:56 +02:00
Martin Kojtal 3b631fd752
Merge pull request #11172 from Tharazi97/Watchdog_fail
make watchdog kick reset test pass CI (LSI problem)
2019-08-20 09:42:24 +02:00
int_szyk da70c886c1 tweak watchdog kick reset test
Change the value of KICK_ADVANCE_MS so targets pass the test in worst cases
2019-08-13 08:16:24 +02:00
Martin Kojtal fafd0a5480
Merge pull request #11051 from evedon/minimal-printf
Minimal printf addition
2019-08-09 09:52:36 +01:00
Evelyne Donnaes 65ab34695e Integrated minimal-printf in mbed-os 2019-08-01 12:41:59 +01:00
int_szyk ae6f8be146 Newline at the end of files 2019-08-01 08:44:58 +02:00