From: Selukov A. <uns...@ma...> - 2004-01-12 11:03:13
|
hi I have a some problem I work with tini400 I want write program what copy data(program) from 0x420000 FLASH MEMORY to 0x200000 RAM and then goto 0x200000(run it) I find samples on dallas ftp://ftp.dalsemi.com/pub/tini/reference_designs/netspeaker/networkspeaker_source.zip see file init.a51. This(ini.a51) files can't executioned itself I mean I must go command B41 X in JAVAKIT-shell How can I avoid it? I try rewrite startup code(_sdcc_external_startup) in tinibios.c I turn off standard library directory in the search path --nostdlib and add -L ds400 And I had error andrew@darkstar:~/temp/tini/work/coper$ make ../../../../bin/sdcc -c -mds400 --nostdlib -L ds400/ coper.c ../../../../bin/sdcc -mds400 --nostdlib -L ds400/ --xram-loc 0x10000 --code-loc 0x220000 -Wl-r coper.rel ?ASlink-Warning-Undefined Global '_romInit' referenced by module 'coper' ?ASlink-Warning-Undefined Global '__sdcc_external_startup' referenced by module 'coper' ?ASlink-Warning-Undefined Global '_romInit_PARM_2' referenced by module 'coper' ?ASlink-Warning-Undefined Global '_printf' referenced by module 'coper' make: *** [coper.ihx] Error 1 and if --nostdlib off andrew@darkstar:~/temp/tini/work/coper$ make ../../../../bin/sdcc -c -mds400 -L ds400/ coper.c ../../../../bin/sdcc -mds400 -L ds400/ --xram-loc 0x10000 --code-loc 0x220000 -Wl-r coper.rel ?Aslink-Warning-Definition of public symbol '_romInit' found more than once: Library: 'ds400/libds400.lib', Module: 'tinibios.rel' Library: '/usr/local/share/sdcc/lib/ds400/libds400.lib', Module: 'tinibios.rel' ?Aslink-Warning-Definition of public symbol '_task_settickreload' found more than once: Library: 'ds400/libds400.lib', Module: 'ds400rom.rel' Library: '/usr/local/share/sdcc/lib/ds400/libds400.lib', Module: 'ds400rom.rel' packihx coper.ihx >coper.hex packihx: read 1227 lines, wrote 791: OK. What did i do wrong? P.S. Sorry for bad English |