Fire_STM32H750XB_QSPIFLM/include/FlashConfig.h

18 lines
734 B
C

//
// Created by imi415 on 23/02/04.
//
#ifndef FLASH_CONFIG_H
#define FLASH_CONFIG_H
#define APP_FLASH_BITS (25) /* 2^(25) */
#define APP_FLASH_BASE (0x90000000) /* QSPI Region 0 */
#define APP_FLASH_SIZE (64 * 1024 * 1024) /* 2 * 256Mb */
#define APP_FLASH_PAGE_SIZE (512) /* 2 * 256 */
#define APP_FLASH_SECTOR_SIZE (8 * 1024) /* 2 * 4kB */
#define APP_FLASH_SECTOR_ERASE_TIMEOUT (5000) /* 5s (400ms in manual) */
#define APP_FLASH_PAGE_PROGRAM_TIMEOUT (250) /* 250ms (3ms in manual) */
#define APP_FLASH_CHIP_ERASE_TIMEOUT (400 * 1000) /* 400s (as manual) */
#endif // FLASH_CONFIG_H