github.com/aykevl/tinygo@v0.5.0/targets/bluepill.json (about)

     1  {
     2  	"inherits": ["cortex-m"],
     3  	"llvm-target": "armv7m-none-eabi",
     4  	"build-tags": ["bluepill", "stm32f103xx", "stm32"],
     5  	"cflags": [
     6  		"--target=armv7m-none-eabi",
     7  		"-Qunused-arguments"
     8  	],
     9  	"ldflags": [
    10  		"-T", "targets/stm32.ld"
    11  	],
    12  	"extra-files": [
    13  		"src/device/stm32/stm32f103xx.s"
    14  	],
    15  	"flash": "openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c 'program {hex} reset exit'",
    16  	"ocd-daemon": ["openocd", "-f", "interface/stlink-v2.cfg", "-f", "target/stm32f1x.cfg"],
    17  	"gdb-initial-cmds": ["target remote :3333", "monitor halt", "load", "monitor reset", "c"]
    18  }