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.4.tar.gz (8.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.4-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ykk_puyaisp-1.4.4.tar.gz
  • Upload date:
  • Size: 8.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.4.tar.gz
Algorithm Hash digest
SHA256 1140cf4617ab3e32d5e7ba2f8bd42c8862e07c4dba2a55734b6cfcd98ab772aa
MD5 8414b7c94026f2600df69b691f2fa7a4
BLAKE2b-256 31e9120ea92539ebfc1aae8279cff16d8d2da88d39b1a0df90765ce6130f538b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ykk_puyaisp-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 301ab302a8926596d137bec7c1656fa3bc4bfb99805fcba2c9e3f92213e38367
MD5 a6f9cd38a48eabe0d1d1e1b3f242a96b
BLAKE2b-256 5c75246affd7a187abb2ca820071f867d962cc72bb23facb23352787316c8f2e

See more details on using hashes here.

Provenance

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