nrf: add support for SoftDevices to PCA10040 board

Этот коммит содержится в:
Ayke van Laethem 2019-04-27 19:56:16 +02:00 коммит произвёл Ron Evans
родитель b153bd63f2
коммит 16fbf53ae2
5 изменённых файлов: 22 добавлений и 1 удалений

Просмотреть файл

@ -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

4
targets/nrf52-s132v6.json Обычный файл
Просмотреть файл

@ -0,0 +1,4 @@
{
"build-tags": ["softdevice"],
"linkerscript": "targets/nrf52-s132v6.ld"
}

10
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"

Просмотреть файл

@ -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": [

4
targets/pca10040-s132v6.json Обычный файл
Просмотреть файл

@ -0,0 +1,4 @@
{
"inherits": ["pca10040", "nrf52-s132v6"],
"ldscript": "targets/nrf52-s132v6.ld"
}