|
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
#define USER_FLASH_LAST_PAGE_ADDRESS 0x08007800
#define USER_FLASH_END_ADDRESS 0x08007FFF /* 64 KBytes */
#define FLASH_PAGE_SIZE 0x400 /* 1 Kbytes */
/* define the address from where user application will be loaded,
the application address should be a start sector address */
#define APPLICATION_ADDRESS (uint32_t)0x08003000
/* Get the number of Sector from where the user program will be loaded */
#define FLASH_PAGE_NUMBER (uint32_t)((APPLICATION_ADDRESS - 0x08000000) >> 6)
/* Compute the mask to test if the Flash memory, where the user program will be
loaded, is write protected */
#define FLASH_PROTECTED_PAGES ((uint32_t)~((1 << FLASH_PAGE_NUMBER) - 1))
/* define the user application size */
#define USER_FLASH_SIZE (USER_FLASH_END_ADDRESS - APPLICATION_ADDRESS + 1)
请问,使用串口IAP,stm32f042 的计算,这样是不是也不对呢?
flash_if.h 文件夹里面! |
阿莫论坛20周年了!感谢大家的支持与爱护!!
一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。
|