你好,我目前的情况是工程在ram中运行正常,通过添加boot_c671x.s62;c6713_emif.s62 ;boot_c671x.h62 这三个文件 然后修改link2.cmd文件,其中link2.cmd文件采用如下情况:
MEMORY
[
BOOTRAM: o = 00000000h l = 00000400h
IRAM: o = 00000400h l = 00020000h
FLASH_BOOT: o = 0x90000000 l = 00000400h
FLASH_REST: o = 0x90000400 l = 0001fc00h
DRAM1: o = 00A00000h l = 00100000h
DRAM2: o = 00B00000h l = 000FFFFEh
]
SECTIONS
[
.boot_load : load = FLASH_BOOT, run = BOOTRAM
/* Initialized User Code Section */
.text : load = FLASH_REST, run = IRAM
LOAD_START(_text_ld_start),
RUN_START(_text_rn_start),
SIZE(_text_size)
/* This is also a special initialized data section, which could stay
in ROM, however probably not desirable, due to Slow ROM access times.
const values never change, by definition. */
.cinit > FLASH_REST
.const > IRAM
.stack > IRAM
.bss > IRAM
.data > IRAM
.far > IRAM
.switch > IRAM
.sysmem > IRAM
.cio > IRAM
.csldata > IRAM
.tables > IRAM
.dcb_cmd_strt_addr > DRAM1
.dcb_reply_strt_addr > DRAM2
]
第二个问题
c_int00应该是直接取得全局lable的值 通过.ref c_int00导入boot_c671x.s62中使用