pystm32flash
python bindings of stm32flash serial/i2c flash lib
it should work on windows, linux and macos.
how to install it:
pip install pystm32flash
how to use it:
get device information:
import pystm32flash as stm32f
stm32f.api.set_device(b'/dev/ttyS0')
stm32f.api.run_it()
or:
import pystm32flash as stm32f
stm32f.api.set_device(b'/dev/i2c-0')
stm32f.api.run_it()
write and verify:
import pystm32flash as stm32f
#show help:
stm32f.api.show_help()
stm32f.api.set_arg(b'-w', b'test.hex')
stm32f.api.set_arg(b'-v', b'')
stm32f.api.set_device(b'/dev/ttyS0')
stm32f.api.run_it()
write and verify and start execution:
import pystm32flash as stm32f
#show help:
stm32f.api.show_help()
stm32f.api.set_arg(b'-w', b'test.hex')
stm32f.api.set_arg(b'-v', b'')
stm32f.api.set_arg(b'-g', b'0x0')
stm32f.api.set_device(b'/dev/ttyS0')
stm32f.api.run_it()
read flash to file:
import pystm32flash as stm32f
#show help:
stm32f.api.show_help()
stm32f.api.set_arg(b'-r', b'test.bin')
stm32f.api.set_device(b'/dev/ttyS0')
stm32f.api.run_it()
any problem?
make an issue: https://github.com/Jiangshan00001/pystm32flash/issues
c code is mostly from: https://github.com/ARMinARM/stm32flash
Metadata
Release files for pystm32flash 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pystm32flash-0.0.4.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pystm32flash-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / pystm32flash-0.0.4.tar.gz
| Download URL | pystm32flash-0.0.4.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c543fa1e8bc0226b2ed0bdf8b906b48ca7e0cad403237b5b5d871138d93fe5d
|
|
BLAKE2b-256 checksum How to use checksums |
efd0c31c830a42ff506a484d4b2f516cb53b432c838aa0554c4ac11c50786ba4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9
|
Release files / pystm32flash-0.0.4-py3-none-any.whl
| Download URL | pystm32flash-0.0.4-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5aa90a61e964c250249a130178a103ad6ee7e403581d062bf7f963f6491c3626
|
|
BLAKE2b-256 checksum How to use checksums |
7280795de170001ab7973c8c4e95439dc0fc5774d305b94f37cc77209c1993d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9
|
Security for pystm32flash 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.