
Instead of specifying explicit commands, most of these commands have been replaced by more specific properties. This is work that will be necessary for an eventual -programmer flag to the compiler, with which it is possible to select which programmer to use to flash or debug a chip. That's not very useful for boards that already include a programmer or bootloader for that purpose, but is very useful for novel boards or single-purpose boards that are not already included in TinyGo.
18 строки
386 Б
JSON
18 строки
386 Б
JSON
{
|
|
"inherits": ["cortex-m"],
|
|
"llvm-target": "armv7m-none-eabi",
|
|
"build-tags": ["bluepill", "stm32f103xx", "stm32"],
|
|
"cflags": [
|
|
"--target=armv7m-none-eabi",
|
|
"-Qunused-arguments"
|
|
],
|
|
"ldflags": [
|
|
"-T", "targets/stm32.ld"
|
|
],
|
|
"extra-files": [
|
|
"src/device/stm32/stm32f103xx.s"
|
|
],
|
|
"flash-method": "openocd",
|
|
"openocd-interface": "stlink-v2",
|
|
"openocd-target": "stm32f1x"
|
|
}
|