mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
ecaec565aa
`tinygo flash -programmer command` to write using nrfjprog
19 lines
455 B
JSON
19 lines
455 B
JSON
{
|
|
"inherits": ["cortex-m4"],
|
|
"build-tags": ["nrf52833", "nrf"],
|
|
"cflags": [
|
|
"-Qunused-arguments",
|
|
"-DNRF52833_XXAA",
|
|
"-I{root}/lib/CMSIS/CMSIS/Include",
|
|
"-I{root}/lib/nrfx/mdk"
|
|
],
|
|
"linkerscript": "targets/nrf52833.ld",
|
|
"extra-files": [
|
|
"lib/nrfx/mdk/system_nrf52833.c",
|
|
"src/device/nrf/nrf52833.s"
|
|
],
|
|
"flash-command": "nrfjprog -f nrf52 --sectorerase --program {hex} --reset",
|
|
"openocd-transport": "swd",
|
|
"openocd-target": "nrf52"
|
|
}
|