CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Is it possible to use a Bootloader via USB to 2 pics?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
matt1971



Joined: 26 Oct 2008
Posts: 15

View user's profile Send private message

Is it possible to use a Bootloader via USB to 2 pics?
PostPosted: Wed Nov 12, 2008 4:05 am     Reply with quote

has anyone managed to get a piar of pics programmed via a single USB connection? I have two pics which currently "talk" via i2c, one is an 18F4553 and the other an 18F4650. The 18F4553 can be "flashed" via USB, is it possible to get this pic to then program the 18F4560?

The two pics need two different .hex files uploaded.
Ttelmah
Guest







PostPosted: Wed Nov 12, 2008 5:23 am     Reply with quote

Yes.
At the end of the day, what communication interface the bootloader uses, is completely 'up to you'. You would not find any off the shelf one that uses I2C, but the example one, could be modified to use this, rather than RS232.

Best Wishes
matt1971



Joined: 26 Oct 2008
Posts: 15

View user's profile Send private message

PostPosted: Wed Nov 12, 2008 7:03 am     Reply with quote

The communication seems "reasonably" straightforward. But what about timing. For the PIC18F4553 connected to the PC via USB, this is fine. But once this is programmed, this will take a few seconds, how can I then get the 4553 to program the 4560 ?
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Nov 12, 2008 8:42 am     Reply with quote

matt1971 wrote:
The communication seems "reasonably" straightforward. But what about timing. For the PIC18F4553 connected to the PC via USB, this is fine. But once this is programmed, this will take a few seconds, how can I then get the 4553 to program the 4560 ?


Not sure if I should share this with you based on an earlier pm you sent me, but then again I am a mug :-)

The mechanism I use for cascading bootloaders is to put the primary PIC in bootloader mode (USB PIC) and implement a special command that puts the primary bootloader into transparent mode. In transparent mode the primary pic echos byes between the upstream (USB) and downstream (interface to slave pic). The primary pic either needs a mechanism to reset the slave to put the slave into bootloader mode or your application needs some mechanism to put the slave pic in bootloader mode before putting the primary pic into bootloader mode. I have used various different methods to achieve this.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
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