diff options
author | Ayke van Laethem <[email protected]> | 2019-10-14 00:29:52 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-10-14 16:44:33 +0200 |
commit | 2a71aa90bc0b2ea85dd4b644051d4e3b76796589 (patch) | |
tree | 7d8ba0df06a4ca6f7ed92b7d8a89f7a3d86d11e7 /targets/nrf52840-mdk.json | |
parent | 52bac4d75b8cef581baf9e2a0bfb693d1a22867d (diff) | |
download | tinygo-2a71aa90bc0b2ea85dd4b644051d4e3b76796589.tar.gz tinygo-2a71aa90bc0b2ea85dd4b644051d4e3b76796589.zip |
targets: refactor flash/gdb target configuration
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.
Diffstat (limited to 'targets/nrf52840-mdk.json')
-rw-r--r-- | targets/nrf52840-mdk.json | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/targets/nrf52840-mdk.json b/targets/nrf52840-mdk.json index 388c325b1..244b3d96d 100644 --- a/targets/nrf52840-mdk.json +++ b/targets/nrf52840-mdk.json @@ -1,7 +1,6 @@ { "inherits": ["nrf52840"], "build-tags": ["nrf52840_mdk"], - "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-initial-cmds": ["target remote :3333", "monitor halt", "load", "monitor reset", "c"] + "flash-method": "openocd", + "openocd-interface": "cmsis-dap" } |