Skip to main content

PyOCD interface library for robotframework

Project description

robotframework-pyocd python package

This package is a ligthweight module to use the pyocd python API through robotframework tests so that automated flash and test testsuites can be written for continuous deployment of embedded systems, typically in a test farm. This package uses the PyOCD tool, meaning that the JTAG interface is used in order to flash the target device.

When running the robotframework test suites, the device should be connected and a JTAG probe that delivers the target reference (like, for example, ST-Link probes such as thoses of nucleo or disco boards).

This mean that Segger probes are not yet supported here as it requires a target variable to be passed (see PyOCD documentation).

Dependencies

  • Python >= 3.10
  • PyOCD >= 0.36.0
  • robotframework >= 7.0.0

Usage

This library is built to be use through the Library directive of Robot-Framework:

Library         PyocdLibrary

It is considered that the pyocd local configuration is made so that the probe is automatically selected in case of multiple probes connected to the host. This can be done at pyocd local through pyocd configuration (see https://pyocd.io/docs/configuration.html).

As a consequence, this small library do not support probe UID passing through robot ressource files.

The following basic command are defined:

Load Firmware

Load a firmware into the connected target

Requires one argument: the firmware file path (string)

A typical usage is:

Load Firmware       builddir/firmware.hex

Reset

Reset and hat the target. Target is halted when returned

A typical usage is:

Reset

Resume

Resume a stopped target

A typical usage is:

Resume

License

Copyright 2023 - 2024 Ledger SAS

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_pyocd-0.1.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_pyocd-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_pyocd-0.1.0.tar.gz.

File metadata

  • Download URL: robotframework_pyocd-0.1.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/0.10.1 urllib3/1.26.17 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/24.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for robotframework_pyocd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2735cc7caf5e2638d314e2ccb3f52e68057408911300c852ec14ba422ce70faa
MD5 b52b1de238cf88cf159ab60b1eaf4965
BLAKE2b-256 0d1a0e5613e392599891a34736b3ce49f2aa5254ee2e9cffe12889ea9083735c

See more details on using hashes here.

File details

Details for the file robotframework_pyocd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: robotframework_pyocd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/0.10.1 urllib3/1.26.17 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/24.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for robotframework_pyocd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df94f052f1d5079aeb6c1b5f897e42f23ac99ced171e86e6f27701e2dd1c595b
MD5 1e5296f7bb9b6843297e99bdcb7febf0
BLAKE2b-256 c9c3765507f26a3326bc1ba942357213dac3b0af0185c43b8c8def53fa426499

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page