leecny2012 发表于 2013-7-2 14:58:57

InRoot$$Sections是否必须和Startup.o(Reset,+First)放在一个运行域

InRoot$$Sections是否必须和Startup.o(Reset,+First)放在一个运行域,以下的写法是否有错误

ROM_LOAD 0x00000000 0x00001000         ;// Origination Point of Code (Code in Flash)
{
    ROM_EXEC 0x000000000x00001000    ;// Origination Point of Executing,可执行程序
    {
      Startup.o (Reset, +First)
    }

    IRAM 0x40000040                     ;// Origination Point of Internal SRAM
    {                                 ;// 0x40000000 ~ 0x4000003F for Vector (Redundancy)
      Startup.o (MyStacks)            ;// 其他文件
      * (+RW,+ZI)
    }

    STACKS_BOTTOM +0 UNINIT
    {
      Startup.o (StackBottom)
    }

    STACKS 0x40004000 UNINIT            ;// End Point of Internal SRAM
    {
      Startup.o (Stacks)
    }

    HEAP +0 UNINIT   
    {
      Startup.o (Heap)
    }

    HEAP_BOTTOM 0x40004000 UNINIT       ;// End Point of External SRAM
    {
      Startup.o (HeapTop)
    }
}

ROM_LOAD1 0x00002000
{
    ROM_EXEC1 0x00002000   
    {
      * (+RO)
    }
}

wazhiyi 发表于 2013-7-5 11:09:30

这类问题没有人回答啊,我也关注,楼主有什么新的动向吗?
页: [1]
查看完整版本: InRoot$$Sections是否必须和Startup.o(Reset,+First)放在一个运行域