machine/badger2040: support for Badger 2040

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2022-05-20 10:56:40 +02:00
committed by Ron Evans
parent 7729a36782
commit f308d7d28c
3 changed files with 102 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
{
"inherits": [
"rp2040"
],
"serial": "uart",
"build-tags": ["badger2040"],
"linkerscript": "targets/badger2040.ld",
"extra-files": [
"targets/pico-boot-stage2.S"
]
}
+10
View File
@@ -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 = 1020K - 256
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256k
}
INCLUDE "targets/rp2040.ld"