Programming Robobuilder with Labwindows

Korean company maker of Robot kits and servos designed for of articulated robots. Re-incarnation of Megarobotics.
3 postsPage 1 of 1
3 postsPage 1 of 1

Programming Robobuilder with Labwindows

Post by koli » Tue May 11, 2010 3:14 pm

Post by koli
Tue May 11, 2010 3:14 pm

Hi!

Someone can tell to me how I can "build" for example the project 3-5 aK_Position, in Labwindos, or any other C compiler that is not codevision?


Please I need help!

Thanks and sorry for my bad english
Hi!

Someone can tell to me how I can "build" for example the project 3-5 aK_Position, in Labwindos, or any other C compiler that is not codevision?


Please I need help!

Thanks and sorry for my bad english
koli offline
Robot Builder
Robot Builder
Posts: 7
Joined: Mon Apr 12, 2010 4:34 pm

Post by badcommandorfilename » Wed May 12, 2010 12:53 am

Post 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.
badcommandorfilename offline
Robot Builder
Robot Builder
Posts: 12
Joined: Fri Dec 11, 2009 11:34 am

Post by koli » Wed May 12, 2010 10:51 am

Post by koli
Wed May 12, 2010 10:51 am

Thanks!!!!!!
Thanks!!!!!!
koli offline
Robot Builder
Robot Builder
Posts: 7
Joined: Mon Apr 12, 2010 4:34 pm


3 postsPage 1 of 1
3 postsPage 1 of 1