Help needed for compilation of C codes..any kind souls?

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

Help needed for compilation of C codes..any kind souls?

Post by yoshi_sx » Fri Jun 04, 2010 8:31 am

Post by yoshi_sx
Fri Jun 04, 2010 8:31 am

Hi guys,



I am currently working on an robotics project involving the RoboBuilder 5720K.

I intend to program in C for this robot, however, I have a small problem ahead of me.

I would create motionfiles with motionbuilder, then create a header for the particular motion, and lastly, add the header in to the C source code of my robot.

There lies the problem, I am currently using CodeVision AVR evaluation to compile the C codes into an hex file. The evaluation version would always give me lots of error, which is weird, because the source code is from RoboBuilder themself.



Is there any other way or program to compile these C codes into an hex file? Is there a complete read me to use winAVR to compile them?



I would really appreciate your help.

Thank you so much in advance!
Hi guys,



I am currently working on an robotics project involving the RoboBuilder 5720K.

I intend to program in C for this robot, however, I have a small problem ahead of me.

I would create motionfiles with motionbuilder, then create a header for the particular motion, and lastly, add the header in to the C source code of my robot.

There lies the problem, I am currently using CodeVision AVR evaluation to compile the C codes into an hex file. The evaluation version would always give me lots of error, which is weird, because the source code is from RoboBuilder themself.



Is there any other way or program to compile these C codes into an hex file? Is there a complete read me to use winAVR to compile them?



I would really appreciate your help.

Thank you so much in advance!
yoshi_sx offline
Robot Builder
Robot Builder
Posts: 11
Joined: Fri Jun 04, 2010 8:23 am

Post by AlexanderHWUK » Fri Jun 18, 2010 3:37 pm

Post by AlexanderHWUK
Fri Jun 18, 2010 3:37 pm

Hey there!

More than a solution, is a comment about your problem. I had to do a project that involved creating software to control a Robobuilder from a PC, and the first thing I tried was to edit the Robobuilder C Source code and playing around with the .hex files.

A hint from an amateur programmer, don't.
The original source code provides many functionalities that you may lose when you change it, and you risk getting lots of errors. You can try to change it if you are experienced or if there is no other way to do it.

A much easier solution for what you are trying to do (which sounds like you want the robot to do certain custom motions based on a C program), would be to create a simple program that runs in a pc, that communicates with the Robobuilder when you want it to perform a motion.
If you want to use custom motions, you can download them into the robobuilder easily and execute them as "custom" motions, instead of adding them into the hex files, etc.

If this method interests you, I can tell you how I did it for my project http://robosavvy.com/forum/viewtopic.php?t=6016, or you could ask l3v3rz, the master that helped me on the way. He also developed an open source firmware that adds lots of cool functionalities to the Robobuilder: http://code.google.com/p/robobuilderlib/

Good luck!

Alex
Hey there!

More than a solution, is a comment about your problem. I had to do a project that involved creating software to control a Robobuilder from a PC, and the first thing I tried was to edit the Robobuilder C Source code and playing around with the .hex files.

A hint from an amateur programmer, don't.
The original source code provides many functionalities that you may lose when you change it, and you risk getting lots of errors. You can try to change it if you are experienced or if there is no other way to do it.

A much easier solution for what you are trying to do (which sounds like you want the robot to do certain custom motions based on a C program), would be to create a simple program that runs in a pc, that communicates with the Robobuilder when you want it to perform a motion.
If you want to use custom motions, you can download them into the robobuilder easily and execute them as "custom" motions, instead of adding them into the hex files, etc.

If this method interests you, I can tell you how I did it for my project http://robosavvy.com/forum/viewtopic.php?t=6016, or you could ask l3v3rz, the master that helped me on the way. He also developed an open source firmware that adds lots of cool functionalities to the Robobuilder: http://code.google.com/p/robobuilderlib/

Good luck!

Alex
AlexanderHWUK offline
Savvy Roboteer
Savvy Roboteer
Posts: 27
Joined: Tue Mar 02, 2010 4:54 pm

Post by yoshi_sx » Sat Jun 19, 2010 4:38 pm

Post by yoshi_sx
Sat Jun 19, 2010 4:38 pm

AlexanderHWUK wrote:Hey there!

More than a solution, is a comment about your problem. I had to do a project that involved creating software to control a Robobuilder from a PC, and the first thing I tried was to edit the Robobuilder C Source code and playing around with the .hex files.

A hint from an amateur programmer, don't.
The original source code provides many functionalities that you may lose when you change it, and you risk getting lots of errors. You can try to change it if you are experienced or if there is no other way to do it.

A much easier solution for what you are trying to do (which sounds like you want the robot to do certain custom motions based on a C program), would be to create a simple program that runs in a pc, that communicates with the Robobuilder when you want it to perform a motion.
If you want to use custom motions, you can download them into the robobuilder easily and execute them as "custom" motions, instead of adding them into the hex files, etc.

If this method interests you, I can tell you how I did it for my project http://robosavvy.com/forum/viewtopic.php?t=6016, or you could ask l3v3rz, the master that helped me on the way. He also developed an open source firmware that adds lots of cool functionalities to the Robobuilder: http://code.google.com/p/robobuilderlib/

Good luck!

Alex


Thank you brother!
AlexanderHWUK wrote:Hey there!

More than a solution, is a comment about your problem. I had to do a project that involved creating software to control a Robobuilder from a PC, and the first thing I tried was to edit the Robobuilder C Source code and playing around with the .hex files.

A hint from an amateur programmer, don't.
The original source code provides many functionalities that you may lose when you change it, and you risk getting lots of errors. You can try to change it if you are experienced or if there is no other way to do it.

A much easier solution for what you are trying to do (which sounds like you want the robot to do certain custom motions based on a C program), would be to create a simple program that runs in a pc, that communicates with the Robobuilder when you want it to perform a motion.
If you want to use custom motions, you can download them into the robobuilder easily and execute them as "custom" motions, instead of adding them into the hex files, etc.

If this method interests you, I can tell you how I did it for my project http://robosavvy.com/forum/viewtopic.php?t=6016, or you could ask l3v3rz, the master that helped me on the way. He also developed an open source firmware that adds lots of cool functionalities to the Robobuilder: http://code.google.com/p/robobuilderlib/

Good luck!

Alex


Thank you brother!
yoshi_sx offline
Robot Builder
Robot Builder
Posts: 11
Joined: Fri Jun 04, 2010 8:23 am


3 postsPage 1 of 1
3 postsPage 1 of 1
cron