Commit Graph

24928 Commits (33f8b35917a5f218f9a1b3ca32a86bde85fa0982)

Author SHA1 Message Date
Filip Jagodzinski 777a863ac8 Test: update HAL watchdog test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
2019-06-26 09:09:59 +01:00
Filip Jagodzinski 68e536b368 Test: update HAL reset_reason test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
2019-06-26 09:09:59 +01:00
Anna Bridge b3d45c5eef
Merge pull request #10777 from fkjagodzinski/fix-watchdog-missing_commits
Bring back the missing watchdog commits
2019-06-18 15:05:28 +01:00
Filip Jagodzinski c5ad70c1e5 Tests: Watchdog: Update timing test
Skip test cases with unsupported timeout values.
2019-06-14 10:59:06 +02:00
Filip Jagodzinski d634862a09 Tests: Watchdog: Decrease default timeout to 100 ms 2019-06-14 10:59:06 +02:00
Filip Jagodzinski c29cdab079 Tests: Watchdog: Update test case teardown
Added a mechanism which will prevent an initialised watchdog from
resetting the device during final greentea communication.
This allows testing watchdog timeouts as short as 50 ms.
2019-06-14 10:59:06 +02:00
Martin Kojtal e3bcf0cebf
Merge pull request #10645 from fkjagodzinski/rajkan01-new_watchdog_api
Watchdog API update
2019-06-13 13:55:11 +01:00
Filip Jagodzinski 98708d1041 Tests: Update Watchdog Manager test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
2019-06-11 10:52:47 +02:00
Filip Jagodzinski 19272b7a1c Tests: ResetReason: Use the HAL watchdog API
The Watchdog driver has been updated making this test incompatible
with the new API. Use HAL API instead.
2019-06-03 16:32:15 +02:00
Filip Jagodzinski 93b01c79bb Tests: Watchdog: Add Watchdog Manager tests 2019-06-03 16:32:15 +02:00
Filip Jagodzinski 2dd5216ceb Tests: Watchdog: Remove outdated driver tests
The Watchdog driver has been updated making these tests incompatible
with the new API. The Watchdog driver functionality is tested with the
unit tests located in UNITTESTS/drivers/Watchdog/ .
2019-06-03 16:32:14 +02:00
Rajkumar Kanagaraj dc9fbfa6fb Fix for Problem copying the instance from BSS to stack
-Created global instance of either LowPowerTicker or Ticker
2019-06-03 16:32:14 +02:00
Rajkumar Kanagaraj c41d80330e Fixed the unittest case failure 2019-06-03 16:32:14 +02:00
Rajkumar Kanagaraj 33793e710d Added the ticker support
-Modified the device dont have support of lp ticker will ticker for watchdog callback register
2019-06-03 16:32:14 +02:00
Rajkumar Kanagaraj dfe4b533c3 Update Watchdog
- Changed the process into static method
 - used the singletonptr for creating the low power ticker instance
 - Added the mbed stub into cmake build for cellularnonipsocket,loramacrypto
2019-06-03 15:31:20 +02:00
Rajkumar Kanagaraj f672974c25 Incorporated the Reivew Comments 2019-06-03 15:24:04 +02:00
Rajkumar Kanagaraj 696638afeb Incorporated the Reivew Comments 2019-06-03 15:24:03 +02:00
Rajkumar Kanagaraj cd26a74efb fix for astyle 2019-06-03 15:24:02 +02:00
Rajkumar Kanagaraj 3c0cd62476 fix for spell check and header file 2019-06-03 15:24:01 +02:00
Rajkumar Kanagaraj f94eb3cf13 Fix for the Ci build issue 2019-06-03 15:24:01 +02:00
Rajkumar Kanagaraj 43c2647be7 fix: Fixing rebased created bugs 2019-06-03 15:24:00 +02:00
Rajkumar Kanagaraj 47030cd23f SW watchdog unittest cases
-Added the mock class function to mock mbed_assert_internal
  -Added the unit test case to test start,kick,stop
  -Modified the interface api name from is_alive to process
  -added the unit test cases for process
2019-06-03 15:23:59 +02:00
Rajkumar Kanagaraj eb98c38226 Hw Watchdog UnitTest cases
-Added the unit test case for testing Hw watchdog
    -Added the supported stubs files
2019-06-03 15:23:59 +02:00
Rajkumar Kanagaraj 3ea9521408 HW Watchdog and SW watchdog interface
- Added Hw watchdog periodic kick calls software watchdog is_alive check
2019-06-03 15:23:58 +02:00
Rajkumar Kanagaraj bcea865db2 Add SW Watchdog
-SW watchdog has interface name start(),stop(),kick()	Sw watchdog internally has static list and shared across multiple instance of SW watchdog
	- Sw watchdog initialize timeout value,unique string via constructor whenever threads created sw watchdog object
	-Threads make sure pass proper timeout value,Unique string while creating the instance.
	-start() called by components(BLE,WIFI etc.,),it adds the entry into static list with few details current count ,etc.,
	-kick() called by registered components(BLE,WIFI etc.) to reset current count to zero.
        -is_alive - interface API to mbed_watchdog_manager
        -implementation optimization
