下载
![](https://oss-datasheet.aipcba.com/html/055DA346414E62EF6D3DCAA9136EAEE8/bg1.png)
Application Report
SLAA685–December 2015
MSP Code Protection Features
KatiePier................................................................................................................. MSPApplications
ABSTRACT
MSP microcontrollers (MCUs) offer a number of features to help control code accessibility in the device, to
add different layers of code access management and protection strategies. These include features that
can lock or password protect the JTAG/SBW access, IP Encapsulation (IPE) to isolate sensitive code with
different permissions than the rest of the program, and bootloader (BSL) access features for field firmware
updates. This application report details some of the features available in different MSP device families and
considerations that can be taken to add additional layers of protection to the device.
Related source code and additional information is available from http://www.ti.com/lit/zip/slaa685.
Contents
1 Introduction ................................................................................................................... 2
2 Locking JTAG Across Different MSP Families........................................................................... 2
3 IP Encapsulation (IPE)...................................................................................................... 9
4 Bootloader (BSL) Security Features..................................................................................... 29
5 References.................................................................................................................. 32
List of Figures
1 Target Configuration......................................................................................................... 6
2 JTAG Password on First Load............................................................................................. 8
3 IPE Tool in CCS............................................................................................................ 14
4 Debug Configurations in CCS ............................................................................................ 17
5 IPE Load Configuration in CCS .......................................................................................... 17
6 IPE Test Configuration in CCS ........................................................................................... 18
7 IPE Memory View in CCS - Unprotected................................................................................ 19
8 IPE Memory View in CCS - Protected................................................................................... 19
9 IPE Tool in IAR ............................................................................................................. 23
10 Generating .map File in IAR .............................................................................................. 24
11 Options for IPE_FR59xx................................................................................................... 26
12 Generating .txt Binary File in IAR ........................................................................................ 26
13 IPE Debug Configurations in IAR ........................................................................................ 28
14 IPE Memory View in IAR - Protected.................................................................................... 28
List of Tables
1 JTAG Locking Features Across MSP Families .......................................................................... 2
2 JTAG Locking on F5xx/F6xx ............................................................................................... 3
3 JTAG Locking on FR5xx/FR6xx ........................................................................................... 3
4 JTAG Locking on FR2xx/FR4xx ........................................................................................... 4
5 JTAG Locking on i2xx....................................................................................................... 4
6 JTAG Lock With Password on FR5xx/FR6xx............................................................................ 5
7 IPE Initialization Structure................................................................................................. 16
MSP430, MSP432, Code Composer Studio are trademarks of Texas Instruments.
IAR Embedded Workbench is a trademark of IAR Systems.
1
SLAA685–December 2015 MSP Code Protection Features
Submit Documentation Feedback
Copyright © 2015, Texas Instruments Incorporated