Add qtpy-rp2040 to TinyGo v0.25.0

This commit is contained in:
Isaac Rodman
2022-09-01 16:12:39 -07:00
committed by sago35
parent e955aa1941
commit 4223a60823
6 changed files with 161 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
// Adafruit QT Py RP2040 Stage 2 Bootloader
//
// This file defines the parameters specific to the flash-chip found
// on the Adafruit QT Py RP2040. The generic implementation is in
// rp2040-boot-stage2.S
//
#define BOARD_PICO_FLASH_SPI_CLKDIV 4
#define BOARD_CMD_READ 0xe7
#define BOARD_QUAD_OK 1
#define BOARD_QUAD_ENABLE_STATUS_BYTE 2
#define BOARD_QUAD_ENABLE_BIT_MASK 2
#define BOARD_SPLIT_STATUS_WRITE 1
#define BOARD_WAIT_CYCLES 2
#include "rp2040-boot-stage2.S"
+11
View File
@@ -0,0 +1,11 @@
{
"inherits": [
"rp2040"
],
"serial-port": ["acm:239a:80f1"],
"build-tags": ["qtpy_rp2040"],
"linkerscript": "targets/qtpy-rp2040.ld",
"extra-files": [
"targets/qtpy-rp2040-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 = 8192K - 256
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256k
}
INCLUDE "targets/rp2040.ld"