by badcommandorfilename » Wed May 12, 2010 12:53 am
by badcommandorfilename
Wed May 12, 2010 12:53 am
The sample robobuilder source should compile with the open source compiler avr-gcc if you have the avr-libc headers.
- Code: Select all
avr-gcc -mmcu=atmega128 -I. -g -Wall -Os -c main.c
will compile the code,
- Code: Select all
avr-gcc -o main.elf -mmcu=atmega128 main.o comm.o dio.o
should link it, and
- Code: Select all
avr-objcopy -j .text -O ihex main.elf main.hex
will pack it into a .hex firmware file which can be downloaded to your RBC with the RBC upgrade tool. (here is
more info if you have problems)
This should work no problems under linux, but if you're stuck with windows you could try setting up these commands in your toolchain executables in whatever IDE you are using.
The the important thing to remember is that the RBC uses an AVR atmega128 chip. Any AVR compiler should be able to write programs for it.
The sample robobuilder source should compile with the open source compiler avr-gcc if you have the avr-libc headers.
- Code: Select all
avr-gcc -mmcu=atmega128 -I. -g -Wall -Os -c main.c
will compile the code,
- Code: Select all
avr-gcc -o main.elf -mmcu=atmega128 main.o comm.o dio.o
should link it, and
- Code: Select all
avr-objcopy -j .text -O ihex main.elf main.hex
will pack it into a .hex firmware file which can be downloaded to your RBC with the RBC upgrade tool. (here is
more info if you have problems)
This should work no problems under linux, but if you're stuck with windows you could try setting up these commands in your toolchain executables in whatever IDE you are using.
The the important thing to remember is that the RBC uses an AVR atmega128 chip. Any AVR compiler should be able to write programs for it.