update flash size 2500

This commit is contained in:
Steven Dan
2026-05-20 08:58:10 +08:00
parent f5b61fba65
commit fe7ac4d781
4 changed files with 4 additions and 6 deletions

View File

@@ -23,7 +23,7 @@
*/ */
#ifndef FLASH_MAX_UPGRADE_SIZE #ifndef FLASH_MAX_UPGRADE_SIZE
//#define FLASH_MAX_UPGRADE_SIZE (512 * 1024) //#define FLASH_MAX_UPGRADE_SIZE (512 * 1024)
#define FLASH_MAX_UPGRADE_SIZE (3200 * 1024) #define FLASH_MAX_UPGRADE_SIZE (2500 * 1024)
#endif #endif
#define FLASH_ERROR() do {} while(0) #define FLASH_ERROR() do {} while(0)

View File

@@ -14,7 +14,7 @@
#if HID_DFU_EN #if HID_DFU_EN
#ifndef DFU_FLASH_MAX_UPGRADE_SIZE #ifndef DFU_FLASH_MAX_UPGRADE_SIZE
#define DFU_FLASH_MAX_UPGRADE_SIZE (3200 * 1024) #define DFU_FLASH_MAX_UPGRADE_SIZE (2500 * 1024)
#endif #endif
#define DFU_FLASH_ERROR() #define DFU_FLASH_ERROR()
@@ -270,4 +270,3 @@ int dfu_flash_cmd_erase_all(void)
return 0; return 0;
} }
#endif #endif

View File

@@ -14,7 +14,7 @@
#if HID_DFU_EN #if HID_DFU_EN
#ifndef DFU_FLASH_MAX_UPGRADE_SIZE #ifndef DFU_FLASH_MAX_UPGRADE_SIZE
#define DFU_FLASH_MAX_UPGRADE_SIZE (3200 * 1024) #define DFU_FLASH_MAX_UPGRADE_SIZE (2500 * 1024)
#endif #endif
#define DFU_FLASH_ERROR() #define DFU_FLASH_ERROR()
@@ -270,4 +270,3 @@ int dfu_flash_cmd_erase_all(void)
return 0; return 0;
} }
#endif #endif

View File

@@ -14,7 +14,7 @@
#if HID_DFU_EN #if HID_DFU_EN
#ifndef DFU_FLASH_MAX_UPGRADE_SIZE #ifndef DFU_FLASH_MAX_UPGRADE_SIZE
#define DFU_FLASH_MAX_UPGRADE_SIZE (3200 * 1024) #define DFU_FLASH_MAX_UPGRADE_SIZE (2500 * 1024)
#endif #endif
#define DFU_FLASH_ERROR() #define DFU_FLASH_ERROR()