Skip to content

Commit 47a975a

Browse files
aykevldeadprogram
authored andcommitted
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.
1 parent 8325244 commit 47a975a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/machine/board_circuitplay_bluefruit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package machine
44

5-
const HasLowFrequencyCrystal = true
5+
const HasLowFrequencyCrystal = false
66

77
// GPIO Pins
88
const (

targets/circuitplay-bluefruit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"inherits": ["nrf52840"],
3-
"build-tags": ["circuitplay_bluefruit","nrf52840_reset_uf2"],
3+
"build-tags": ["circuitplay_bluefruit","nrf52840_reset_uf2", "softdevice", "s140v6"],
44
"flash-1200-bps-reset": "true",
55
"flash-method": "msd",
66
"msd-volume-name": "CPLAYBTBOOT",

targets/circuitplay-bluefruit.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ MEMORY
77

88
_stack_size = 2K;
99

10+
/* This value is needed by the Nordic SoftDevice. */
11+
__app_ram_base = ORIGIN(RAM);
12+
1013
INCLUDE "targets/arm.ld"

0 commit comments

Comments
 (0)