Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

pic bootloader code protection

Status
Not open for further replies.

devil6600

Full Member level 5
Joined
Nov 15, 2008
Messages
250
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
Activity points
2,931
i have made a bootloader for pic18 microcontroller which is read protected. bootloader accepts encrypted firmware, is it possible that one can erase my bootloader, programs his custom bootloader and reads all the program memory where the actual(functional) firmware is stored..
i am worried that my customers can erase my bootloader, programs their bootloader and reads my firmware, how can i make it more secure?
 

klystron

Advanced Member level 4
Joined
Jul 11, 2002
Messages
1,014
Helped
192
Reputation
384
Reaction score
180
Trophy points
1,343
Location
South Africa
Activity points
4,515
If the code protection configuration bits are turned of, all the code in the program memory is lost. Your code will be safe with code protection
 

Kurenai_ryu

Advanced Member level 2
Joined
Jun 10, 2006
Messages
671
Helped
159
Reputation
316
Reaction score
99
Trophy points
1,308
Location
Bolivia
Activity points
5,913
remember there is code protection and flash protection, (depending on the pic18 but i think it's very common)
the code proteccion blocks further reading and programming from ICSP. (external programming)
flash proteccion blocks reads or writes (i think you can configure individualy the areas of read-block and write-block) form internal reading writing (like the areas from your bootloader)

BTW which pic are you using???
 

devil6600

Full Member level 5
Joined
Nov 15, 2008
Messages
250
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
Activity points
2,931
remember there is code protection and flash protection, (depending on the pic18 but i think it's very common)
the code proteccion blocks further reading and programming from ICSP. (external programming)
flash proteccion blocks reads or writes (i think you can configure individualy the areas of read-block and write-block) form internal reading writing (like the areas from your bootloader)

BTW which pic are you using???

thanks for the information. i am using pic18f4550
where can i read more about flash protection, i want to read protect memory space where firmware will be stored and write protect bootloader space
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,392
Helped
14,248
Reputation
28,757
Reaction score
12,936
Trophy points
1,393
Location
Bochum, Germany
Activity points
280,059
Review the code protection chapter in datasheet paragraph 25.5
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top