update flash size
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
#ifndef FLASH_MAX_UPGRADE_SIZE
|
||||
//#define FLASH_MAX_UPGRADE_SIZE (512 * 1024)
|
||||
#define FLASH_MAX_UPGRADE_SIZE (2200 * 1024)
|
||||
#define FLASH_MAX_UPGRADE_SIZE (2800 * 1024)
|
||||
#endif
|
||||
|
||||
#define FLASH_ERROR() do {} while(0)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#if HID_DFU_EN
|
||||
|
||||
#ifndef DFU_FLASH_MAX_UPGRADE_SIZE
|
||||
#define DFU_FLASH_MAX_UPGRADE_SIZE (2200 * 1024)
|
||||
#define DFU_FLASH_MAX_UPGRADE_SIZE (2800 * 1024)
|
||||
#endif
|
||||
|
||||
#define DFU_FLASH_ERROR()
|
||||
|
||||
@@ -22,7 +22,7 @@ swlock_t flash_lock = SWLOCK_INITIAL_VALUE;
|
||||
static rtos_qspi_flash_t qspi_flash_ctx_s;
|
||||
#define FLASH_CLKBLK XS1_CLKBLK_3
|
||||
#ifndef FS_BASE_ADDR
|
||||
#define FS_BASE_ADDR (2500 * 1024)
|
||||
#define FS_BASE_ADDR (3500 * 1024)
|
||||
#endif
|
||||
#define SECTOR_SIZE 4096
|
||||
rtos_qspi_flash_t *qspi_flash_ctx = &qspi_flash_ctx_s;
|
||||
|
||||
Reference in New Issue
Block a user