Document API IEC60730 Library
Public Member Functions | Static Public Attributes | List of all members
integration_test_iec60730_watchdog.iec60730_watchdog Class Reference

IEC60730 Watchdog Verification Tests. More...

Public Member Functions

def setUp (self)
 Set up connect device.
 
def clear_rst_causes (self)
 Clear reset cause register.
 
def wdog_test_running_enable (self)
 Allows to start running test watchdog.
 
def wdog_power_cycle (self)
 Reset watchdog by power on by sending command to hostIP.
 
def test_watchdog_por_execution (self)
 Verify the DUT follows the watchdog timer POST test logic correctly. More...
 
def test_watchdog_counter_execution (self)
 Verify the DUT follows the watchdog timer POST test logic correctly. More...
 
def test_watchdog_wrong_rst_execution (self)
 Verify the DUT follows the watchdog timer POST test logic correctly. More...
 
def test_watchdog_wrong_testing_execution (self)
 Verify the DUT follows the watchdog timer POST test logic correctly. More...
 
def test_restart_watchdog_execution (self)
 Verify the DUT follows the watchdog timer POST test logic correctly. More...
 
- Public Member Functions inherited from iec60730_test_base.iec60730TestBase
def env_setup (self, adapter_serial_no, chip_name, lst_file_path, library_path, comp="GCC")
 
def init_connect_group (self)
 
def connect_mcu (self, chip_name)
 
def re_connect_mcu (self)
 
def adapter_close (self)
 
def flash_mcu (self)
 
def erase_mcu (self)
 
def scan_adapter (self, serial_number, chip_name)
 
def pre_exec_test (self)
 
def post_exec_test (self)
 
def get_variable_address (self, relative_path, var_name)
 
def get_label (self, address)
 
def set_chip_name (self, chip_name)
 

Static Public Attributes

string TEST_SUITE_NAME = "Watchdog"
 Text name of the test suite, used in XML output.
 

Additional Inherited Members

- Public Attributes inherited from iec60730_test_base.iec60730TestBase
 logger
 
 adapter
 

Detailed Description

IEC60730 Watchdog Verification Tests.

This class runs IEC60730 verification tests for the watchdog.

Hardware setup: Connect DUT to PC. No additional hardware setup required.

Member Function Documentation

◆ test_restart_watchdog_execution()

def integration_test_iec60730_watchdog.iec60730_watchdog.test_restart_watchdog_execution (   self)

Verify the DUT follows the watchdog timer POST test logic correctly.

Order of execution:

  • Verify code reaches breakpoint at IEC60730_TEST_RESTART_WDOG_BKPT
  • Verify code reaches breakpoint at IEC60730_SAFE_STATE_BKPT
    • Code correctly enters safe state
    • Test passes, return True
Returns
True

◆ test_watchdog_counter_execution()

def integration_test_iec60730_watchdog.iec60730_watchdog.test_watchdog_counter_execution (   self)

Verify the DUT follows the watchdog timer POST test logic correctly.

Order of execution:

  • Verify code reaches breakpoint at IEC60730_WATCHDOG_POST_TESTING_BKPT
  • Verify code reaches breakpoint at IEC60730_SAFE_STATE_BKPT
    • Code correctly enters safe state
    • Test passes, return True
Returns
True

◆ test_watchdog_por_execution()

def integration_test_iec60730_watchdog.iec60730_watchdog.test_watchdog_por_execution (   self)

Verify the DUT follows the watchdog timer POST test logic correctly.

Order of execution:

  • Verify code reaches breakpoint at IEC60730_WATCHDOG_POST_POR_RESET_BKPT
  • Verify code reaches breakpoint at IEC60730_WATCHDOG_POST_TIMEOUT_BKPT
  • Verify code reaches breakpoint at IEC60730_WATCHDOG_POST_TESTING_BKPT
  • Verify code reaches breakpoint at IEC60730_WATCHDOG_POST_END_BKPT
    • Verify the Watchdog status is SL_IEC60730_WATCHDOG_VALID
    • Verify the Watchdog status saved to BURAM is SL_IEC60730_WATCHDOG_VALID (On EFR32 series 2 only)
    • Code correctly tested watchdog timer and watchdog reset trigger, enters main loop
    • Test passes, return True
Returns
True

◆ test_watchdog_wrong_rst_execution()

def integration_test_iec60730_watchdog.iec60730_watchdog.test_watchdog_wrong_rst_execution (   self)

Verify the DUT follows the watchdog timer POST test logic correctly.

Order of execution:

  • Verify code reaches breakpoint at IEC60730_WATCHDOG_POST_TESTING_BKPT
  • Verify code reaches breakpoint at IEC60730_SAFE_STATE_BKPT
    • Code correctly enters safe state
    • Test passes, return True
Returns
True

◆ test_watchdog_wrong_testing_execution()

def integration_test_iec60730_watchdog.iec60730_watchdog.test_watchdog_wrong_testing_execution (   self)

Verify the DUT follows the watchdog timer POST test logic correctly.

Order of execution:

  • Verify code reaches breakpoint at IEC60730_WATCHDOG_POST_WORKING_BKPT
  • Verify code reaches breakpoint at IEC60730_SAFE_STATE_BKPT
    • Code correctly enters safe state
    • Test passes, return True
Returns
True

The documentation for this class was generated from the following file: