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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gd32kit-0.1.0.tar.gz.
File metadata
- Download URL: gd32kit-0.1.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b1744f25c2f027f9e4816c7cd00dfd33453430a11e3e99f47d06892291c7231
|
|
| MD5 |
412b35decde74b817f896d0d10dab7b5
|
|
| BLAKE2b-256 |
89cad34167250d51bae26ec979488e362c66f4cae6142df4d7c86cdf672e11d6
|
Provenance
The following attestation bundles were made for gd32kit-0.1.0.tar.gz:
Publisher:
publish.yml on obviousfancy/gd32kit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gd32kit-0.1.0.tar.gz -
Subject digest:
9b1744f25c2f027f9e4816c7cd00dfd33453430a11e3e99f47d06892291c7231 - Sigstore transparency entry: 2256792322
- Sigstore integration time:
-
Permalink:
obviousfancy/gd32kit@3f91169f37bfdce30f415f79c99b51bdb297aa88 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/obviousfancy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3f91169f37bfdce30f415f79c99b51bdb297aa88 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file gd32kit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gd32kit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f5cb79a2f22445dab0c62c2b01ad35c2f300f4b497504a6b0c992bf80744414
|
|
| MD5 |
ba7851e769b5fb2e781ead6f3f4ccd00
|
|
| BLAKE2b-256 |
7f77dc33aa8b69862efad06223ba2081f1b439feecf9faf4735064d49e6894a6
|
Provenance
The following attestation bundles were made for gd32kit-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on obviousfancy/gd32kit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gd32kit-0.1.0-py3-none-any.whl -
Subject digest:
8f5cb79a2f22445dab0c62c2b01ad35c2f300f4b497504a6b0c992bf80744414 - Sigstore transparency entry: 2256792336
- Sigstore integration time:
-
Permalink:
obviousfancy/gd32kit@3f91169f37bfdce30f415f79c99b51bdb297aa88 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/obviousfancy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3f91169f37bfdce30f415f79c99b51bdb297aa88 -
Trigger Event:
workflow_dispatch
-
Statement type: