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

Copy one PIC to another

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







Copy one PIC to another
PostPosted: Mon Jul 28, 2003 4:20 am     Reply with quote

I am trying to get a PIC18F458 to write to another PIC18F458
What I wanner do is COPY the entire PROG. Mem from one to another
Dos any on the list have any god ideas I was thinking of using the CAN BUS.

If somebody have a piece of code that could be used or ideas
I will remember them in my evening prayer :-)


Best Regards
Thomas
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516421
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Copy one PIC to another
PostPosted: Thu Jul 31, 2003 6:52 pm     Reply with quote

:=I am trying to get a PIC18F458 to write to another PIC18F458
:=What I wanner do is COPY the entire PROG. Mem from one to another
:=Dos any on the list have any god ideas I was thinking of using the CAN BUS.
:=
-------------------------------------------------------

I'm not quite sure what you want to do.

Do you just want to copy a chip ?
Answer: Put one in a programmer, press the read button,
then put in a blank chip, and press the program button.

Do you want to have one chip (on a circuit board) clone itself
by copying its program to another chip ? Would this 2nd
chip be in a ZIF socket ? Sort of like making your own
programmer, in a way ?
Answer: The 1st chip would use the read_program_memory()
function to read its own flash memory. Then it would write
to the 2nd chip by using the ICSP programming pins on the
2nd chip.

If you want to do this between chips that are not on the
same circuit board, then you would need some interface chips
that can handle the distance. If the bus you pick is just
a "dumb" bus, then you can still use ICSP.

You didn't really explain your overall purpose, so it's tough
to come up with a solution that fits the problem.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516540
Thomas R
Guest







Re: Copy one PIC to another
PostPosted: Fri Aug 01, 2003 12:28 am     Reply with quote

Sorry I didn’t explain it very good.
I have 17 boxes all connected whit canbus 1 of them is a main box that is connected to a pc..

What I want to do is

The program In all 17 boxes is the same so I want that the main box to tjek the software rev. of all boxes and if the software rev. in a box is older then the software in the main box it will update the box by copy the enterer program memory over the canbus to the box. By using some sort of a bootloader that will be located somewhere in the top of the memory in the pic18f458.





:=:=I am trying to get a PIC18F458 to write to another PIC18F458
:=:=What I wanner do is COPY the entire PROG. Mem from one to another
:=:=Dos any on the list have any god ideas I was thinking of using the CAN BUS.
:=:=
:=-------------------------------------------------------
:=
:=I'm not quite sure what you want to do.
:=
:=Do you just want to copy a chip ?
:=Answer: Put one in a programmer, press the read button,
:=then put in a blank chip, and press the program button.
:=
:=Do you want to have one chip (on a circuit board) clone itself
:=by copying its program to another chip ? Would this 2nd
:=chip be in a ZIF socket ? Sort of like making your own
:=programmer, in a way ?
:=Answer: The 1st chip would use the read_program_memory()
:=function to read its own flash memory. Then it would write
:=to the 2nd chip by using the ICSP programming pins on the
:=2nd chip.
:=
:=If you want to do this between chips that are not on the
:=same circuit board, then you would need some interface chips
:=that can handle the distance. If the bus you pick is just
:=a "dumb" bus, then you can still use ICSP.
:=
:=You didn't really explain your overall purpose, so it's tough
:=to come up with a solution that fits the problem.
:=
:=
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516541
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