mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
864 B
26 lines
864 B
{
|
|
"llvm-target": "armv6m-none-eabi",
|
|
"build-tags": ["microbit", "nrf51822", "nrf51", "nrf", "tinygo.arm", "js", "wasm"],
|
|
"linker": "arm-none-eabi-gcc",
|
|
"compiler-rt": true,
|
|
"pre-link-args": [
|
|
"-nostdlib",
|
|
"-nostartfiles",
|
|
"-mcpu=cortex-m0",
|
|
"-mthumb",
|
|
"-T", "targets/nrf51.ld",
|
|
"-Wl,--gc-sections",
|
|
"-fno-exceptions", "-fno-unwind-tables",
|
|
"-ffunction-sections", "-fdata-sections",
|
|
"-Os",
|
|
"-DNRF51",
|
|
"-Ilib/CMSIS/CMSIS/Include",
|
|
"lib/nrfx/mdk/system_nrf51.c",
|
|
"src/device/nrf/nrf51.s"
|
|
],
|
|
"objcopy": "arm-none-eabi-objcopy",
|
|
"flash": "openocd -f interface/cmsis-dap.cfg -f target/nrf51.cfg -c 'program {hex} reset exit'",
|
|
"ocd-daemon": ["openocd", "-f", "interface/cmsis-dap.cfg", "-f", "target/nrf51.cfg"],
|
|
"gdb": "arm-none-eabi-gdb",
|
|
"gdb-initial-cmds": ["target remote :3333", "monitor halt", "load", "monitor reset", "c"]
|
|
}
|
|
|