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 support@ccsinfo.com

many o pic's o where thou go ?

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








many o pic's o where thou go ?
PostPosted: Thu Sep 08, 2005 6:43 pm     Reply with quote

Hello,

guess you got to interconnent 17 PIC18F44XX.

One of these, it connectes to RS232,
You need to update all o these over the serial line, tell me about
possible conns, the other 16 are connected to the first PIC.
It's got to work all the time.
Faulty action means -$$$.

Yes, I'll use 17 Pic's in my project.
Ill try hard workin' out the bootloader + encryption (if someone makes things clear how I can Protect my stuff with it).

So, what type of interface, daisy chain,, .. / ??
It's 18 F XXXX

Thanks Martin
asmallri



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

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

Re: many o pic's o where thou go ?
PostPosted: Thu Sep 08, 2005 6:59 pm     Reply with quote

I do something very similar with serial, SPI and Ethernet implementations.

For the serial implementation, the primary PIC has a RS232 interface which is used for the bootloader. All other PICs are connected to the primary PIC over a RS485 bus. My application is a distributed data acquisition system with the RS485 bus being used for data and bootloading. The bootloader on the primary PIC has a "transparent mode". When the primary is in bootloader mode, I can sent it a bootloader command to go into "transparent mode" in which case it will echo all data transparently between the RS232 and RS485 busses. Each device on the RS485 bus is addressable. I send a command to the specific PIC I want to bootload to cause it to reset (my bootloaders are only active within the first few seconds of reset). Once the target PIC is reset I "capture" it with the bootloader and then load new code to the target PIC. When I have finished bootloading the slave PIC I "release" the slave and it reboots. When I have finished bootloading the slaves, the master pic is taken out of transparent mode and reset.

I have used similar mechanisms for bootloading over SPI and Ethernet. In one case I used RS232 to the Primary PIC, RS485 to the first tier of multiple slave PICs and SPI between the slave PICs and MAXIM 1463 MPU based A/D subsystem.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Guest








PostPosted: Thu Sep 08, 2005 7:22 pm     Reply with quote

Please, asmallri,

is it a mistery at all,
I do't think so.
Why (how) use encryption ????????????????

Thanks Martin
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Sep 09, 2005 7:26 am     Reply with quote

How far are the slave PICs from the master? If it is less than a couple of meters I would use SPI to connect the PICs together. If data errors would be catastrophic add checksums to the data messages.
Do you really need a bootloader? Security is simpler without one.
_________________
The search for better is endless. Instead simply find very good and get the job done.
MikeValencia



Joined: 04 Aug 2004
Posts: 238
Location: Chicago

View user's profile Send private message Send e-mail Yahoo Messenger

PostPosted: Fri Sep 09, 2005 4:42 pm     Reply with quote

To interconnect all those PICs together, wouldn't CAN be one of the top candidates?
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