ST意法半导体
直播中

宜家

8年用户 1089经验值
私信 关注
[问答]

请问FLM下载算法FlashDevice成员参数定义的超时时间如何计算的?

复制代码

  • #ifdef STM32F10x_128
  • struct FlashDevice const FlashDevice  =  {
  •    FLASH_DRV_VERS,             // Driver Version, do not modify!
  •    "STM32F10x Med-density Flash", // Device Name (128kB/64kB/32kB)
  •    ONCHIP,                     // Device Type
  •    0x08000000,                 // Device Start Address
  •    0x00020000,                 // Device Size in Bytes (128kB)
  •    1024,                       // Programming Page Size
  •    0,                          // Reserved, must be 0
  •    0xFF,                       // Initial Content of Erased Memory
  •    100,                        // Program Page Timeout 100 mSec
  •    500,                        // Erase Sector Timeout 500 mSec

  • // Specify Size and Address of Sectors
  •    0x0400, 0x000000,           // Sector Size 1kB (128 Sectors)
  •    SECTOR_END
  • };
  • #endif

复制代码


100, // Program Page Timeout 100 mSec

500, // Erase Sector Timeout 500 mSec

1、这个超时时间是根据程序大小比如32K,页大小1K,调用32次函数ProgramPage或EraseSector函数的总时间吗?
2、这个时间和SW时钟有关系吗?




更多回帖

×
20
完善资料,
赚取积分