17 lines
533 B
C
17 lines
533 B
C
|
|
#ifndef OTA_APP_H
|
|||
|
|
#define OTA_APP_H
|
|||
|
|
|
|||
|
|
/*===== Flash <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>壨W25Q64 <20>ⲿ Flash OTA<54><41> =====*/
|
|||
|
|
|
|||
|
|
#define PageSize 0x800U // Flashҳ<68><D2B3>С RCT6=2KB
|
|||
|
|
|
|||
|
|
// STM32F103RCT6: 256KB Flash (0x08000000 ~ 0x0803FFFF)
|
|||
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>BootLoader=32KB, APP1=224KB<4B><42>OTA <20>̼<EFBFBD><CCBC>ȴ<EFBFBD> W25Q64
|
|||
|
|
#define BootLoader_addr 0x08000000U ///< BootLoader <20><><EFBFBD><EFBFBD>ַ
|
|||
|
|
#define Application_1_Addr 0x08008000U ///< APP1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ
|
|||
|
|
|
|||
|
|
#define BootLoader_Size 0x8000U ///< BootLoader <20><>С 32K
|
|||
|
|
#define Application_Size 0x38000U ///< APP1 <20><>С 224K
|
|||
|
|
|
|||
|
|
#endif /* OTA_APP_H */
|