- make
- arm-none-eabi-*
- pyOCD with PY32 packs installed
- Download the latest PY32 pack from https://www.keil.arm.com/packs/py32f0xx_dfp-puya/devices/
- run
pack-manager add-packs Puya.PY32F0xx_DFP.X.X.X.pack - run
pyocd pack update - run
pyocd pack find py32f002
make- build everythingmake flash- flash firmwaremake connect- connect to target with pyOCDmake debug- start gdb (must call connect in a different window first)make monitor- open console via ARM semihosting
Set the desired microcontroller in the Makefile.
You can copy, or create a symlink to, any file in /lib into /src.
For anything else, use the reference manual.