Skip to main content

gd32kit

Toolkit CLI para proyectos GD32F527 con el flujo Makefile + arm-none-eabi-gcc + OpenOCD (sin Keil/IAR). El comando base es gd32kit; cada accion es un subcomando (por ahora solo new, con mas por venir).

Instalacion

pip install gd32kit

Uso

gd32kit new

Genera un proyecto autocontenido (Makefile, main.c, linker script, manejadores de interrupcion, systick y la configuracion de OpenOCD/flasheo por SWD) listo para make && make flash, tomando el SDK (Firmware/ + CMSIS_6/) desde el repo gd32f527xx.

El CLI pregunta el nombre del proyecto, una descripcion breve, que perifericos vas a usar (GPIO siempre esta incluido) y donde crear la carpeta. Genera:

mi_proyecto/
├── Makefile
├── main.c
├── gd32f527_it.c / .h
├── gd32f527_libopt.h
├── gd32f527_flash.ld
├── systick.c / .h
├── openocd_gd32f527.cfg
├── openocd_flash.cfg
├── fmc_prog.c
└── .gitignore

Requisito: el SDK gd32f527xx

El Makefile generado busca el SDK (Firmware/ y el submodulo CMSIS_6/) en $GD32_SDK_ROOT, con ~/Documents/obviousfancy/gd32f527xx como valor por defecto. Si tu copia esta en otro lado:

export GD32_SDK_ROOT=/ruta/a/gd32f527xx

o por invocacion:

make GD32_SDK_ROOT=/ruta/a/gd32f527xx

Por que existe fmc_prog.c

Este chip (GD32F527) no se deja flashear por las vias usuales: ni pyOCD con el algoritmo generico cortex_m, ni el .FLM oficial de GigaDevice via pyOCD, escriben la flash de verdad en este setup. La solucion es fmc_prog.c: una rutina que se carga en RAM y el propio CPU ejecuta via OpenOCD para hacer unlock/erase/program. make flash automatiza todo el proceso.

Desarrollo local

git clone <este-repo>
cd gd32kit
pip install -e .
gd32kit new

Metadata

Release files for gd32kit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gd32kit 0.1.0
File Size Uploaded Provenance Actions
gd32kit-0.1.0.tar.gz 14.1 kB With provenance Details for gd32kit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gd32kit 0.1.0
File Interpreter ABI Platform Actions
gd32kit-0.1.0-py3-none-any.whl Python 3 none any Details for gd32kit-0.1.0-py3-none-any.whl

Total release size: 30.3 kB

Release files / gd32kit-0.1.0.tar.gz

Download URL gd32kit-0.1.0.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9b1744f25c2f027f9e4816c7cd00dfd33453430a11e3e99f47d06892291c7231
BLAKE2b-256 checksum
How to use checksums
89cad34167250d51bae26ec979488e362c66f4cae6142df4d7c86cdf672e11d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.

Transparency log

Release files / gd32kit-0.1.0-py3-none-any.whl

Download URL gd32kit-0.1.0-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f5cb79a2f22445dab0c62c2b01ad35c2f300f4b497504a6b0c992bf80744414
BLAKE2b-256 checksum
How to use checksums
7f77dc33aa8b69862efad06223ba2081f1b439feecf9faf4735064d49e6894a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.

Transparency log

Security for gd32kit 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gd32kit-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page