Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.239

Texas Instruments TMS570: AJSM Unlocking

In this topic:

Introduction

Requirements

Configuration

 

 

Introduction

The Hercules platform includes the Advanced JTAG Security Module (AJSM) as support for managing debug access on deployed devices. AJSM can be used to program a unique access key to the OTP Flash memory. Subsequent debug accesses must unlock the AJSM with the correct key sequence to gain access to the JTAG-based debug, trace, and calibration logic. An error in unlocking the AJSM results in no error response and no access to the debug logic.

 

When the device is programmed with a defined 128-bit key and ECC, it is locked from debug access after the next power-on-reset.

Upon debug session initialization, winIDEA detects if the device is locked, which is indicated in the Progress window: Debug TAP present but not accessible. Device SECURED!

TMS570-Info_DebugTAPnotAccessible_DeviceSECURED

 

When the device is secured or locked, winIDEA automatically attempts to perform a temporary unlock (the device is unlocked until the next power-on-reset) procedure before continuing with debug session initialization.

 

 

Requirements

winIDEA 9.21.117 or newer

BlueBox iC5700, iC5000

 

 

Configuration

For this unlock to succeed, you must configure the workspace with the correct unlock key. This key is entered as a parameter in the Before Program - Connect to SoC dialog.

 

number1

Open Hardware / CPU Options / Reset.

number2

Click the Default button in Initialization before Programming / Connect / Custom.

number3

Select script via the arrow button in the Script field.

Number4

Click on the arrow button to select parameters via the Edit options dialog.

TMS570-EditOptions-Values

 

Warning_orange

Unlock key is stored as a part of the winIDEA workspace configuration file in a plain text format. Sharing the winIDEA workspace file also shares this unlock key.

 

Number5

Make sure to set the same script parameters for all Initialization modes.

Check options Same as Programming in Initialization before Debug session and Initialization at Attach. Progress Window logs the procedure.

 

i-icon

Using the AJSM procedure, the device can be permanently locked without the option to temporarily unlock. In this case, debugging of such a target is not possible. Unlocking the target device will not succeed.

 

See Texas Instrument online documentation for more information on AJSM (Un)Locking.

 

Copyright © 2024 TASKING Germany GmbH