中级会员
 
- 积分
- 370
- 金钱
- 370
- 注册时间
- 2012-9-7
- 在线时间
- 3 小时
|

楼主 |
发表于 2013-9-26 11:25:50
|
显示全部楼层
回复【2楼】正点原子:
103?貌似说FSMC是有个什么bug,具体不记得了,你查查吧。 另外,请教一下:你这一部分代码 在内部sram运行,另外一部分代码 在外部sram运行,怎么做到的?
---------------------------------
通过链接脚本
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x20000000 0x00004000 { ; load region size_region
ER_IROM1 0x20000000 0x00004000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
startup_stm32f10x_hd.o (+RO)
system_stm32f10x.o (+RO)
bsp_int.o (+RO)
bsp_sdcard.o (+RO)
}
RW_IRAM1 0x20004000 0x0000C000 { ; RW data
.ANY (+RW +ZI)
}
}
LR_IROM2 0x68000000 0x00080000 {
ER_IROM2 0x68000000 0x00080000 { ; load address = execution address
.ANY (+RO)
}
}
然后在C++选项Define加入DATA_IN_ExtSRAM,在内部SRAM运行的system_stm32f10x.o代码初始化FSMC |
|