Manufacturing trends have changed greatly in the past decade. It is now not uncommon to program a device in different stages of end equipment manufacturing involving different third parties and geographic regions. In some cases it is desirable to protect a certain code segment from external access via JTAG or BSL while still allowing a third party program access to the device. An example of such an application can be in metering devices where the billing algorithm is protected while allowing different sub-contractors to program their own user interface code. In such cases, the IP owner can protect their IP by using the IP encapsulation feature in the FR5969 device. This feature allows the creation of a special address range in main memory with no external access whatsoever. Only execution of code from the protected segment is possible via an external function call. Any external access via JTAG, BSL, DMA or even an in-system register read is prevented. Any unauthorized access to the IP encapsulated segment returns a value equivalent to JMP $ and triggers an interrupt or reset.

