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 

Load application with out using I2C

 
Post new topic   Reply to topic    OpenServo.com Forum Index -> Software
View previous topic :: View next topic  
Author Message
wdautrem



Joined: 26 Sep 2009
Posts: 1

PostPosted: Sat Sep 26, 2009 4:53 am    Post subject: Load application with out using I2C Reply with quote

Please forgive if this is a dumb question, but is it possible to simply flash the whole application to the controller board? I plan on controlling the servo via I2C, but don't have an USB->I2C adapter handy, and don't see why it would not be possible to just flash the whole firmware to begin with.

Thanks,
-WDv
Back to top
View user's profile Send private message
ginge
Site Admin


Joined: 14 Jan 2006
Posts: 1029
Location: Manchester, UK

PostPosted: Sun Sep 27, 2009 12:36 am    Post subject: Reply with quote

Yes, that should not be a problem. If you wan tto you can flash only the main aplication portion to the OpenServo.

If you want to get fancy, and get the offsets right, you can flash the whole app + bootloader at once. You will need to get the bootloader hex file, and replace the first chunk with the main OS code.
_________________
http://www.headfuzz.co.uk/
http://www.robotfuzz.co.uk/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
MosaicDave



Joined: 20 Jul 2010
Posts: 18
Location: Pennsylvania, USA

PostPosted: Wed Aug 25, 2010 4:40 pm    Post subject: Reply with quote

Well, I'm happy to find this topic here, as I'm about to try this later today, and have been wondering if it is going to work.

If I just build the stock OSV3 main application from within {AVRStudio + WinAVR}, using the AVRStudio project file that I find in CVS along with all the source code files, and then flash it to a virgin ATmega168, will it work correctly just like that? Or do I need to do something else special to get the reset interrupt vector and whatever else pointing to the correct entry point?

I'm planning on doing the flashing with my AVRISPmk2, which I already have here. As I don't need the bootloader here, I'd prefer to just work without it.

Well, I just thought I'd ask here, to see if anyone's aware of any snags that I'm about to run into, in this particular workflow.

Thanks much--

--dave
_________________
http://www.mosaicengineering.com/
Back to top
View user's profile Send private message Visit poster's website
ginge
Site Admin


Joined: 14 Jan 2006
Posts: 1029
Location: Manchester, UK

PostPosted: Wed Aug 25, 2010 5:18 pm    Post subject: Reply with quote

HI Dave,

yes, you can flash just the main application without using the bootloader. It will work without any code changes.

Cheers
_________________
http://www.headfuzz.co.uk/
http://www.robotfuzz.co.uk/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
MosaicDave



Joined: 20 Jul 2010
Posts: 18
Location: Pennsylvania, USA

PostPosted: Wed Aug 25, 2010 5:30 pm    Post subject: Reply with quote

Great; thanks Barry for the quick reply.

--dave
_________________
http://www.mosaicengineering.com/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OpenServo.com Forum Index -> Software 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