PIC18F26K83: The Area That Survives Everything Else
Every rule discussed elsewhere on this site has an exception on this generation, and the exception is a small read-only region that describes the device. It holds the part number, the revision, and — on parts that carry one — a unique identifier programmed at test.
That region is readable on a locked device, unalterable by any operation, and unaffected by mass erase. For anyone starting an analysis, it is the most reliable first read: it establishes what the silicon is before any conclusion is drawn about what it contains.
Why a per-device identifier changes the questions
A unique identifier is a serial number in silicon. It is programmed once, it cannot be changed, and firmware can read it.
That creates both an opportunity and a constraint for cloning:
| Firmware behaviour | Consequence |
|---|---|
| Reads the identifier but does not act on it | Clone works normally |
| Uses it to derive a key or a checksum | Clone fails unless the derivation is reproduced |
| Reports it to a host | The host notices a different device |
| Stores it in the data array | The stored value and the silicon disagree |
The second row is the important one. A firmware that mixes the identifier into an algorithm produces a device whose behaviour is, by construction, unique. Cloning the code does not clone the behaviour, because the input to the algorithm is different on every die.
Recovering from that requires understanding the derivation, not copying the code — which is a different order of work, and worth establishing before rather than after.
The read-only area and what it legitimately provides
Three categories of information, all readable without unlocking anything:
Device identity. Part number and revision. Revision decides which errata apply, and errata decide peripheral behaviour.
Device configuration information. A record, written at test, describing how the device was configured when it left the factory — memory sizes, feature presence, sometimes the analog capability.
Unique identifier. Where present, a value that distinguishes this die from every other.
None of these is the program. Together they answer questions that would otherwise be guesses, and on a device whose array is closed they are often the only hard facts available.
What CAN FD adds to the picture
This part carries a CAN FD controller, and a product built around it usually speaks on that bus. CAN FD’s larger payloads make it practical to transfer an image over the bus, which in turn makes a field-update path more likely than it would be on a classic CAN part.
If a loader exists, the current series of obstacles changes shape: a loader is a write path, it must remain functional, and its protocol describes the application’s layout. That is the same structural fact discussed for the K80 family, with a wider pipe.
Cloning, precisely
“Clone” is used loosely for several different outcomes. On this device the honest distinctions are:
- Code copy. The program array is reproduced onto another die. Behaviour matches unless the firmware depends on the identifier or on trim.
- Functional replica. A device that behaves identically at its interfaces, built from a reconstruction rather than a copy.
- Counterfeit. A device presented as the original product, which is a commercial act rather than a technical one and outside the scope of anything described here.
The first is what a hex file supports. The second is what behavioural work supports. The difference matters when the firmware is identifier-dependent, because in that case the first is available and produces a device that does not work.
Procedure for a device of unknown state
- Read the read-only area: part number, revision, identifier.
- Read the configuration.
- Determine whether the array is gated, and per block.
- Read what is open; bound the application from any loader present.
- Capture bus traffic, including the identification exchange if the protocol has one.
- Decide between copying, reconstructing, and stopping.
Step six is a decision that the first five steps exist to inform. On a device whose firmware mixes its identifier into a key, step six usually resolves to reconstruction or to stopping, and knowing that early is the value of the sequence.
Limits
- The read-only area says nothing about the program.
- An identifier-dependent firmware cannot be cloned by copying; the dependence has to be understood.
- Trim, revision and identifier together mean that two devices are never identical, whatever the file says.
Related reading
- PIC18F26K80 and the protection fields — the gates that apply to the array on the previous generation.
- PIC18F25K80 and the CAN update path — the same transport with a narrower pipe.
- PIC18F26K40 and configuration-driven layout — where the memory map itself depends on configuration.
FAQ
Is the identification area protected? No. It is readable and unalterable; protection applies to the array.
Does it survive a mass erase? Yes. It is factory-written and outside the erasable region.
Can a unique identifier be cloned? Not the value. The firmware’s use of it can be understood, which is a different exercise.
Does an identifier always break a clone? Only if the firmware acts on it. Many designs read it and do nothing.
Which is the more useful first read? The identification area, because it establishes the silicon before any conclusion about content.
Conclusion
The read-only area is the one region that answers questions rather than raising them: what the silicon is, which revision, and whether the firmware could ever be cloned by copying. Starting there costs a minute and prevents the two most common misdirections — analysing the wrong revision, and assuming a code copy will behave like the original.