machine: Add support for Adafruit QT2040 board.

This commit is contained in:
Matt Schultz
2022-08-27 21:31:12 -05:00
committed by Ron Evans
parent fb603a471c
commit ef912a132d
6 changed files with 105 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
// Adafruit Trinkey QT2040 Stage 2 Bootloader
//
// This file defines the parameters specific to the flash-chip found
// on the Adafruit Trinkey QT2040. 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:8109"],
"build-tags": ["trinkey_qt2040"],
"linkerscript": "targets/trinkey-qt2040.ld",
"extra-files": [
"targets/trinkey-qt2040-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"