Go to file
2025-04-07 04:05:25 +03:00
.gitignore ELF fix 2023-10-27 23:49:00 +03:00
Export_MC_UPLOADER.sh Export_MC_UPLOADER 2025-01-11 12:41:08 +03:00
flash_uploader.mk fix 2025-04-07 04:05:25 +03:00
Makefile ELF fix 2023-10-27 23:49:00 +03:00
README.md ELF fix 2023-10-27 23:49:00 +03:00

This repository contains a makefile describing the functions of openocd & st-utils. Using these files you can upload and erase the microcontroller firmware, and use GDB.

st-utils is used only for stm32. openocd can be used for various microcontrollers, for example: WCH, Novoton, Geehy, GigaDevice. You can include flash_uploader.mk in you Makefile and use.

Target:

make flash     : upload flash use OpenOCD
make erase     : erase flash use OpenOCD
make flash-st  : upload flash use st-flash
make erase-st  : erase flash use st-flash
make gdb       : open GNU debugger

Example use:

make flash BIN=./dodopiza.bin OPEN_OCD_MK_CFG=./stm32f10x.cfg