Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ endif
@$(MD5SUM) test.hex
$(TINYGO) build -size short -o test.hex -target=microbit-v2-s113v7 examples/microbit-blink
@$(MD5SUM) test.hex
$(TINYGO) build -size short -o test.hex -target=microbit-v2-s140v7 examples/microbit-blink
@$(MD5SUM) test.hex
$(TINYGO) build -size short -o test.hex -target=nrf52840-mdk examples/blinky1
@$(MD5SUM) test.hex
$(TINYGO) build -size short -o test.hex -target=pca10031 examples/blinky1
Expand Down
4 changes: 4 additions & 0 deletions targets/microbit-v2-s140v7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"inherits": ["microbit-v2", "nrf52833-s140v7"],
"flash-method": "openocd"
}
7 changes: 7 additions & 0 deletions targets/nrf52833-s140v7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"build-tags": ["softdevice", "s140v7"],
"linkerscript": "targets/nrf52833-s140v7.ld",
"ldflags": [
"--defsym=__softdevice_stack=0x700"
]
}
14 changes: 14 additions & 0 deletions targets/nrf52833-s140v7.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

MEMORY
{
FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 0x00027000, LENGTH = 0x80000 - 0x00027000
RAM (xrw) : ORIGIN = 0x20000000 + 0x000039c0, LENGTH = 0x20000 - 0x000039c0
}

_stack_size = 4K + __softdevice_stack;

/* These values are needed for the Nordic SoftDevice. */
__app_ram_base = ORIGIN(RAM);
__softdevice_stack = DEFINED(__softdevice_stack) ? __softdevice_stack : 0;

INCLUDE "targets/arm.ld"