icf文件 define region NearFuncCode

2019-07-19 20:26发布


define memory with size = 16M;

define region TinyData = [from 0x00 to 0xFF];

define region NearData = [from 0x0000 to 0x17FF];

define region Eeprom = [from 0x4000 to 0x47FF];

define region BootROM = [from 0x6000 to 0x67FF];

define region NearFuncCode = [from 0x9800 to 0x17FFF];//icf文件 define region NearFuncCode初始地址大于0x8000烧录时程序卡死//

//define region FarFuncCode = [from 0x8000 to 0xFFFF]
                    //      | [from 0x10000 to 0x1FFFF]
                    //      | [from 0x20000 to 0x27FFF];

define region FarFuncCode = [from 0x9800 to 0xFFFF]
                          | [from 0x10000 to 0x1FFFF]
                          | [from 0x20000 to 0x27FFF];


//define region HugeFuncCode = [from 0x8000 to 0x17FFF];

define region HugeFuncCode = [from 0x9800 to 0x17FFF];
/////////////////////////////////////////////////////////////////

define block CSTACK with size = _CSTACK_SIZE  {};

define block HEAP  with size = _HEAP_SIZE {};

define block INTVEC with size = 0x80 { ro section .intvec };
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。