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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gd32kit-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gd32kit-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

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

Hashes for gd32kit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b1744f25c2f027f9e4816c7cd00dfd33453430a11e3e99f47d06892291c7231
MD5 412b35decde74b817f896d0d10dab7b5
BLAKE2b-256 89cad34167250d51bae26ec979488e362c66f4cae6142df4d7c86cdf672e11d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gd32kit-0.1.0.tar.gz:

Publisher: publish.yml on obviousfancy/gd32kit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for gd32kit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f5cb79a2f22445dab0c62c2b01ad35c2f300f4b497504a6b0c992bf80744414
MD5 ba7851e769b5fb2e781ead6f3f4ccd00
BLAKE2b-256 7f77dc33aa8b69862efad06223ba2081f1b439feecf9faf4735064d49e6894a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gd32kit-0.1.0-py3-none-any.whl:

Publisher: publish.yml on obviousfancy/gd32kit

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