--nostdlib problem

Selukov Andrew <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Organization Home
Message-ID <[email protected]>
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-4/[email protected]:~/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-4/[email protected]:~/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



_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.