mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 12:59:04 +00:00
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.
This commit is contained in:
committed by
Ron Evans
parent
83252448b0
commit
47a975a44f
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
package machine
|
package machine
|
||||||
|
|
||||||
const HasLowFrequencyCrystal = true
|
const HasLowFrequencyCrystal = false
|
||||||
|
|
||||||
// GPIO Pins
|
// GPIO Pins
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"inherits": ["nrf52840"],
|
"inherits": ["nrf52840"],
|
||||||
"build-tags": ["circuitplay_bluefruit","nrf52840_reset_uf2"],
|
"build-tags": ["circuitplay_bluefruit","nrf52840_reset_uf2", "softdevice", "s140v6"],
|
||||||
"flash-1200-bps-reset": "true",
|
"flash-1200-bps-reset": "true",
|
||||||
"flash-method": "msd",
|
"flash-method": "msd",
|
||||||
"msd-volume-name": "CPLAYBTBOOT",
|
"msd-volume-name": "CPLAYBTBOOT",
|
||||||
|
|||||||
@@ -7,4 +7,7 @@ MEMORY
|
|||||||
|
|
||||||
_stack_size = 2K;
|
_stack_size = 2K;
|
||||||
|
|
||||||
|
/* This value is needed by the Nordic SoftDevice. */
|
||||||
|
__app_ram_base = ORIGIN(RAM);
|
||||||
|
|
||||||
INCLUDE "targets/arm.ld"
|
INCLUDE "targets/arm.ld"
|
||||||
|
|||||||
Reference in New Issue
Block a user