Unlock AVR IC ATMEL AT90CAN64

A job to dump protected AT90CAN64 source code is usually about an automotive or industrial node whose CAN traffic still matters more than the processor itself. This AVR runs at 16 MHz and 16 MIPS with 64 KB of flash, 4 KB of SRAM and 2 KB of EEPROM in a 64-pin TQFP or QFN package with 53 GPIO. It is the only member of this group that combines a full CAN 2.0A/2.0B controller with a JTAG port, and that combination dictates both the value of the image and the number of ways it can be approached. The chip-level protection overview frames that exposure.

Unlock AVR IC ATMEL AT90CAN64

Unlock AVR IC ATMEL AT90CAN64

Six Lock Bits And Four Boot Modes

Unlike the small ATmega48A, this device implements the full lock byte: BLB12, BLB11, BLB02, BLB01, LB2 and LB1. LB mode 1 leaves the part open, mode 2 blocks further programming and freezes the fuses, and mode 3 disables verification of flash and EEPROM as well. The BLB0 and BLB1 pairs each have four modes that separately govern whether SPM can write into the boot section and whether LPM can read from the application section. A protection map has to record all six bits, not just LB2/LB1.

The fuse high byte adds OCDEN, JTAGEN (default programmed, so JTAG is enabled), SPIEN, WDTON and EESAVE, alongside BOOTSZ, BOOTRST, BODLEVEL, CKSEL and SUT. EESAVE is decisive: without it, the chip erase that clears the lock bits also wipes the 2 KB EEPROM holding node addresses, baud-rate prescalers and calibration data. The working register design guide explains how the AVR register file reaches a 4 KB SRAM, and the instruction set semantics reference covers the instruction set a 64 KB image will disassemble into.

Fifteen Message Objects As A Cross-Check

A CAN controller conforming to ISO 16845 exposes fifteen independent message objects, each with its own identifier, acceptance mask, data length code and direction. Startup firmware writes those registers in a predictable order, and the resulting dense table is largely unique to a product – finding it intact in a 64 KB image is more convincing than a global checksum that could pass on a partly fabricated file. Because CAN bit timing derives from the 16 MHz system clock, the prescaler values also confirm CKSEL and CKDIV8 as recorded in the fuse bytes. This is besides the only AVR in this group carrying an IEEE 1149.1 JTAG port with boundary scan alongside ISP; JTAGEN is programmed by default, and clearing it removes that interface entirely. A 64-pin TQFP offers 53 GPIO, and the JTAG test points are frequently shared with the CAN transceiver.

Why The CAN Controller Is A Verification Asset

Fifteen independent message objects, ISO 16845 conformance, an 8-channel 10-bit ADC with programmable-gain differential inputs, four timers, two USARTs, SPI and TWI make this a dense firmware target. Message-object configuration – identifiers, masks, acceptance filters and DLC settings – is written early in the startup code and is highly structured. Finding those tables intact in a recovered image is a strong independent check that the dump is byte-accurate, in the same way USB descriptors serve that role on other parts. The storage structure study reference describes where such constant tables usually land.

JTAG adds a second programming path alongside ISP over SPI and high-voltage parallel programming. With JTAGEN cleared, boundary scan is unavailable and the remaining options narrow; with OCDEN set, on-chip debug is possible and the debug interface becomes part of the attack surface. The MCU attack methods overview discusses how interface exposure is assessed, and the timing unpredictability study explains why a marginal supply can make a debug read look like a protection failure.

Sequence For A Preservation-Minded Read

Start by reading the fuse bytes and the full lock byte, then capture every region the secured part still exposes, twice, with independent checksums. Because this device has a real boot loader section and read-while-write support, the protection state can differ between the boot and application areas; each is reported separately. The partial image recovery guide covers how a deliverable is labelled when one of them stays sealed. Only after two passes agree is the image treated as verified.

Programming the verified files into blank AT90CAN64 devices of the same grade restores flash, EEPROM and fuses, followed by a per-unit read-back through the cloning pipeline pipeline. We accept only units with documented ownership or a service authorisation, and chip erase is never run on a protected part. For a different AVR generation see the PIC16F1782 program and PIC16F1938 hex dump reports; for a 16-bit controller with two CAN channels see the dsPIC30F6013 flash page. The legitimate reverse engineering page sets out the lawful basis.