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

locking PIC program
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
djpark



Joined: 02 Mar 2004
Posts: 49

View user's profile Send private message

PostPosted: Wed Feb 16, 2005 9:58 am     Reply with quote

Is it possible to get the code from the running PIC after breaking with ICE or ICD?
I used to do this on 8088 to debug heavily copy protected programs.

-- dj
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Wed Feb 16, 2005 11:48 am     Reply with quote

But you had the object code! In this case you won't (or someone trying to steal the code) have the object or hex file so you can't use an ICE.
Guest








PostPosted: Thu Feb 17, 2005 7:07 pm     Reply with quote

So as not to incur the wrath of the sleep-deprived, * I Believe * in Code Protect. And, I think I've got a CCS question. My (CCS) manual only mentions Protect & Noprotect fuses. but the 16F628 header file adds Protect_25% and Protect_75% (with no explanation). I'm guessing that this refers to protecting Flash, Ram & EEprom areas, eh?
The other questrion is whether protecting the eeprom data area only prevents external access, or whether it might also prevent programmatic writing (wouldn't make sense to me either, but better to ask the experts).
TIA
Don
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Thu Feb 17, 2005 8:30 pm     Reply with quote

CCS doesn't do anything special. These features are built into the PIC. The CCS options usually closely match what the PIC is capable of. That is, they are pretty self-explainatory if you read the datasheet. That being said, read the datasheet and see if it doesn't make sense to you.

PS: I never sleep. I am just moody Very Happy Sad Laughing Mad Crying or Very sad Cool
jds-pic



Joined: 17 Sep 2003
Posts: 205

View user's profile Send private message

PostPosted: Fri Feb 18, 2005 10:57 am     Reply with quote

what is this "datasheet" thing all of you people keep talking about?
i didn't get a "datasheet" when i got my license to access the internet.
is there any useful information in a "datasheet" or can i go without?

i've noticed that CCS sometimes sets some registers, fuses, and flags in my PIC.
can anyone tell me what these registers, fuses, and flags all do?
could you explain to me in detail how they function and interact under a variety of circumstances? (which, instead of describing i'll just let you guess the operating conditions and inputs/outputs).

my code doesn't consistently work -- sometimes the output is 4 when it should be 3. can you tell me why this is so from 7000 miles away and by not looking at the source? does it make any difference if i'm using 5V or 0.5V PIC parts?

what's a pull-up? is two pull-ups better? my friend is USMC, he says it takes 50 pull-ups to pass his class.

my english is poor, but can anyone tell me the local time right now? how do you preload the time and when can i expect rollover? is time int8 or int16 or float64??? if an interrupt occurs during a call to get_time(&now), what time will it *really* be when my overloaded c++ method throws date.today.NullPointerException?

jds-pic Razz

ps
i think i may need a vacation -- away from everyone. Cool
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Fri Feb 18, 2005 11:08 am     Reply with quote

Well my feelings are (and I am a hard-a$$) if you can read and understand a datasheet (not all mind you but at least most of them) then maybe you should try something else, electronics and embedded programming isn't for ya. Sounds harsh but it is true. I would certainly never hire anyone who couldn't read a datasheet and understand it. One of my interview tests for hiring "fresh" electrical students was to design a simple 5 volt power supply. Some had no idea, some didn't even know the voltage out of the wall. Some kind of knew they needed to drop the voltage but didn't remember what the thing was called. AC or DC, some didn't know the difference or how to convert AC to DC. One even finished the problem in record time, he said why not just buy one from Radio Shack! Needless to say, it took a while to find anyone that I would hire and these were just system tech positions!
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

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

PostPosted: Fri Feb 18, 2005 1:06 pm     Reply with quote

jds-pic wrote:

what's a pull-up? is two pull-ups better? my friend is USMC, he says it takes 50 pull-ups to pass his class.

Funny! Laughing
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
Johnrio
Guest







I have no problem copying a code locked PIC.
PostPosted: Sat Feb 19, 2005 3:24 pm     Reply with quote

When i "burn" my program in my PIC i even get a warning, that the code protection bit is set, and a bulk erase is needed to reprogram the chip.

But i can without any problems read the program to a hex file, and program another PIC with the same program and it's working.

That's not much code protection in my eyes. Crying or Very sad

John
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Sat Feb 19, 2005 8:24 pm     Reply with quote

Either you don't have a clue as to what you are talking about or your programmer isn't giving you proper messages.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

Re: I have no problem copying a code locked PIC.
PostPosted: Sun Feb 20, 2005 4:48 am     Reply with quote

Johnrio wrote:
When i "burn" my program in my PIC i even get a warning, that the code protection bit is set, and a bulk erase is needed to reprogram the chip.

But i can without any problems read the program to a hex file, and program another PIC with the same program and it's working.

That's not much code protection in my eyes. Crying or Very sad

John
This is another problem from the problem of the original post in this thread and should therefor be placed in a new thread.
You didn't mention your processor type. Many PICs have multiple protection bits for different protection purposes. For example you might have set the bit protecting the bootloader area from being overwritten? In that case reading is still possible, but your programmer would give an error message. Please check and post all the config bit settings. Complaining without giving the details isn't nice.
Guest








PostPosted: Tue Sep 13, 2005 10:34 am     Reply with quote

rwyoung wrote:
jds-pic wrote:

what's a pull-up? is two pull-ups better? my friend is USMC, he says it takes 50 pull-ups to pass his class.

Funny! Laughing
Calamar



Joined: 07 Sep 2003
Posts: 60
Location: Buenos Aires (Argentina)

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

PostPosted: Wed Sep 14, 2005 10:31 pm     Reply with quote

http://www.break-ic.com/topics/crack-ic.asp
_________________
Best Regards
Daniel H. Sagarra
La Plata (Argentina)
Calamar



Joined: 07 Sep 2003
Posts: 60
Location: Buenos Aires (Argentina)

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

PostPosted: Wed Sep 14, 2005 10:31 pm     Reply with quote

http://www.break-ic.com/topics/crack-ic.asp
_________________
Best Regards
Daniel H. Sagarra
La Plata (Argentina)
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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