mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
nrf: add support for SoftDevices to PCA10040 board
This commit is contained in:
committed by
Ron Evans
parent
b153bd63f2
commit
16fbf53ae2
@@ -187,6 +187,8 @@ smoketest:
|
|||||||
$(TINYGO) build -o test.wasm -tags=pca10056 examples/blinky2
|
$(TINYGO) build -o test.wasm -tags=pca10056 examples/blinky2
|
||||||
@$(MD5SUM) test.wasm
|
@$(MD5SUM) test.wasm
|
||||||
# test all targets/boards
|
# test all targets/boards
|
||||||
|
$(TINYGO) build -size short -o test.hex -target=pca10040-s132v6 examples/blinky1
|
||||||
|
@$(MD5SUM) test.hex
|
||||||
$(TINYGO) build -size short -o test.hex -target=microbit examples/echo
|
$(TINYGO) build -size short -o test.hex -target=microbit examples/echo
|
||||||
@$(MD5SUM) test.hex
|
@$(MD5SUM) test.hex
|
||||||
$(TINYGO) build -size short -o test.hex -target=nrf52840-mdk examples/blinky1
|
$(TINYGO) build -size short -o test.hex -target=nrf52840-mdk examples/blinky1
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"build-tags": ["softdevice"],
|
||||||
|
"linkerscript": "targets/nrf52-s132v6.ld"
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
MEMORY
|
||||||
|
{
|
||||||
|
FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 0x00026000 , LENGTH = 256K - 0x00026000 /* .text */
|
||||||
|
RAM (xrw) : ORIGIN = 0x20000000 + 0x000039c0, LENGTH = 64K - 0x000039c0
|
||||||
|
}
|
||||||
|
|
||||||
|
_stack_size = 4K;
|
||||||
|
|
||||||
|
INCLUDE "targets/arm.ld"
|
||||||
+2
-1
@@ -7,7 +7,8 @@
|
|||||||
"-mfloat-abi=soft",
|
"-mfloat-abi=soft",
|
||||||
"-Qunused-arguments",
|
"-Qunused-arguments",
|
||||||
"-DNRF52832_XXAA",
|
"-DNRF52832_XXAA",
|
||||||
"-I{root}/lib/CMSIS/CMSIS/Include"
|
"-I{root}/lib/CMSIS/CMSIS/Include",
|
||||||
|
"-I{root}/lib/nrfx/mdk"
|
||||||
],
|
],
|
||||||
"linkerscript": "targets/nrf52.ld",
|
"linkerscript": "targets/nrf52.ld",
|
||||||
"extra-files": [
|
"extra-files": [
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"inherits": ["pca10040", "nrf52-s132v6"],
|
||||||
|
"ldscript": "targets/nrf52-s132v6.ld"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user