Skip to content

Commit

Permalink
serial: 调整擦除和校验的超时,以便适应 CSK3/4 的实际性能
Browse files Browse the repository at this point in the history
  • Loading branch information
xychen committed Jun 21, 2023
1 parent 459af91 commit 7275d70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcskburn_serial/src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
#define TIMEOUT_FLASH_DATA 1000

// Flash 擦除指令超时时间 (每 MB)
// 实测约 468KB/s,即每 MB 约 2190ms
// 实测约 405KB/s,即每 MB 约 2530ms
// 取保守值
#define TIMEOUT_FLASH_ERASE_PER_MB 4000

// MD5 计算指令超时时间 (每 MB)
// 实测约 4096KB/s,即每 MB 约 250ms
// 实测约 1882KB/s,即每 MB 约 540ms
// 取保守值
#define TIMEOUT_FLASH_MD5SUM_PER_MB 500
#define TIMEOUT_FLASH_MD5SUM_PER_MB 1000

typedef struct {
uint32_t size;
Expand Down

0 comments on commit 7275d70

Please sign in to comment.