diff options
author | Ron Evans <[email protected]> | 2018-10-06 13:25:36 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-10-07 19:06:00 +0200 |
commit | 269bef5494cb928eeadb5fdc99d417f6e6bfcb03 (patch) | |
tree | 886ccca6b6a83e416d664b1e2d8207a25cca7211 /Makefile | |
parent | 22da104530a6b2166df6ef8ba1b167d214376d7c (diff) | |
download | tinygo-269bef5494cb928eeadb5fdc99d417f6e6bfcb03.tar.gz tinygo-269bef5494cb928eeadb5fdc99d417f6e6bfcb03.zip |
microbit: add Makefile entries for target=microbit
Signed-off-by: Ron Evans <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -15,6 +15,11 @@ else ifeq ($(TARGET),pca10040) OBJCOPY = arm-none-eabi-objcopy TGOFLAGS += -target $(TARGET) +else ifeq ($(TARGET),microbit) +# BBC micro:bit +OBJCOPY = arm-none-eabi-objcopy +TGOFLAGS += -target $(TARGET) + else ifeq ($(TARGET),bluepill) # "blue pill" development board # See: https://wiki.stm32duino.com/index.php?title=Blue_Pill @@ -42,6 +47,9 @@ run-blinky2: build/blinky2 ifeq ($(TARGET),pca10040) flash-%: build/%.hex nrfjprog -f nrf52 --sectorerase --program $< --reset +else ifeq ($(TARGET),microbit) +flash-%: build/%.hex + openocd -f interface/cmsis-dap.cfg -f target/nrf51.cfg -c 'program $< reset exit' else ifeq ($(TARGET),arduino) flash-%: build/%.hex avrdude -c arduino -p atmega328p -P /dev/ttyACM0 -U flash:w:$< |