现在报错跳转失败在boot的这个地方:
IAP的跳转地址都已经修改过来,
#ifndef HC32F4A0
#define HC32F4A0
#endif
/* Flash definitions */
#if defined(HC32F460) || defined(HC32F4A0)
// #define EFM_BASE (M4_EFM)
#define FLASH_SECTOR_SIZE (0x2000UL)
#define FLASH_BASE (0UL)
#if defined(HC32F460)
#define FLASH_SIZE (64U * FLASH_SECTOR_SIZE)
#define SRAM_BASE (0x1FFF8000UL)
#define RAM_SIZE (0x02F000UL)
#elif defined(HC32F4A0)
#define FLASH_SIZE (256U * FLASH_SECTOR_SIZE)
#define SRAM_BASE (0x1FFE0000UL)
#define RAM_SIZE (0x080000UL)
#define BOOT_WAIT_TIME (2000UL) //ms
#if defined(HC32F460) || defined(HC32F4A0)
#define BOOT_SIZE (128U * FLASH_SECTOR_SIZE)
#elif defined(HC32F120) || defined(HC32M120) || defined(HC32F160)
#define BOOT_SIZE (8U * FLASH_SECTOR_SIZE)
#elif defined(HC32M423)
#define BOOT_SIZE (16U * FLASH_SECTOR_SIZE)
#endif
#define APP_FLAG_ADDRESS (FLASH_BASE + BOOT_SIZE - 4U)
#define APP_UPGRADE_ADDRESS (FLASH_BASE + BOOT_SIZE - 8U)
#define APP_RUN_ADDRESS (FLASH_BASE + BOOT_SIZE - 12U)
#define APP_FLAG (0x67890123UL)
#define APP_UPGRADE_FLAG (0xA5B6C7D8UL)
现在报错跳转失败在boot的这个地方:
IAP的跳转地址都已经修改过来,
#ifndef HC32F4A0
#define HC32F4A0
#endif
/* Flash definitions */
#if defined(HC32F460) || defined(HC32F4A0)
// #define EFM_BASE (M4_EFM)
#define FLASH_SECTOR_SIZE (0x2000UL)
#define FLASH_BASE (0UL)
#if defined(HC32F460)
#define FLASH_SIZE (64U * FLASH_SECTOR_SIZE)
#define SRAM_BASE (0x1FFF8000UL)
#define RAM_SIZE (0x02F000UL)
#elif defined(HC32F4A0)
#define FLASH_SIZE (256U * FLASH_SECTOR_SIZE)
#define SRAM_BASE (0x1FFE0000UL)
#define RAM_SIZE (0x080000UL)
#define BOOT_WAIT_TIME (2000UL) //ms
#if defined(HC32F460) || defined(HC32F4A0)
#define BOOT_SIZE (128U * FLASH_SECTOR_SIZE)
#elif defined(HC32F120) || defined(HC32M120) || defined(HC32F160)
#define BOOT_SIZE (8U * FLASH_SECTOR_SIZE)
#elif defined(HC32M423)
#define BOOT_SIZE (16U * FLASH_SECTOR_SIZE)
#endif
#define APP_FLAG_ADDRESS (FLASH_BASE + BOOT_SIZE - 4U)
#define APP_UPGRADE_ADDRESS (FLASH_BASE + BOOT_SIZE - 8U)
#define APP_RUN_ADDRESS (FLASH_BASE + BOOT_SIZE - 12U)
#define APP_FLAG (0x67890123UL)
#define APP_UPGRADE_FLAG (0xA5B6C7D8UL)
举报