Skip to main content

Programming Tool for PUYA PY32F0xx Microcontrollers

Project description

Programming Tool for PUYA PY32F0xx Microcontrollers

Description

With this tool, PUYA microcontrollers of the series PY32F0xx (and maybe other PY32) can be flashed via a simple USB-to-serial converter by utilizing the factory built-in embedded UART bootloader.

Preparations

If necessary, a driver for the USB-to-serial converter used must be installed.

Installation

Ensure that the prerequisites for installing Python packages are met. Then execute the following command in the command line:

pip install puyaisp

Usage

Connect your USB-to-serial converter to your PY32F0xx MCU as follows:

USB2SERIAL            PY32F0xx
+--------+      +-------------------+
|     RXD| <--- |PA2 or PA9  or PA14|
|     TXD| ---> |PA3 or PA10 or PA15|
|     VDD| ---> |VDD                |
|     GND| ---> |GND                |
+--------+      +-------------------+

Set your MCU to bootloader mode by using ONE of the following methods:

  • Disconnect your USB-to-serial converter, pull BOOT0 pin (PF4) to VCC (or press and hold the BOOT button, if your board has one), then connect the converter to your USB port. BOOT0 pin (or BOOT button) can be released now.
  • Connect your USB-to-serial converter to your USB port. Pull BOOT0 pin (PF4) to VCC, then pull nRST (PF2) shortly to GND (or press and hold the BOOT button, then press and release the RESET button and then release the BOOT button, if your board has them).
Usage: puyaisp [-h] [-u] [-l] [-e] [-o] [-G] [-R] [-f FLASH]

Optional arguments:
  -h, --help                show this help message and exit
  -u, --unlock              unlock chip (remove read protection)
  -l, --lock                lock chip (set read protection)
  -e, --erase               perform chip erase (implied with -f)
  -o, --rstoption           reset option bytes
  -G, --nrstgpio            make nRST pin a GPIO pin
  -R, --nrstreset           make nRST pin a RESET pin
  -f FLASH, --flash FLASH   write BIN file to flash and verify

Example:
puyaisp -f firmware.bin

Links

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

ykk_puyaisp-1.4.5.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

ykk_puyaisp-1.4.5-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file ykk_puyaisp-1.4.5.tar.gz.

File metadata

  • Download URL: ykk_puyaisp-1.4.5.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ykk_puyaisp-1.4.5.tar.gz
Algorithm Hash digest
SHA256 7de8f90ebf1f5e66b1058d334198c661fd93d4fcea6c32b02b34bee2010b21b1
MD5 6fda4d22085499b44fd032bda9a87656
BLAKE2b-256 3777a21a1b3400a549d829715479f52e466cf42dfc63c23c00a7a306a766137b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ykk_puyaisp-1.4.5.tar.gz:

Publisher: release.yml on TheYkk/puyaisp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ykk_puyaisp-1.4.5-py3-none-any.whl.

File metadata

  • Download URL: ykk_puyaisp-1.4.5-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ykk_puyaisp-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a11eaaa09576c455fa42356d1372ecb9819384e2918689731beb4de4e8c97bd5
MD5 3b915ee057bcb920cced65a52e23c748
BLAKE2b-256 832711dae3f290805cf77ac0d63c52b0fd5aff5afa9ccc016d0c7cdc394f2fd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for ykk_puyaisp-1.4.5-py3-none-any.whl:

Publisher: release.yml on TheYkk/puyaisp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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