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.3.tar.gz (8.0 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.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ykk_puyaisp-1.4.3.tar.gz
  • Upload date:
  • Size: 8.0 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.3.tar.gz
Algorithm Hash digest
SHA256 509b73c92d9f1e2cd32cf4df45e86dc6882df6f174333d1017794de6fee76fc2
MD5 aff767f55d5745b22d6ae3e1063f2332
BLAKE2b-256 7f9e930674596fa60d7b3bf419a657c72ceef593582aac7ed442c1802fac6189

See more details on using hashes here.

Provenance

The following attestation bundles were made for ykk_puyaisp-1.4.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: ykk_puyaisp-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d923d717fd83eda16a502c94b194aa423a318ce1e807dd44dd742c07ed3adb9c
MD5 e526b9d2132d7ec3eb179a41b48ea800
BLAKE2b-256 c512e973dd191998089d1a36b6d1d57333472e643a02b8962a3031c71b79225a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ykk_puyaisp-1.4.3-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