From 58bf13b0569714d03afe101a3abb4d2419ec9e30 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期日, 25 二月 2024 19:04:38 +0800 Subject: [PATCH] Merge branch '免布线基站-lora' of http://47.108.70.204:60062/r/XRange_Tag into 免布线基站-lora --- Src/OnChipDevices/Flash.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Src/OnChipDevices/Flash.h b/Src/OnChipDevices/Flash.h index 1ebecef..c41edbe 100644 --- a/Src/OnChipDevices/Flash.h +++ b/Src/OnChipDevices/Flash.h @@ -1,12 +1,11 @@ #include "main.h" -#define FLASH_SIZE (uint32_t)0x10000 #define PAGE_SIZE (0x100) //C8T6 Flash is 64KB ,each page is 256Byte #define MAX_FPAGE_NUM 64 #define FLASH_BASE_ADDR (uint32_t)0x08000000 //the start address of APP,keep the 0x8000000-0x8004FFF forIAP(20K) -#define FLASH_IAP_CTRL_MAP (uint32_t)0x0800F000 //the control map start address, 63K +#define FLASH_IAP_CTRL_MAP (uint32_t)0x0800FC00 //the control map start address, 63K #define MAX_APP_ADDR (uint32_t)0x0800FFFF //the max array of Flash address @@ -18,5 +17,5 @@ void FLASH_Read( uint32_t Address, uint8_t *Readbuff, uint32_t Len); uint32_t FLASH_Write( uint32_t Address, const uint8_t* pData, uint32_t Len); void FLASH_Dis_WriteProt_Pages(void); - +unsigned short int STMFLASH_ReadHalfWord(unsigned int faddr); -- Gitblit v1.9.3