|
发表于 2005-6-14 06:47:21
|
显示全部楼层
我用的是gcc3版本,所以不认识-mshort-load-bytes, 修正成
-malignment-traps
对于.lds 还没有研究, 解决不了 -N 的问题, 就不用它了, 把
LDFLAGS= -p -X -Thello.lds
改成
LDFLAGS= -p -X
从hello.n看到, 它的映射地址为 0x8000
修改 skyeye.conf
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
成
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00400000
然后就能运行hello程序了
$ skyeye
***********************************************************************
**** ****
**** SkyEye Simulator Ver 0.8.8 with GDB/Insight 5.3 Interface ****
**** ****
***********************************************************************
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This SkyEye was configured as "--host=i686-pc-cygwin --target=arm-elf".
(SkyEye) tar sim
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x4f8f70
log_info: log is off.
log_info:log file is ./sk1.log, fd is 0x10096924
log_info: log start clock 0
log_info: log end clock 200000
SKYEYE: use arm7100 mmu ops
Connected to the simulator.
(SkyEye) load hello
Loading section .text, size 0x50 vma 0x8000
Loading section .rodata, size 0xb vma 0x8050
Loading section .data, size 0x1000 vma 0x8160
Start address 0x8000
Transfer rate: 33496 bits in <1 sec.
(SkyEye) run
Starting program:
warning: No executable file specified.
helloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld
helloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld
helloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld
helloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld |
|