This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28035上怎样指定_c_int00地址?



大家好;

        我现在遇到了这样的问题,我需要指定“_c_int00”的地址,项目中采用了rts2800_ml.lib这个函数库,通过以下的方式指定Flash地址

BootAPI:
   {
        -lrts2800_ml.lib(.text BootFlash)
        -lrts2800_ml.lib(.cinit BootFlash)
   }                     > FLASHI        PAGE = 0
这种方式在单独的Bootloader中指定地址有效。

目前我需要把Bootloader与项目的APP应用合并成一个项目。我使用上面的方式没法指定Flash地址。

processors.wiki.ti.com/.../Accessing_c_int00

这个文章中使用的方法我都试过,还是不行,请各位专家指导一下,万分感谢。

  • james,

    首先在page0的memory中定义一个地址,是_c_int00所要放的地址,如

    CINT00      : origin = 0x13E000, length = 0x000050

    然后在段中定义如下语句

      boot                : > CINT00      PAGE = 0

     {     -l rts2800_fpu32.lib<boot.obj>(.text)      /*fix _c_int00 address as 0x13e000*/

     }

    这样就把c_int00固定住了。

    Eric