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.2.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.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ykk_puyaisp-1.4.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e4fde340f90b5a93291a2e8d6cc21845d78758577871bce71e7a7d97e28f7e98
MD5 228150514b74c9b21695f219ee58aa32
BLAKE2b-256 ea0d94072822baab27f47460bf69b7a361cca0643c57b8054e6b299248a01a1c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ykk_puyaisp-1.4.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a7a66e9cffbacc69655e4d3ee1d27a66c16aa207e346d1f8666f910f5a83101c
MD5 5d1ad362726678bea569a32e3fefb990
BLAKE2b-256 00181bb4a803fe6c8218dc29ecdedcbeaee04f2850b4bf31241d6a8a9bbd99f6

See more details on using hashes here.

Provenance

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