aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-08-29 22:58:08 +0200
committerRon Evans <[email protected]>2020-08-30 16:16:31 +0200
commit47a975a44f6af0628d384534c7724a9a9e76f4cb (patch)
tree7ff99f63fdc1bcd5c476bd37d8a4a2bad1b1b63a /targets
parent83252448b038b743d0aa443e0abf7fb50b161165 (diff)
downloadtinygo-47a975a44f6af0628d384534c7724a9a9e76f4cb.tar.gz
tinygo-47a975a44f6af0628d384534c7724a9a9e76f4cb.zip
nrf: add SoftDevice support for the Circuit Playground Bluefruit
This also fixes a bug: the Bluefruit doesn't have a low frequency crystal. Somehow non-SoftDevice code still worked. However, the SoftDevice won't initialize when this flag is set incorrectly.
Diffstat (limited to 'targets')
-rw-r--r--targets/circuitplay-bluefruit.json2
-rw-r--r--targets/circuitplay-bluefruit.ld3
2 files changed, 4 insertions, 1 deletions
diff --git a/targets/circuitplay-bluefruit.json b/targets/circuitplay-bluefruit.json
index 2e94730d7..6a57e1dac 100644
--- a/targets/circuitplay-bluefruit.json
+++ b/targets/circuitplay-bluefruit.json
@@ -1,6 +1,6 @@
{
"inherits": ["nrf52840"],
- "build-tags": ["circuitplay_bluefruit","nrf52840_reset_uf2"],
+ "build-tags": ["circuitplay_bluefruit","nrf52840_reset_uf2", "softdevice", "s140v6"],
"flash-1200-bps-reset": "true",
"flash-method": "msd",
"msd-volume-name": "CPLAYBTBOOT",
diff --git a/targets/circuitplay-bluefruit.ld b/targets/circuitplay-bluefruit.ld
index a5befb8c3..19b4c22e8 100644
--- a/targets/circuitplay-bluefruit.ld
+++ b/targets/circuitplay-bluefruit.ld
@@ -7,4 +7,7 @@ MEMORY
_stack_size = 2K;
+/* This value is needed by the Nordic SoftDevice. */
+__app_ram_base = ORIGIN(RAM);
+
INCLUDE "targets/arm.ld"