From c09724bfc500e0808ab73cedfed70a3918d13d89 Mon Sep 17 00:00:00 2001 From: Nikolas Sepos Date: Thu, 14 Nov 2019 20:34:35 +0200 Subject: [PATCH] nrf: support for SoftDevice s140 PCA10056 board --- Makefile | 2 ++ targets/nrf52840-s140v7.json | 4 ++++ targets/nrf52840-s140v7.ld | 10 ++++++++++ targets/pca10056-s140v7.json | 3 +++ 4 files changed, 19 insertions(+) create mode 100644 targets/nrf52840-s140v7.json create mode 100644 targets/nrf52840-s140v7.ld create mode 100644 targets/pca10056-s140v7.json diff --git a/Makefile b/Makefile index e5f14d00..85ee9c7b 100644 --- a/Makefile +++ b/Makefile @@ -233,6 +233,8 @@ smoketest: @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=x9pro examples/blinky1 @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=pca10056-s140v7 examples/blinky1 + @$(MD5SUM) test.hex ifneq ($(AVR), 0) $(TINYGO) build -size short -o test.hex -target=arduino examples/blinky1 @$(MD5SUM) test.hex diff --git a/targets/nrf52840-s140v7.json b/targets/nrf52840-s140v7.json new file mode 100644 index 00000000..ab6e609f --- /dev/null +++ b/targets/nrf52840-s140v7.json @@ -0,0 +1,4 @@ +{ + "build-tags": ["softdevice", "s140v7"], + "linkerscript": "targets/nrf52840-s140v7.ld" +} diff --git a/targets/nrf52840-s140v7.ld b/targets/nrf52840-s140v7.ld new file mode 100644 index 00000000..dde80182 --- /dev/null +++ b/targets/nrf52840-s140v7.ld @@ -0,0 +1,10 @@ + +MEMORY +{ + FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 0x00027000, LENGTH = 1M - 0x00027000 + RAM (xrw) : ORIGIN = 0x20000000 + 0x000039c0, LENGTH = 256K - 0x000039c0 +} + +_stack_size = 4K; + +INCLUDE "targets/arm.ld" diff --git a/targets/pca10056-s140v7.json b/targets/pca10056-s140v7.json new file mode 100644 index 00000000..7419ae94 --- /dev/null +++ b/targets/pca10056-s140v7.json @@ -0,0 +1,3 @@ +{ + "inherits": ["pca10056", "nrf52840-s140v7"] +}