Archive for the ‘Break IC’ Category
Increase radiation heat dissipation can apply below methods
1> Apply material which has large emitting and absorbing features;
2> Increase the temperature of radiated article;
3> Decrease the temperature of absorbing article;
Heat dissipation through convection can be realized through below ways
1> Increase the surface size to speed up heat dissipation;
2> Increase heat dissipation efficiency by replacing layer flow by interference flow;
3> Ensure the rounding environment of part where need to cooling can tidy up;
Heat dissipation through thermal conductance can be realized through below ways
1> Use high heat conducting material;
2> Keep distance from heat source to heat dissipation the shortest way;
3> Ensure stable heat connecting among each conducting routes;
4> Install as large printed circuit conductor as possible in the route of heat dissipation;
How to choose a proper inspection method
Test speed is an important factor to choose the right test device. Nail-bed test device can test thousands of point in one time, and flying probe can only test 2 or 4 points in one time. Furthermore, nail-bed test device will consume only 10-150usd for single side, it also depends on the complexity level of PCB. But flying probe will need over 1 hour or even more time to test the same of work. Shipley(1991) has ever explained that even mass production PCB manufacturer will blame flying probe test for its low processing rate, but it is a good choice for low volume and complex PCB manufacturer.
For bare board test, we have dedicated device, one more optimized way for cost is universal device, although this device originally could be more expensive than dedicated device, but it is cost can be offset by installation. Refers to universal grid, PCB with component lead and SMT stand grid is2.5mm. so the test PAD should be greater or equal to1.3mm. for1mmgrid, test PAD should be greater than0.7mm. If grid and probe is so small and fragile that easy to damage. Therefore we had better choose above2.5mmgrid. If universal device and flying probe device can be applied simultaneously, can ensure both commercial and precise measure for high density PCB, another way is conducted rubber test device, this technology can detect those points deviate grid. However, PAD height can vary after HASL which will bring trouble for test point connection.
Normally three different inspection should be committed:
1 bare board test;
2 incircuit test;
3 functional test;
Welding current of French SAF welding machine can’t shift higher
Breakerdown Appearances: Welding current of French SAF welding machine can’t shift higher;
Troubleshooting: After PCB Repair of key component we have found the current control circuit board is malfunctions, inspect this PCB and found a operational amplifier chip LF347 has failed, because we don’t have this chip in-stock, so use LM124 as substitute to maintain the machine can keep on working, after 15 days later LM124 fail and LF347 has been bought back not long later and assemble LF347, machine can working properly.
How to Inspect VCC Power Supply Short Circuit Problem
When we repair a PCB, if VCC power supply has short circuit issue could be a very complicated matter, since the number of components embed in parallel circuit network between VCC and GND is huge, chips, capacitors, transistors, even anyone of which has short circuit will bring problems to the whole PCB board, the tin solder points and copper of PCB board surface may also cause short circuit. Maintenance personnel will remove the components one by one, until the short circuit phenomenon being eliminated when that causing problem component removed, if bad luck, the root cause of short circuit could not be found even after the components spread PCB board was almost removed completely, not only can not find fault, but also will damage the PCB board.
Hereby we would like to introduce several practical method which can help you save more time and energy:
As for Plug-in capacitors on the PCB board we can use diagonal pliers to cut one foot (Please be noted you should cut from the middle, do not cut from each end of two sides), cut power supply VCC pin of plug-in IC, short circuit will disappear when cut one foot, then we can judge that one of capacitors or chips has short circuit issue. If the chip’s package is SMD, we can use solder iron to melt the solder tin on the IC power supply pin which will help to raise the chip away from the VCC power supply. After replacement of related short circuit components at the office or the tilt can be re-weld, and if those capacitors at both ends of the power supply VCC, you can use hot air welding machine to blow them one by one, after remove them, you can use multimeter to test them and got the value, until short-circuit issue being eliminated.
There is also a faster method, but to use a special instrument—milliohmmeter. We know that the PCB board copper foil is also a resistance, if the thickness of copper on the PCB board is 35um, printed circuit wire width is 1mm, then each 10mm long, the resistance value is around 5mΩ, such small resistance can’t be measured by ordinary multimeter, but milliohmmeter can measure it. We assume one component is short circuit, then measured it with an ordinary multimeter, the result could be 0Ω, but if measured by a milliohmmeter could be tens to hundreds of milliohms, we just put pen table legs on two sides of the short-circuit component, the value of resistance must be minimal (if on the other components on both feet measured, the value of resistance also includes PCB board copper trace resistance), so through compare milliohmmeter resistance differences among different components, when measured to a component (if there is existence of tin solder points and copper trace short circuit will use the same way) which get the minimum value of resistance, it will embrace the biggest suspect. Through this way you can quickly find the point of failure.
PIC18F4620: A Word-Addressed Machine and Its Config Words
The PIC18 architecture does not think in bytes. Its program memory is an array of instruction words, the program counter counts words, and a jump target is a word address. That is different enough from a byte-addressed machine that habits carried over produce consistent, plausible errors.
The other difference is architectural: the protection and oscillator settings live in configuration words at addresses far outside the program range, so a dump of the program is a dump of the program only.
Word addressing, and what it breaks
Three consequences:
A stored byte address is not a program address. Converting between them is a shift, and code that stores addresses for a table lookup often stores the byte form.
Instructions vary in length. Most are one word; calls, jumps and table operations are two. A disassembler has to know which, and a reader assuming uniform width will drift.
A dump’s length in bytes is twice its length in instructions. An eight-kilobyte image is four thousand instructions, which changes any estimate of how much code there is.
| Property | Value on this part |
|---|---|
| Instruction width | 16 bits, some 32 |
| Address unit | one instruction word |
| Table access | dedicated pointer, byte-oriented |
| Configuration | separate address range |
Table access is where the two views meet
Reading constant data from program memory uses a table pointer that addresses bytes while the program counter addresses words. That mismatch is deliberate — tables hold bytes — and it is the source of the most common off-by-one in PIC18 analysis.
A table lookup therefore looks like: set the pointer to a byte address, execute the read, consume one byte. A reader who treats the pointer as a program address will land at half the intended location and find data that looks like instructions.
The configuration words
The oscillator selection, the watchdog, the code protection bits and the brown-out settings are held in configuration words outside the program array. They are not in a hex dump of the program, and they are read through their own mechanism.
This is the same structural point that applies to every architecture: protection is configuration, and configuration is elsewhere. A recovery that omits the configuration words produces an image that cannot be made to run, because the oscillator setting alone decides whether the part starts at all.
What protection looks like here
Code protection is a set of bits in a configuration word, and its enforcement happens at the programming interface, not at execution. A protected part runs normally and refuses to be read.
The important practical consequence is the same one as everywhere: the operation that clears the protection bits also erases the program memory. There is no sequence that unlocks a part and leaves its contents intact, and any description that suggests otherwise is describing a different mechanism.
Reading order for a PIC18 device
- Read the device identifier and the configuration words. Record both before anything else.
- Read the program array, verifying each region twice.
- Establish the reset vector and the interrupt vector targets.
- Disassemble with word addressing, checking instruction width at every branch.
- Locate table accesses and convert their pointers from bytes to words for interpretation.
Step 5 is where the two address views are reconciled, and getting it wrong produces a reconstruction that is internally consistent and externally wrong.
Where this differs from the AVR habit
An analyst moving between architectures carries assumptions. Two of them fail here: that addresses are bytes, and that configuration lives somewhere in the image. Neither is true, and both errors are quiet.
The defence is procedural rather than intellectual: read the identifier and configuration first, write down the address unit, and never assume a width without checking the opcode.
Related notes
- PIC24FJ16GA002 and the phantom byte — the same family with a different word model.
- PIC18F2550 and protection blocks — the protection model on a related part.
- ATmega8A and lock modes — the same concept in a byte-addressed machine.
FAQ
Are PIC18 instructions always two bytes? Most are. A few are four, and those are the ones that break a naive disassembly.
Where are the configuration words? Outside the program address range, read through a dedicated operation.
Can the program be read if the part is protected? No, and the configuration that blocks it is the same one that has to be cleared to read it.
Why does a table pointer use bytes on a word machine? Because tables contain bytes, and the hardware provides both views.
Conclusion
A word-addressed machine punishes byte-oriented habits in a way that looks like a data problem. Reading the configuration words first, writing down the address unit, and checking instruction width at every branch are the three habits that keep a PIC18 analysis from drifting — and they cost less than a single wrong reconstruction.
STM32F722: The Family Member Defined by What Is Missing
Marketing material describes microcontrollers by what they include. Recovery work is the other way round: the fastest way to know what you are looking at is to establish what cannot be there. A part that has no display controller cannot be running a display initialisation sequence, and an image that contains one came from somewhere else.
On this member of the family the list of absences is unusually informative, because the die is a deliberate reduction of a larger one. Same core, same instruction set, same development tools, and several blocks removed to make a cheaper part.
What was removed
The reductions are consistent and they cluster around connectivity and graphics.
| block | present on the larger members | present here |
|---|---|---|
| Ethernet MAC | yes | no |
| display controller | yes on most | no |
| graphics accelerator | yes on most | no |
| camera interface | yes | no |
| flash width | 256-bit lines | 128-bit lines |
| instruction and data cache | 4 KB or 16 KB each | 8 KB each |
| flash capacity | 1 MB or 2 MB | 512 KB |
| general-purpose SRAM | 240 KB or 368 KB | 176 KB |
The last four rows are the ones that matter technically, because they change the shape of the image rather than just its contents. The first four change what a recovery is looking for.
| absence | what it removes from the job |
|---|---|
| no Ethernet | no network stack, no address configuration stored in flash, no packet buffers to reconstruct |
| no display controller | no timing configuration, no layer descriptors, no frame buffer mapping |
| no graphics accelerator | no asset tables, no colour lookup structures, no blending configuration |
| no camera interface | no image pipeline, and no large double-buffered capture regions |
That is a substantial reduction. On the larger members of this family, display and network configuration routinely account for a third of the structured content in an image, and reconstructing it is a large part of the analytical work. Here it is not present, and an image that contains it is not an image of this device.
The narrower flash path
The flash array on this part is read in 128-bit lines rather than the 256-bit lines of the larger members. That single difference has visible consequences.
| effect | how it appears |
|---|---|
| code layout | functions align to a smaller boundary, so the image looks denser |
| prefetch behaviour | the accelerator in front of the array issues more transactions for the same span of code |
| a copied routine | code relocated into tightly coupled memory shows a 128-bit alignment in the copy loop |
| an image from a larger member | 256-bit alignment in the same places, which is visible and inconsistent |
The last row is a practical test rather than a theoretical one. Alignment is not something a compiler randomises; it follows the bus width and the linker’s section placement. An image whose function boundaries consistently align to thirty-two bytes came from a part with a 256-bit path, and finding that on a board labelled as this member means either the label or the image is wrong.
Protection on a part with fewer places to hide
Read-out protection works the same way as on the rest of the family, with the two levels and the same irreversible character at level two. What differs is the number of places data can be concealed.
A part with a display pipeline has external memory, and external memory is a place to store things that are not in the internal array. A part without one usually has no external memory at all, which means everything the product knows is either in the internal flash, in RAM while running, or in a peripheral register. That is a shorter list, and it makes a complete accounting feasible in a way that it is not on a board with three memory devices.
| storage location | typical contents | how it is read |
|---|---|---|
| internal flash | code, constants, configuration tables | direct read |
| one-time programmable area | serial numbers, calibration, sometimes a key | direct read, write-once by construction |
| RAM | runtime state, session keys, buffers | read with the device halted and the core’s stores settled |
| option bytes | protection state, watchdog behaviour, boot configuration | decoded from a read of the option block |
The second row is worth checking on every job of this kind, because a one-time area is where a design puts a value it does not want changed, and a recovery that skips it delivers an image without the calibration data that makes the product work. The size is small — around a kilobyte — and reading it is one transaction.
What the smaller cache does to a live read
Eight kilobytes of data cache is small enough that a running program evicts constantly, which is fortunate for extraction: the window in which a dirty line sits unwritten is shorter than on the larger members, so a probe read is more likely to be current. It is not a guarantee, and the procedure is the same — halt, settle the stores, read — but the failure rate is lower.
The cache behaviour itself is described in STM32F746 software recovery, which deals with the larger cache and the same underlying problem. A worked case on this exact part number, where the firmware was encrypted and the recovery had to establish that the plaintext was already in flash, is at STM32F722RET6 firmware restoration — the two pages address different questions about the same die and are worth reading together.
When the absences do not match
The most useful outcome of this line of reasoning is a contradiction found early. Three checks, each taking a minute.
First, look for a display initialisation sequence: a block of writes to consecutive registers with timing values that resolve to a plausible horizontal and vertical total. If it is there, the part is not what the label says, or the image is not from this board.
Second, look for a network stack: a byte-order-sensitive header parser, a set of buffers with a fixed maximum size, and an address structure in flash. If it is there, the same conclusion follows.
Third, check the flash size register and compare it with the capacity the image implies. An image that fills more than half a megabyte cannot have come from a device with a half-megabyte array.
| finding | conclusion |
|---|---|
| no display, no network, 512 KB | consistent with this member |
| display configuration present | the image came from a graphics member, or from a development build |
| network stack present | the image came from a member with Ethernet |
| image larger than the array | the file includes padding, or the read included a region that is not flash |
What the deliverable looks like
The report should state the identification and the evidence for it, including the absences checked. It should give the flash image with its length and the erased tail distinguished from programmed content. It should give the one-time area and the option bytes as separate small files, because they are small, they are independently useful, and bundling them into a single blob makes them easy to lose.
The identification discipline itself, for the case where the name on the order does not resolve at all, is in STM32F747 binary recovery. The boot-from-ROM path that remains available when the flash cannot be read normally is in STM32F745 heximal extraction, and the USB side of a device in this class, which is often the only external interface it has, is in STM32F723 binary recovery.
FAQ
Does the missing display controller mean the product has no display? Not necessarily. A display can be driven by an external controller over a serial or parallel interface, in which case the interface configuration is in the image instead of a display pipeline.
Is the smaller cache a disadvantage for extraction? It is an advantage, because dirty lines are evicted sooner. The procedure is unchanged.
Can an image from a larger member run here? It will not fit, and its alignment gives it away before anyone tries.
Conclusion
Absence is evidence. On this member the removed blocks define both the identity of the device and the scope of the work: no display pipeline to reconstruct, no network stack to map, a shorter list of places data can hide, and a flash path whose alignment betrays an image from elsewhere. Establishing what cannot be present is faster than confirming what can.
STM32F767: Two Megabytes, Two Banks, and a Boundary at Half Way
Two megabytes of flash on a microcontroller sounds like a simple quantity, and the tools treat it as one: a length, an offset, a single block of output. The silicon does not work that way. The array is two banks of one megabyte each, with a boundary in the middle that is not visible in a hex dump and that governs erase granularity, write protection and the possibility of updating half the device while the other half runs.
None of this stops a read from succeeding. It stops the conclusions drawn from the read from being right.
Where the boundary is
The first bank occupies the lower megabyte of the flash address range and the second bank occupies the upper megabyte. The boundary falls at the address one megabyte above the flash base, which in a flat image is offset one million and forty-eight thousand five hundred and seventy-six.
| range | contents | what it governs |
|---|---|---|
| lower bank, first megabyte | normally the program, its vector table and its constants | the reset vector and the entry point |
| upper bank, second megabyte | a second image, application data, or nothing | the update path and the fallback |
The row that matters is the third column. A device that uses the upper bank for a stored update has a program in the lower bank and a payload in the upper one, and a flat dump of two megabytes contains both with nothing marking the join. A reader who assumes the second megabyte is unused space will treat a valid second image as garbage, and a reader who assumes it is a continuation of the first will disassemble the join as a single program and find nonsense at the seam.
| observation in a flat dump | the wrong conclusion | the better reading |
|---|---|---|
| code ends before the boundary, upper bank erased | the device has one small program | consistent with a device whose second bank was never populated |
| upper bank contains a plausible vector table | the array holds two programs | an update is staged, or the device runs from the upper bank |
| a valid program in each bank with different sizes | the image is corrupted | two firmware versions are both present |
| upper bank starts with a header and a length field | the data is unreadable | a packaged update, not code |
Erase granularity depends on the mode
This is the detail that catches people who work from memory of another family. The sector size on this part is not a constant; it follows the bank configuration.
| configuration | sector size | sectors | effect on the image |
|---|---|---|---|
| single-bank mode | 256 KB | eight across the whole array | erase units are large, so small updates rewrite a lot |
| dual-bank mode | 128 KB | eight per bank | finer granularity, and the two banks can be treated separately |
The consequence for a recovery is about interpreting what is blank. In single-bank mode, an erased region is at least 256 KB, and a program that occupies less than that leaves a large uniform expanse of erased values. In dual-bank mode, the same program leaves 128 KB boundaries. Looking at the size of the erased runs is therefore a way to infer the mode the device was configured in, which in turn tells you whether the design intended to update one bank while running from the other.
That inference is worth making because it is cheap and it is independent of anything the customer says. A device whose firmware uses a bank-swap style update will show a clean 128 KB alignment; a device that never updates in place will show whatever alignment the linker chose.
Read while write
The reason the part has two banks is that one can be erased and programmed while code executes from the other. This is the hardware basis of every robust field-update design, and it is also the mechanism that produces the most confusing partial states.
An update proceeds in stages: the new image is received and programmed into the idle bank, verified, and then a marker is written that makes the next reset start from the new bank. Interruption at each stage leaves a different artefact.
| interruption point | what the device holds | what the next boot does |
|---|---|---|
| during programming of the idle bank | a partial image in the idle bank, the old image intact | runs the old image, because the marker was never written |
| after programming, before the marker | a complete new image that is not in use | runs the old image; the new one is orphaned |
| after the marker, before the old bank is erased | two complete images, one designated | runs the new image |
| during erase of the old bank | one complete image and one partially erased | runs the new image, with no fallback |
The second row is the one that generates support tickets. The device behaves exactly as it did before the update, the customer reports a failed update, and the actual state is that the update succeeded and was never activated. A recovery from such a device returns two programs, and the question is not which one is valid but which one the marker points at.
Write protection is set per bank
Protection of the array against writing is configured in option bytes, with a granularity that follows the regions rather than the whole device. That matters because a design can protect the lower bank — the one that must not be damaged in the field — and leave the upper bank writable for updates.
When such a device is recovered, the protection state is part of the answer. A customer who intends to restore the device needs to know which regions will refuse programming, and a customer who intends to modify the firmware needs to know that the modification will be rejected by hardware rather than by software. Reading the option bytes and decoding them into a list of write-protected ranges takes a minute and prevents an afternoon of confusion.
The read-out protection is a separate mechanism with its own two levels, and its interaction with the boot path is described in STM32F745 heximal extraction. The contrast with a family that goes further and lets the two banks exchange their base addresses at runtime is in STM32H743 flash recovery — there the mapping itself is configurable, which produces two correct but different answers to the same question.
Reading the array correctly
Three steps, in order. First, read the option bytes and decode the bank mode and the write protection. Second, read the array as a whole; the read itself is indifferent to banks. Third, analyse the result bank by bank, because the analysis is not indifferent.
The third step is where the join has to be handled explicitly. A vector table at the flash base tells you where the program starts. A second vector table at the boundary tells you that a second program exists. Neither tells you which one runs, and the answer to that question lives in the option bytes or in a marker written by the update logic, which is why the first step comes first.
What the report should say
The report should name the bank mode, the sector size that follows from it, the write protection ranges found, and the contents of each bank as a separate statement. Where two images are present it should say which is designated active and on what evidence, and where a staged update was interrupted it should say so plainly rather than presenting a partial image as a corruption.
The RAM map that sits below all of this, and misleads anyone who assumes it follows the usual pattern, is in STM32F765 heximal recovery. The external memory path that often holds the rest of a large application is in STM32F769 program recovery, and the case where the internal array is far too small to hold the product at all is in STM32F750 flash recovery.
FAQ
Does the part support swapping the two banks’ base addresses? Not in the sense that later families do. The banks have fixed addresses; what an update changes is which bank the boot process uses, recorded in configuration rather than by remapping the array.
Is a two-megabyte dump always two megabytes of program? No. It is two megabytes of array, which may contain one program, two programs, one program and a staged update, or a program and a great deal of erased space.
Can the array be read while the device runs? Yes, and the bank that is not executing can be erased at the same time, which is the whole point of the arrangement.
Conclusion
The quantity is two megabytes; the structure is two banks with a boundary, a mode-dependent sector size and separate protection. Reading the bytes is the easy part, and it is also the part that creates the false confidence. Naming the banks, the mode and the designated image is what turns a dump into a description of a device.
STM32F756: What a Hardware Crypto Block Leaves Behind
A crypto block creates a particular kind of expectation in a recovery request. The customer knows the product uses encryption, concludes that the firmware is encrypted, and asks for the decryption to be undone. The expectation is reasonable and it is usually wrong, because encryption on a microcontroller is rarely applied to the code. It is applied to data in transit, to stored credentials, or to a firmware image that arrives through an update channel — and in the third case the decrypted result is already sitting in flash, because that is where the processor executes from.
So the useful question is not “how do I decrypt this”. It is “which of these three things is the crypto block doing here”, and the image answers that question.
What the block can and cannot do
The accelerator handles symmetric encryption in several modes, a set of hash functions, and a true random number generator. It is a peripheral: software writes a key into it, writes data, and reads results. It does not fetch code, it does not sit between the processor and flash, and it has no ability to decrypt instructions as they are fetched.
That last point is the one worth stating explicitly, because it is the source of most wasted effort in this class of job. There is no bus encryption on this part. Code executing from flash is code in the clear unless the software itself decrypted it before writing it there.
| the accelerator does | the accelerator does not |
|---|---|
| encrypt and decrypt buffers on request | decrypt code as it is fetched |
| compute hashes over supplied data | authenticate the flash array at boot by itself |
| generate random numbers | store or protect a key on its own |
| run in several chained modes | hide its own configuration from a memory read |
The right column is why a decrypted image is the normal case. An application that receives an update over a network decrypts it into RAM, verifies a hash, and programs the result into flash. By the time the product ships, the ciphertext is gone and the plaintext is what a recovery reads.
Four places a key can come from
The key is the part that is genuinely absent from a dump, and how it was provisioned determines whether the recovered image is reusable at all.
| provenance | how it appears in the image | what happens on another device |
|---|---|---|
| compiled into the code as a constant | a fixed byte sequence, often obfuscated by a byte-wise transform | the image works, and the key is recoverable |
| stored in a dedicated one-time-programmable area | a read of that area returns the key or a fingerprint of it | the image works if the new device is provisioned identically |
| derived from the device’s unique identifier | arithmetic over a value read from system memory | the image runs but produces wrong results, or fails its own check |
| entered from outside at commissioning and never stored | nothing at all | nothing can be restored; the device is a brick without the key |
The third row is the one that produces the most confusing customer reports, and it is covered from the arithmetic side below. The fourth row is worth recognising early because it changes the commercial conversation: if the key is genuinely absent from every readable location, no amount of extraction will make the product work again, and saying so before the work starts is more valuable than a perfect dump delivered with an apology.
What the image keeps after the key is gone
Even when the key is unreadable, the surrounding code is highly informative, and it is where a recovery earns its value.
| artefact | what it looks like | what it tells you |
|---|---|---|
| the key-loading sequence | a short block writing consecutive words to one peripheral register block | which key slot and length the design used |
| mode and chaining setup | writes that set a mode field and an initialisation vector | whether the product used authenticated modes |
| a hash comparison | two buffers compared word by word after a hash completes | the program verifies integrity, so a modified image will be rejected |
| the storage format | a header with a length, a nonce and a tag before each block | how the stored data is structured, and therefore how to regenerate it |
| a random-number read at startup | a register read very early, feeding a buffer | where session keys or nonces come from |
The third row has a practical consequence that is easy to miss. A product that verifies a hash over its own flash at boot will refuse to run a restored image that differs by a single byte. Restoring such a device requires reproducing the exact original image, not merely a functional one, and the verification routine is the specification for what “exact” means.
The two protection levels
Protection on this family is set in option bytes and has two meaningful states on the debug side, with very different consequences.
| level | what it does | what it means for a recovery |
|---|---|---|
| unset | debug port works, memory readable, flash writable | straightforward read |
| level one | debug port is restricted, memory reads over the debug interface are blocked, but the application still runs and the flash can be mass-erased | the debug path is closed; erasing is possible but destroys the contents, so it is not a recovery |
| level two | the debug port is permanently disabled, and no mechanism exists to re-enable it | the die has to be accessed physically; there is no software route back |
The middle row describes the situation most often misreported as “irreversibly locked”. It is not irreversible — the device can be erased and reused — but erasing is the opposite of recovering, because on a flash part the erase that clears the protection also clears the array. That equivalence holds here exactly as it does on much smaller parts, and it is worth stating in plain language before a customer approves destructive work.
Why a working image can fail on a second device
Consider the case where the key is derived from the unique identifier. The derivation is short: a few words of identifier, a mixing step, and the result used as a key. Nothing about it is visible unless you look for it, and when the image is restored onto a second device the failure is not a crypto error message. It is a corrupted data structure, or a communication stack that authenticates nothing, or a device that boots and then refuses to accept its own configuration.
The pattern is recognisable: the image contains a read from the system memory area very early, followed by arithmetic that produces a value used as a key, and a checksum that will not match on any other die. A report that identifies this pattern tells the customer that the recovery is valid for one device and that a fleet cannot be restored from it, which is a materially different answer from “recovered successfully”.
| symptom after restore on a second device | likely cause |
|---|---|
| boots, then fails an internal integrity check | identifier-derived key or a hash bound to the original die |
| boots, runs, but produces wrong output values | same, with the failure absorbed by the application |
| refuses to enter its normal mode | a provisioning check against a stored fingerprint |
| works completely | the key was a constant or the provisioning was reproduced |
What the report should state
State whether the image contains ciphertext at all, and if so where. State the key provenance with the evidence for the conclusion. State the protection level that was found, and if it was level two, say so before quoting physical work. And state whether the recovered image is portable to another device, because that single sentence decides whether the customer can use the result for production or only for analysis.
The value-line member of the same family, where the internal array is small enough that the application body is elsewhere, is covered in STM32F750 flash recovery. The protection and boot-path interaction is set out in STM32F745 heximal extraction, and the identification step that must precede any of this is in STM32F747 binary recovery. A comparable crypto-equipped case on an older core is at STM32F407ZG firmware restoration.
FAQ
Is the firmware itself encrypted on this part? Almost never. The processor fetches instructions directly from flash, so the code has to be in the clear. Encryption applies to data and to update packages.
Can the crypto block be used to hide code? Only by decrypting it at runtime into RAM, which leaves a decrypted copy in RAM while the device runs.
Does level two protection mean the die is unusable? No, but it means no debug path exists. Physical access is the only route, and the die is destroyed as a functional part in the process.
Conclusion
A crypto block does not hide code; it processes data. The key is the only genuinely missing piece, and its provenance — constant, one-time area, identifier-derived, or supplied from outside — decides whether a recovered image is portable, single-device, or worthless. Reporting that provenance, together with the protection level actually found, is the difference between a dump and an answer.