shuichan_new/STM32F103_App1/m_app/ota_app.h

17 lines
533 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef OTA_APP_H
#define OTA_APP_H
/*===== Flash 分区定义W25Q64 外部 Flash OTA =====*/
#define PageSize 0x800U // Flash页大小 RCT6=2KB
// STM32F103RCT6: 256KB Flash (0x08000000 ~ 0x0803FFFF)
// 分区BootLoader=32KB, APP1=224KBOTA 固件先存 W25Q64
#define BootLoader_addr 0x08000000U ///< BootLoader 基首地址
#define Application_1_Addr 0x08008000U ///< APP1 运行区基首地址
#define BootLoader_Size 0x8000U ///< BootLoader 大小 32K
#define Application_Size 0x38000U ///< APP1 大小 224K
#endif /* OTA_APP_H */