我的分散加载文件是这样写的:
LOAD_ROM1 0x00000000 { EXEC_ROM1 0x00000000 { bootsys.o (BOOTSYS_IVT, +First) * (+RO) }
}
LOAD_ROM2 0x00000200 0x30000 { EXEC_ROM2 +0 {
* (+RO) }
BB_RAM 0x40000000 0x4000 {
* (+RW,+ZI) }
}
我引用的时候是这样做的: extern unsigned char Load$$BB_RAM$$Base; extern unsigned char Image$$BB_RAM$$Length;
long *dst32; long *src32; long *stop_point;
void boot_ram_init() {
stop_point = (long *) ( (long) Load$$BB_RAM$$Base + (long) Image$$BB_RAM$$Length);
}
但是在ADS1.2的编译器下报错:
Error : L6218E: Undefined symbol Load$$BB_RAM$$Base (referred from boothw_5868.o). Error : L6218E: Undefined symbol Image$$BB_RAM$$Length (referred from boothw_5868.o).
|