Programming Tool for PUYA PY32F0xx Microcontrollers
Project description
puyaisp - 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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
puyaisp-1.4.0.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file puyaisp-1.4.0.tar.gz
.
File metadata
- Download URL: puyaisp-1.4.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934fc67f9c323edf32aece87a3ddaffcae3ad490b66d0d12dae166c0fafea5fe |
|
MD5 | 876a05982c2eed41457bd8d12fb66dd8 |
|
BLAKE2b-256 | 7e82691cf29bf35c5faa1747433feb71e711f2d47c89501f47ddca2610bd6e4c |
File details
Details for the file puyaisp-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: puyaisp-1.4.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5bbad817ac69acffe6b8512ae7d07640251095b92a59ea635e816f1afaf81ab |
|
MD5 | 107f321d9e55841d43b669a97060c937 |
|
BLAKE2b-256 | 4675feded310f3de04a323c1228f3c73aa9d68e4c6c5b3d6accb03c274ef90aa |