2019-06-03 15:23:57 +02:00
Rajkumar Kanagaraj 400b2ee8a7 Add HwWatchdog
- mbed_watchdog_mgr has interface name mbed_wdog_manager_start(),mbed_wdog_manager_stop(),mbed_wdog_manager_kick()
    - HwWatchdog is going to attach with LowPowerTIcker for periodic callback functionality
    - mbed_wdog_manager_start() will either get start either by BL/RTOS Aps,it reads the timeout value specified via macro and macro gets defined in target.json file.
    - mbed_wdog_manager_start() internally configure below HAL hw watchdog with timeout specified via target.json
    - mbed_wdog_manager_start() internally divide the timeout(specified in target.json) by the 2 and attach LowPowerTicker with periodic callback of hw_kick()
    - mbed_wdog_manager_start() internally create one instance of sw watchdog class,to access the static list data structure of sw watchdog class
    - mbed_wdog_manager_kick() function periodically get called and refresh the hw watchdog to avoid watchdog reset
    - converted C++ code into C based APIs
    - added boolean to control watchdog start and stop
    - Added detach from ticker on stop API
2019-06-03 15:23:56 +02:00
Rajkumar Kanagaraj 3cd52d4732 Watchdog refactoring to multithreaded thread.
-Added API to register muliple threads to watchdog drivers
-Watchdog timeout reconfigures everytime whenever new register thread with longer timeout period
-New APIs for watchdog
 wd_register(const osThreadId_t tid, const uint32_t timeout) to register to watchdog
 wd_unregister(const osThreadId_t tid) to unregister to watchdog
 kick(const osThreadId_t tid) to refresh the watchdog
2019-06-03 15:23:56 +02:00
Filip Jagodzinski f4e6966e14 Remove RESET_REASON from MCU_NRF52840 2019-05-29 10:25:51 +02:00
Rajkumar Kanagaraj 727070e04a Removed RESET_REASON for NRF51_DK board 2019-05-24 12:32:53 +02:00
Rajkumar Kanagaraj 50c6e9f481 Added the SPDX identifier 2019-05-24 12:32:53 +02:00
Rajkumar Kanagaraj 15bcb38fad Trailing space issue fix 2019-05-24 12:32:52 +02:00
Rajkumar Kanagaraj af0b056b05 fix for Jenkin build issue 2019-05-24 12:32:51 +02:00
Rajkumar Kanagaraj 7d5a17d955 Removed RESET_REASON for NRF52832,NRF52840 family and Removed WATCHDOG for H743ZI board 2019-05-24 12:32:50 +02:00
Rajkumar Kanagaraj 8393068770 Revert "fix for build failure issues"
This reverts commit 3ce1d4940cb7fd9d74ca2be75ed08b76854ff534.
2019-05-24 12:32:45 +02:00
Rajkumar Kanagaraj e13fdc444f fix for build failure issues 2019-05-24 12:31:28 +02:00
Rajkumar Kanagaraj 95e8e27e9b doxy spell check fix for watchdog 2019-05-24 12:28:23 +02:00
Rajkumar Kanagaraj f4184b19a0 update:Remove DEVICE_WATCHDOG and added RESET_RESON in stm32 family 2019-05-24 12:28:20 +02:00
Mel W 26986289e5 capitalizing class name
Hope this is alright.
2019-05-24 12:23:46 +02:00
Mel W ae776cbf1c Capitalizing Watchdog 2019-05-24 12:23:45 +02:00
Mel W c0e186b3dd small grammatical changes
Not sure if the formatting's still alright on these.
2019-05-24 12:23:45 +02:00
Filip Jagodzinski 16863bb972 Docs: Watchdog: Update code comments
* capitalize driver class name,
* reword test docs for the driver & HAL,
* capitalize Mbed name,
* reword the comments explaining the SERIAL_FLUSH_TIME_MS macro.
2019-05-24 12:23:44 +02:00
Steve Cartmell ad295e64ba fix(hal-watchdog): Guard TMPM 'ResetReason' code behind feature flag 2019-05-24 12:23:43 +02:00
Steve Cartmell a63e236d84 fix(hal-watchdog): Add 'RESET_REASON' flags to supported devices 2019-05-24 12:23:42 +02:00
Steve Cartmell 8baae2475a fix(hal-watchdog): Remove 'RESET_REASON' flags from unsupported devices 2019-05-24 12:23:41 +02:00
Steve Cartmell 544eb82a47 fix: Remove excess comma from device_has key in targets.json 2019-05-24 12:23:41 +02:00
Amanda Butler dd46edaef3 Edit ResetReason_tests.h
Make minor grammar edits.
2019-05-24 12:23:40 +02:00
Ganesh Ramachandran a0c2b59475 Added reset_reason feature for TMPM3HQ 2019-05-24 12:23:39 +02:00
Filip Jagodzinski 337b394048 Tests: Watchdog: Update the reset-to-sync delay
Change the config parameter used as a delay before sending the sync
packet after the device reset in watchdog and reset_reason tests. Use
'forced_reset_timeout' instead of 'program_cycle_s'.
2019-05-24 12:23:38 +02:00
Filip Jagodzinski a37d03d640 Tests: Watchdog: Fix config access in the host script
Move the calls to get_config_item() to the setup() method. The config is
not available in the initializer yet.
2019-05-24 12:23:38 +02:00
Donatien Garnier f9ac1567af Fix more astyle failures 2019-05-24 12:23:37 +02:00