3m flash size

This commit is contained in:
Steven Dan
2026-06-08 19:09:19 +08:00
parent ecba7b4863
commit e28072657b
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -46,7 +46,7 @@ typedef enum {
#define MAX_DATA_BLOCK_SIZE 57 // 最大数据块大小63字节HID数据包 - 5字节头部 - 1字节Checksum
#ifndef DFU_FLASH_MAX_UPGRADE_SIZE
#define DFU_FLASH_MAX_UPGRADE_SIZE (3200 * 1024)
#define DFU_FLASH_MAX_UPGRADE_SIZE (3000 * 1024)
#endif