| View previous topic :: View next topic |
| Author |
Message |
djpark
Joined: 02 Mar 2004 Posts: 49
|
|
Posted: Wed Feb 16, 2005 9:58 am |
|
|
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
|
|
Posted: Wed Feb 16, 2005 11:48 am |
|
|
| 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
|
|
Posted: Thu Feb 17, 2005 7:07 pm |
|
|
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
|
|
Posted: Thu Feb 17, 2005 8:30 pm |
|
|
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  |
|
 |
jds-pic
Joined: 17 Sep 2003 Posts: 205
|
|
Posted: Fri Feb 18, 2005 10:57 am |
|
|
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
ps
i think i may need a vacation -- away from everyone.  |
|
 |
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Fri Feb 18, 2005 11:08 am |
|
|
| 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
|
|
Posted: Fri Feb 18, 2005 1:06 pm |
|
|
| 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!  _________________ 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. |
Posted: Sat Feb 19, 2005 3:24 pm |
|
|
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.
John |
|
 |
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Sat Feb 19, 2005 8:24 pm |
|
|
| 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
|
| Re: I have no problem copying a code locked PIC. |
Posted: Sun Feb 20, 2005 4:48 am |
|
|
| 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.
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
|
|
Posted: Tue Sep 13, 2005 10:34 am |
|
|
| 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!  |
|
|
 |
Calamar
Joined: 07 Sep 2003 Posts: 60 Location: Buenos Aires (Argentina)
|
|
 |
Calamar
Joined: 07 Sep 2003 Posts: 60 Location: Buenos Aires (Argentina)
|
|
 |
|