Browse Source

feather-rp2040,macropad-rp2040: fix qspi-flash settings

pull/2963/head
sago35 2 years ago
committed by Ron Evans
parent
commit
7eaad62568
  1. 2
      targets/feather-rp2040-boot-stage2.S
  2. 17
      targets/macropad-rp2040-boot-stage2.S
  3. 2
      targets/macropad-rp2040.json

2
targets/feather-rp2040-boot-stage2.S

@ -6,7 +6,7 @@
// rp2040-boot-stage2.S
//
#define BOARD_PICO_FLASH_SPI_CLKDIV 2
#define BOARD_PICO_FLASH_SPI_CLKDIV 4
#define BOARD_CMD_READ 0xe7
#define BOARD_QUAD_OK 1
#define BOARD_QUAD_ENABLE_STATUS_BYTE 2

17
targets/macropad-rp2040-boot-stage2.S

@ -0,0 +1,17 @@
// Adafruit MacroPad RP2040 Stage 2 Bootloader
//
// This file defines the parameters specific to the flash-chip found
// on the Adafruit MacroPad RP2040. The generic implementation is in
// rp2040-boot-stage2.S
//
#define BOARD_PICO_FLASH_SPI_CLKDIV 4
#define BOARD_CMD_READ 0xeb
#define BOARD_QUAD_OK 1
#define BOARD_QUAD_ENABLE_STATUS_BYTE 2
#define BOARD_QUAD_ENABLE_BIT_MASK 2
#define BOARD_SPLIT_STATUS_WRITE 0
#define BOARD_WAIT_CYCLES 4
#include "rp2040-boot-stage2.S"

2
targets/macropad-rp2040.json

@ -7,6 +7,6 @@
"serial-port": ["acm:239a:8107"],
"linkerscript": "targets/pico.ld",
"extra-files": [
"targets/pico-boot-stage2.S"
"targets/macropad-rp2040-boot-stage2.S"
]
}

Loading…
Cancel
Save