Skip to content

Commit c09724b

Browse files
thegrumpylionaykevl
authored andcommitted
nrf: support for SoftDevice s140 PCA10056 board
1 parent 00f745e commit c09724b

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ smoketest:
233233
@$(MD5SUM) test.hex
234234
$(TINYGO) build -size short -o test.hex -target=x9pro examples/blinky1
235235
@$(MD5SUM) test.hex
236+
$(TINYGO) build -size short -o test.hex -target=pca10056-s140v7 examples/blinky1
237+
@$(MD5SUM) test.hex
236238
ifneq ($(AVR), 0)
237239
$(TINYGO) build -size short -o test.hex -target=arduino examples/blinky1
238240
@$(MD5SUM) test.hex

targets/nrf52840-s140v7.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"build-tags": ["softdevice", "s140v7"],
3+
"linkerscript": "targets/nrf52840-s140v7.ld"
4+
}

targets/nrf52840-s140v7.ld

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
MEMORY
3+
{
4+
FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 0x00027000, LENGTH = 1M - 0x00027000
5+
RAM (xrw) : ORIGIN = 0x20000000 + 0x000039c0, LENGTH = 256K - 0x000039c0
6+
}
7+
8+
_stack_size = 4K;
9+
10+
INCLUDE "targets/arm.ld"

targets/pca10056-s140v7.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"inherits": ["pca10056", "nrf52840-s140v7"]
3+
}

0 commit comments

Comments
 (0)