aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorOlaf Flebbe <[email protected]>2022-04-23 22:23:37 +0200
committerRon Evans <[email protected]>2022-04-24 10:56:52 +0200
commit27d38a966340f47ed4530bf205dbba008e6de10d (patch)
tree30724630502d1fefb798cf35ba7a3844e00c7e54 /targets
parentee497a296b8afcde3f8b15fb68223818e5a2dda6 (diff)
downloadtinygo-27d38a966340f47ed4530bf205dbba008e6de10d.tar.gz
tinygo-27d38a966340f47ed4530bf205dbba008e6de10d.zip
machine/board_thingsplus_rp2040 targets/thingsplus-rp2040: support sparkfun thingsplus rp2040 board
Diffstat (limited to 'targets')
-rw-r--r--targets/thingsplus-rp2040.json11
-rw-r--r--targets/thingsplus-rp2040.ld10
2 files changed, 21 insertions, 0 deletions
diff --git a/targets/thingsplus-rp2040.json b/targets/thingsplus-rp2040.json
new file mode 100644
index 000000000..814172c04
--- /dev/null
+++ b/targets/thingsplus-rp2040.json
@@ -0,0 +1,11 @@
+{
+ "inherits": [
+ "rp2040"
+ ],
+ "serial": "uart",
+ "build-tags": ["thingsplus_rp2040"],
+ "linkerscript": "targets/thingsplus-rp2040.ld",
+ "extra-files": [
+ "targets/pico-boot-stage2.S"
+ ]
+}
diff --git a/targets/thingsplus-rp2040.ld b/targets/thingsplus-rp2040.ld
new file mode 100644
index 000000000..5e49f3b83
--- /dev/null
+++ b/targets/thingsplus-rp2040.ld
@@ -0,0 +1,10 @@
+
+MEMORY
+{
+ /* Reserve exactly 256 bytes at start of flash for second stage bootloader */
+ BOOT2_TEXT (rx) : ORIGIN = 0x10000000, LENGTH = 256
+ FLASH_TEXT (rx) : ORIGIN = 0x10000000 + 256, LENGTH = 16384K - 256
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256k
+}
+
+INCLUDE "targets/rp2040.ld" \ No newline at end of file