diff options
author | Olaf Flebbe <[email protected]> | 2022-04-23 22:23:37 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-04-24 10:56:52 +0200 |
commit | 27d38a966340f47ed4530bf205dbba008e6de10d (patch) | |
tree | 30724630502d1fefb798cf35ba7a3844e00c7e54 /targets | |
parent | ee497a296b8afcde3f8b15fb68223818e5a2dda6 (diff) | |
download | tinygo-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.json | 11 | ||||
-rw-r--r-- | targets/thingsplus-rp2040.ld | 10 |
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 |