Skip to content

Hardware reset feature - opens door to HW device powercycle feature

Compare
Choose a tag to compare
@PrzemekWirkus PrzemekWirkus released this 09 May 12:44
· 315 commits to master since this release

Changes:

  • Now reset_dut(reset_type) accepts an argument reset_type that can have two string value software_reset or hardware_reset:
    • software_reset resets the device by sending break command over serial.
    • hardware_reset uses mbed-tas-rm service to reset the device.
  • For hardware reset htrun requires that environment variables MBED_TAS_RM_IP and MBED_TAS_RM_PORT are set.
    • In Jenkins these environment variables are set in Jenkins->Configure->Global environment settings.
    • On desktop user would need to set these environment variables pointing to locally running mbed-tas-rm service. See https://github.com/ARMmbed/mbed-tas-rm documentation.
    • Note: mbed-tas-rm is not yet publicly available tool.
  • Extension on PR #75 for hardware reset. Please see feature documentation in #75.
  • See: #77 for details.
  • Released to PyPI.

Note: power_cycle plugin can be found/enumerated:

$ mbedhtrun --plugins
+-------------------------------------+-------------+------------------------------+--------+------------+------------------------------+
| name                                | type        | capabilities                 | stable | os_support | required_parameters          |
+-------------------------------------+-------------+------------------------------+--------+------------+------------------------------+
| HostTestPluginCopyMethod_Mbed       | CopyMethod  | shutil, default              | True   | True       | image_path, destination_disk |
| HostTestPluginCopyMethod_Shell      | CopyMethod  | shell, cp, copy, xcopy       | True   | True       | image_path, destination_disk |
| HostTestPluginCopyMethod_Silabs     | CopyMethod  | eACommander, eACommander-usb | True   | True       | image_path, destination_disk |
| HostTestPluginCopyMethod_Stlink     | CopyMethod  | stlink                       | False  | True       | image_path                   |
| HostTestPluginPowerCycleResetMethod | ResetMethod | power_cycle                  | True   | True       | target_id, device_info       |
| HostTestPluginResetMethod_Mbed      | ResetMethod | default                      | True   | True       | serial                       |
| HostTestPluginResetMethod_SiLabs    | ResetMethod | eACommander, eACommander-usb | True   | True       | disk                         |
| HostTestPluginResetMethod_Stlink    | ResetMethod | stlink                       | False  | True       |                              |
+-------------------------------------+-------------+------------------------------+--------+------------+------------------------------+