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

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