(⊙o⊙)你 发表于 2014-6-2 10:51 
1、此方法计算原理还没有弄明白。
2、按照他的算法,实际测试后,查看
map文件,地址分配的不对。
例如:正确的地址是
0x68000000~0x680FFFFF
----------------------------------'-' 方法扩展SRAM------------------------------
define region RAM_region
= mem:[from 0x20000000 to 0x680FFFFE]
-mem:[from 0x2000FFFF to 0x67FFFFFF];
对应的map文件:
"P3": place in [from 0x20000000 to 0x2000fffe] |
[from 0x68000000 to 0x680ffffe] { rw, block CSTACK, block HEAP };
define region RAM_region
= mem:[from 0x20000000 to 0x680FFFFF]
-mem:[from 0x2000FFFF to 0x67FFFFFF];;
对应的map文件:
"P3": place in [from 0x20000000 to 0x2000fffe] |
[from 0x68000000 to 0x680fffff] { rw, block CSTACK, block HEAP };
define region RAM_region
= mem:[from 0x20000000 to 0x680FFFFF]
-mem:[from 0x2000FFFF to 0x68000000];
对应的map文件:
"P3": place in [from 0x20000000 to 0x2000fffe] |
[from 0x68000001 to 0x680fffff] { rw, block CSTACK, block HEAP };
--------------改成这样才可以-------------
define region RAM_region
= mem:[from 0x20000000 to 0x680FFFFF]
-mem:[from 0x20010000 to 0x67FFFFFF];
对应的map文件:
"P3": place in [from 0x20000000 to 0x2000ffff] |
[from 0x68000000 to 0x680fffff] { rw, block CSTACK, block HEAP };
-----------------------------------'|' 方法扩展SRAM-------------------------------
define region RAM_region
= mem:[from 0x20000000 to 0x2000FFFF]
| mem:[from 0x68000000 size 0x100000];
对应的map文件:
"P3": place in [from 0x20000000 to 0x2000ffff] |
[from 0x68000000 to 0x680fffff] { rw, block CSTACK, block HEAP };
|