Merge pull request #4247 from tannewt/rp2040_flash_size

Board specific flash sizes for RP2040
This commit is contained in:
Dan Halbert 2021-02-22 22:33:07 -05:00 committed by GitHub
commit cca6cfe026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View File

@ -12,3 +12,6 @@
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
// Flash chip is GD25Q32 connected over QSPI
#define TOTAL_FLASH_SIZE (4 * 1024 * 1024)

View File

@ -12,3 +12,6 @@
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
// Flash chip is GD25Q32 connected over QSPI
#define TOTAL_FLASH_SIZE (4 * 1024 * 1024)

View File

@ -13,3 +13,6 @@
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
// Flash chip is W25Q16JVUXIQ connected over QSPI
#define TOTAL_FLASH_SIZE (2 * 1024 * 1024)

View File

@ -44,10 +44,7 @@
#include "src/rp2_common/hardware_flash/include/hardware/flash.h"
#include "src/common/pico_binary_info/include/pico/binary_info.h"
#define RESERVED_FLASH 1 * 1024 * 1024
// TODO: Parameterize flash size based on the configured flash.
#define TOTAL_FLASH_SIZE 2 * 1024 * 1024
#define RESERVED_FLASH (1 * 1024 * 1024)
// TODO: Split the caching out of supervisor/shared/external_flash so we can use it.
#define SECTOR_SIZE 4096