OpenServo.com Forum Index OpenServo.com
Discussion of the OpenServo project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TWI/I2C Bootloader Programmer

 
Post new topic   Reply to topic    OpenServo.com Forum Index -> Utilities and Tools
View previous topic :: View next topic  
Author Message
mpthompson



Joined: 02 Jan 2006
Posts: 650
Location: San Carlos, CA

PostPosted: Sun Jan 15, 2006 1:42 am    Post subject: TWI/I2C Bootloader Programmer Reply with quote

I finally got the TWI/I2C Bootloader Programmer (TWIBootProg) uploaded here into the CVS tree. This is the application I use to program the OpenServo from my PC using the Dimax U2C-12 USB/I2C bridge hardware.

This application is an MS Visual Studio .NET 2003 project. For those not wanting to build from source code, the application binary is checked into the CVS tree here.

It should be pretty straighforward to use. Just make sure the OpenServo bootloader is active when you attempt to program. I have a power switch wired to my servos which makes it easy to enter the bootloader.

Let me know if there are any questions using this application.

-Mike
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
helvo



Joined: 01 Feb 2006
Posts: 1

PostPosted: Thu Feb 02, 2006 10:26 am    Post subject: Reply with quote

I found some very simple rs232 interfaces for i2c to pc communication, all with free source.

http://www.matronix.de/elektronik/i2c.php
http://www.roboternetz.de/phpBB2/viewtopic.php?t=4509

Is it possible to enhance the TWIBOOTPROG using one of them for bootloader programming?

--helmut
Back to top
View user's profile Send private message
andylippitt
Site Admin


Joined: 02 Jan 2006
Posts: 155
Location: Denver, CO

PostPosted: Thu Feb 02, 2006 3:53 pm    Post subject: Reply with quote

Just about any PC to I2C bridge will do, but Mike's TWIBootProg doesn't support any hardware other than the Dimax. You'll have to do some extra work to get it running with one of these.

1) Parse the hex file, not that big a deal, you don't really need to support all the features of an Intel hex file to be able to get this running.

2) Rewrite the bus mastering code so that you can send the data loaded from the hex to the bootloader, one page at a time.

I was too cheap to spring for the Dimax myself and built a serial/i2c bridge using a PIC uC. I've got a bit of cleaning up to do, but I'd happily post to code for you as a starting point. The PIC code is in a ""C-like"" language and the PC side is in C#.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
andylippitt
Site Admin


Joined: 02 Jan 2006
Posts: 155
Location: Denver, CO

PostPosted: Thu Feb 02, 2006 5:04 pm    Post subject: Reply with quote

When considering I2C bridges, make sure that the I2C implementation supports clock stretching.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
stone76567



Joined: 01 Oct 2010
Posts: 9

PostPosted: Thu Nov 11, 2010 3:02 am    Post subject: Reply with quote

hi to all..
thanks for all the information ive learned in this site..
btw im new here and thanks for accepting me..
thanks a lot and God Bless..
_________________
how to treat depression
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    OpenServo.com Forum Index -> Utilities and Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group