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 bootloader magic addr

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


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

PostPosted: Thu Apr 27, 2006 6:14 pm    Post subject: TWI bootloader magic addr Reply with quote

Hi,

I am programming by openservo code using the TWI bootloader, and have one problem.

After flashing the AVR, the docs suggest reading or writing to the magic address of 0xFFFF to load and execute the application code.

I have tried reading, and writing to the magic address, without any results.

Can anybody confirm that read/write to the magic address actually boots the application code, or am I just doing it wrong.

Barry
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
mpthompson



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

PostPosted: Thu Apr 27, 2006 8:22 pm    Post subject: Reply with quote

Barry, I looked into this and it appears the small piece of code in the ATtinyX5 bootloader (twi.c line 165) didn't make it into the ATmega version of the bootloader during the conversion process.

I'll fix this tonight and post an updated version of the bootloader. Thus far I've been exiting the bootloader by cycling power on the v2.1 servos so I missed finding this myself. Sorry about that.

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


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

PostPosted: Thu Apr 27, 2006 10:51 pm    Post subject: Reply with quote

please, don't apologise!

These things happen, good work tracking it down.

Barry
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
mpthompson



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

PostPosted: Fri Apr 28, 2006 8:09 am    Post subject: Reply with quote

I added the single line of code in twi.c at line 183 to cause the bootloader to exit if the magic address of 0xffff is referenced. This reminds me that I'll need to working on the bootloader enhancements that have been discussed over the last month or so.

I didn't get a chance to test this change, but I'm pretty sure it should work. I'll test it in the next day or so.

-Mike
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
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