中级会员
 
- 积分
- 446
- 金钱
- 446
- 注册时间
- 2013-2-20
- 在线时间
- 1 小时
|
5金钱
最近做STM32F0 IAP,发现出现了以下错误:
.\STM320518_EVAL\STM320518_EVAL.axf: Error: L6971E: system_stm32f0xx.o(.data) type RW incompatible with main.o(.ARM.__AT_0x20000000) type ZI in er RW_IRAM1.
以下是IAP中APP需要加载的代码:
//设置中断向量表的地址
__IO uint32_t VectorTable[48] __attribute__((at(0x20000000)));
for(i = 0; i < 48; i++)
{
VectorTable = *(__IO uint32_t*)(APPLICATION_ADDRESS + (i<<2));
}
/* Enable the SYSCFG peripheral clock*/
RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, ENABLE);
/* Remap SRAM at 0x00000000 */
SYSCFG_MemoryRemapConfig(SYSCFG_MemoryRemap_SRAM);
可是就出现如下的错误,没有加的时候就灭有出现以上的错误。
还是是编译器问题,用的是MDK5.13,不过没试过。。。。
|
最佳答案
查看完整内容[请看2#楼]
把 : RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, ENABLE);
改成: RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
|