mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
1cbe09ee89
Setting the linker script as one property (instead of as part of the generic ldflags property) allows it to be overriden. This is important for the SoftDevice on Nordic chips, because the SoftDevice takes up a fixed part of the flash/RAM and the application must be flashed at a different position. With this linkerscript option, it is possible to create (for example) a pca10040-s132v6 that overrides the default linker script.
17 lines
378 B
JSON
17 lines
378 B
JSON
{
|
|
"inherits": ["cortex-m"],
|
|
"llvm-target": "armv7m-none-eabi",
|
|
"build-tags": ["bluepill", "stm32f103xx", "stm32"],
|
|
"cflags": [
|
|
"--target=armv7m-none-eabi",
|
|
"-Qunused-arguments"
|
|
],
|
|
"linkerscript": "targets/stm32.ld",
|
|
"extra-files": [
|
|
"src/device/stm32/stm32f103xx.s"
|
|
],
|
|
"flash-method": "openocd",
|
|
"openocd-interface": "stlink-v2",
|
|
"openocd-target": "stm32f1x"
|
|
}
|