nrf: add microbit-s110v8 target

This makes it possible to use Bluetooth on the BBC micro:bit.

Note that you need to use -programmer=cmsis-dap otherwise the SoftDevice
will be erased while flashing something that uses Bluetooth.
This commit is contained in:
Ayke van Laethem
2020-05-24 22:55:28 +02:00
committed by Ron Evans
parent e69131c0d3
commit 67ac4fdd8e
4 changed files with 21 additions and 0 deletions
+2
View File
@@ -229,6 +229,8 @@ smoketest:
@$(MD5SUM) test.hex
$(TINYGO) build -size short -o test.hex -target=microbit examples/echo
@$(MD5SUM) test.hex
$(TINYGO) build -size short -o test.hex -target=microbit-s110v8 examples/echo
@$(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
+3
View File
@@ -0,0 +1,3 @@
{
"inherits": ["microbit", "nrf51-s110v8"]
}
+4
View File
@@ -0,0 +1,4 @@
{
"build-tags": ["softdevice", "s110v8"],
"linkerscript": "targets/nrf51-s110v8.ld"
}
+12
View File
@@ -0,0 +1,12 @@
MEMORY
{
/* This SoftDevice requires 96K flash and 8K RAM according to the release
* notes of version 8.0.0 */
FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 96K, LENGTH = 256K - 96K
RAM (xrw) : ORIGIN = 0x20000000 + 8K, LENGTH = 16K - 8K
}
_stack_size = 2K;
INCLUDE "targets/arm.ld"