Skip to main content

Python tools for provisioning Cypress/Infineon MCUs

Project description

This package contains security tools for creating keys, creating certificates, signing user applications, and provisioning Cypress/Infineon MCUs.

Table of Contents

HW/SW compatibility

PSoC 64

Target/Kit Silicon ID, Silicon Rev., Family ID Secure FlashBoot Version CyBootloader Version
512K
cyb06xx5
cy8cproto‑064b0s3
0xE70D, 0x12, 0x105 4.0.2.1842 2.0.1.6441
2M
cyb06xxa
cy8ckit‑064b0s2‑4343w
0xE470, 0x12, 0x102 4.0.3.2319 2.0.2.8102
cys06xxa
cy8ckit‑064s0s2‑4343w
0xE4A0, 0x12, 0x02 4.0.3.2319 2.0.2.8102
1M
cyb06xx7
cy8cproto‑064s1‑sb
cy8cproto‑064b0s1‑ble
cy8cproto‑064b0s1‑ssa
0xE262, 0x24, 0x100 0xE261, 0x24, 0x100 4.0.2.1842 2.0.0.4041

CYW20829 / CYW89829

Target/Kit Silicon ID, Silicon Rev., Family ID ROM Boot Version RAM Applications Version
cyw20829 0xEB43, 0x21, 0x110 1.2.0.8334 1.2.0.3073
cyw89829 0xEB47, 0x21, 0x110 1.2.0.8334 1.2.0.3073

Prerequisites

Documentation

Standalone Executable

Edge Protect Tools can be used as a standalone application. The executable can be found in the tools/edgeprotecttools/bin directory of the Early Access Pack installation or Edge Protect Security Suite.

Installing From Sources

Alternatively Edge Protect Tools can be installed from the sources as a Python package. The source code is located in the tools/edgeprotecttools/src directory of the Early Access Pack installation or Edge Protect Security Suite.

Install Python 3.12 on your computer. You can download it from https://www.python.org/downloads/. Set up the appropriate environment variable(s) for your operating system.

Installing Package

Make sure that you have the latest version of pip installed, use the following command.

$ python -m pip install --upgrade pip

Run the following command, from the Early Access Pack or Edge Protect Security Suite directory.

$ python -m pip install tools/edgeprotecttools/src

Updating Package

To update the already installed package, run the following command from the Early Access Pack or Edge Protect Security Suite directory.

$ python -m pip install --upgrade --force-reinstall tools/edgeprotecttools/src

Note: There may be some pip dependency resolver errors. In most cases, these can be safely ignored.

Note: You can use the following command to show the path to the installed package $ python -m pip show edgeprotecttools.

Supported Devices

Use device-list command for output of the supported devices list.

$ edgeprotecttools device-list

Interface and Usage

For instructions how to use common commands, see README_GENERAL.md.

For instructions how to use target-specific commands, see the corresponding readme file in the docs directory.

Logging

Every time the tool is invoked, a new log file is created in the logs directory of the project. By default, the console output has INFO logging severity. The log file contains the DEBUG logging severity.

Known Issues

  • Using the policy from CySecureTools 4.0.0 in projects created by CySecureTools 4.1.0 causes the CY_FB_INVALID_IMG_JWT_SIGNATURE error during re-provisioning on PSoC64-2M devices:
  ...
  ERROR : SFB status: CY_FB_INVALID_IMG_JWT_SIGNATURE: Invalid image certificate signature. Check the log for details

Workaround:

  1. Open the policy file.
  2. Navigate to section 1 of the boot_upgrade/firmware.
  3. Set boot_auth and bootloader_keys as follows:
"boot_auth": [
    3
],
"bootloader_keys": [
    {
        "kid": 3,
        "key": "../keys/cy_pub_key.json"
    }
]
  • During the installation of the package via pip on Mac OS Big Sur, the following exception is raised:
  ...
  distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation:
  mkdir('/private/var/root/Library/Caches/com.apple.python/private/tmp/easy_install-y8c1npmz', 511) {}

  The package setup script has attempted to modify files on your system
  that are not within the EasyInstall build area, and has been aborted.

  This package cannot be safely installed by EasyInstall, and may not
  support alternate installation locations even if you run its setup
  script by hand.  Please inform the package's author and the EasyInstall
  maintainers to find out if a fix or workaround is available.

Solution: Upgrade the pip package running the following command from the terminal: python3 -m pip install --upgrade pip.

Error Handling

Refer to the guidelines on how to resolve errors.

License and Contributions

The software is provided under the Apache-2.0 license. Contributions to this project are accepted under the same license. This project contains code from other projects. The original license text is included in those source files.

Changelog

All notable changes to this project will be documented in this file.

1.1.0

Added

  • Support for CYW559xx device

1.0.0

Added

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

edgeprotecttools-1.1.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

edgeprotecttools-1.1.0-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file edgeprotecttools-1.1.0.tar.gz.

File metadata

  • Download URL: edgeprotecttools-1.1.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for edgeprotecttools-1.1.0.tar.gz
Algorithm Hash digest
SHA256 515b2648842c831c339ca8e45e8fa80d7d5d4276f39a0cf1ce36b0d3acd0ca7a
MD5 de8766af19dcd2b526fb1c74d6f891b0
BLAKE2b-256 1aa58ff772afcb381f94f0694a17a6dc234b0c03c78104be5ca63c0c57165110

See more details on using hashes here.

File details

Details for the file edgeprotecttools-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for edgeprotecttools-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae42c294e8655192edc6791091098a134cf2a2797a63dd8619702aceb4308299
MD5 db87a5f194c70d629e7d3a2bf4958c31
BLAKE2b-256 34e66bb5306fbbecdce60b188886e3ea76adf4a0faf1eaa7265026dfaf44ba31

See more details on using hashes here.

Supported by

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