avr-gcc -mmcu=at90s4414 -I/usr/avr/include -Os -Wall -o foo foo.c
avr-gcc -mmcu=at90s4414 -I/usr/avr/include -Os -Wall -c foo.c ava -o foo /my/own/crt1.o foo.o
Note that crt1 must be the first object given to the linker.
uisp /dev/tty00 --AtmelTAvr S8515A
Please don't forget to clear the flash memory before uploading your
code (command ce
).
ce
ul filename
q
An alternative way to upload code to the car would be:
uisp /dev/tty00 --AtmelTAvr S8515A --erase --upload filename
Be careful, execution will start right after you're done with uploading.
You are missing -mmcu=at90s4414
You don't have /usr/avr/bin in your path. This can happen eg. if you have a local .rc file which overrides the default path. To set things right, for bourne style shells (ksh, sh, ...) run:
PATH="/usr/avr/bin:${PATH}" export PATHOr for a csh-style shell:
setenv PATH "/usr/avr/bin:${PATH}"
If you find some information to be in{correct,accurate} or even just simply missing, please let me know about it.
Antti Kantee <pooka@cs.hut.fi>