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 and requires a probe uid
so that pyOCD is able to discriminate multiple probes being connected.
Library PyocdLibrary ${PROBE_UID}
By now, if the probe do not delivers a target identifier (like Segger probes), the pyOCD usage do not allow a clean connection to the AP. As a consequence, this small library do not support probe UID passing through robot ressource files.
The following basic command are defined:
Probe Has Vcp
Return true if a VCP tty port has been found associated to the probe UID.
Probe Has Vcp
Get Probe Vcp
Return the VCP tty name as a string, so that it can be used by other serial related robotframework modules to get back the device serial Output.
Get Probe Vcp
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
Example
A typical usage of this library is the followingr:
Library SerialLibrary
Library PyocdLibrary ${PROBE_UID}
*** Test Cases ***
Load And Read From Serial
Reset
Load Firmware ${FIRMWARE_PATH}
${vcp} Get Probe Vcp
Log Virtual port is ${vcp}
Connect ${vcp} 115200
Set Timeout 20
Resume
Read All
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.
Metadata
Release files for robotframework-pyocd 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robotframework_pyocd-0.2.0.tar.gz | 14.5 kB | Without provenance | Details for robotframework_pyocd-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robotframework_pyocd-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for robotframework_pyocd-0.2.0-py3-none-any.whl |
Total release size: 26.6 kB
Release files / robotframework_pyocd-0.2.0.tar.gz
| Download URL | robotframework_pyocd-0.2.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ca4430d6b8437ef697f6b149b929a0c5bdbd675328cb7669a6266d9dfc61da9
|
|
BLAKE2b-256 checksum How to use checksums |
3cacf41b72240436ed5f0b4e3c05d651f9c6c991293353a8332a78634dbdf6e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / robotframework_pyocd-0.2.0-py3-none-any.whl
| Download URL | robotframework_pyocd-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82b540bd4f378cec39e46785c66a3bbc62e0432e4d7c96f5275ba1e23d0ea250
|
|
BLAKE2b-256 checksum How to use checksums |
bb810bb822f0c39f3a231164e3cb58b9ca21cc24b6f6de023b0c8b611bc14cb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for robotframework-pyocd 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.