This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS3137: TMS570LS3137 AJSM

Part Number: TMS570LS3137
Other Parts Discussed in Thread: UNIFLASH, HALCOGEN, , TMS570LS1227

Tool/software: Code Composer Studio

Hi Sir,

I have problem about to unlock my device. I used Halcgen and CCS v7.2.0 and I locked my device with AJSM module. I tried to unlock to use cmd window and I can t connect to device . You can see a image below.

  

  

How can I unlock my device? Could you share any example or tool? I use uniflash and how can i unlock to use uniflash?

  • Hello Emre,

    . Find the unlock scan pattern or unlock key from your ajsm.asm generated through HALCoGen

       AJSM0~AISM3 are the key you programmed to the OTP. The unlock key is:

      dbgauth key : 1aa23545....

    2. In CCS, double click your target configuration file (for example TMS570LS3137.ccxml ), and click "Test Connection", the testBoard.dat file will be generated and is located in c:\Users\...\AppData\Local\Texas Instruments\CCS\ti\x\y\BrdData   (x,y are numbers, the location is shown in Test Connection window ):

    3. The dbgauth.exe is located in c:\ti\ccsv7\common\uscif\dbgauth.exe

    4. open you cmd windows, type following command to unlock (replace the folder name and unlock key with yours)

    c:\ti\ccsv7\common\uscif\dbgauth.exe -c C:\Users\...\AppData\Local\TEXASI~1\CCS\ti\1\0\BrdDat\testBoard.dat -s ajsm -t cortexr4 -k 1aa23545... -m 1

  • Hello Wang,

    I tried your suggestions but I have same problem now. You can see my screenshot below.

    Could you share any example to unlock with CCS ?

  • Hello Emre,

    I saw that you have JTAG connection problem when doing the connection test. The board file generated through "connection test" may not work for AJSM unlock.

    You can use either dbgauth.exe or CCS to unlock the AJSM, but both use the same way. For CCS approach, we add dbgauth .... into the GEL file.
  • Hello Wang,

    Thank you for your reply. I have not got any problem about JTAG connection. You can see test connection data below.

    *******************************************************************************************************
    [Start: Texas Instruments XDS100v2 USB Debug Probe]

    Execute the command:

    %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

    [Result]


    -----[Print the board config pathname(s)]------------------------------------

    C:\Users\EMREIL~1\AppData\Local\TEXASI~1\
    CCS\ti\0\0\BrdDat\testBoard.dat

    -----[Print the reset-command software log-file]-----------------------------

    This utility has selected a 100- or 510-class product.
    This utility will load the adapter 'jioserdesusb.dll'.
    The library build date was 'May 23 2017'.
    The library build time was '19:37:36'.
    The library package version is '6.0.628.3'.
    The library component version is '35.35.0.0'.
    The controller does not use a programmable FPGA.
    The controller has a version number of '4' (0x00000004).
    The controller has an insertion length of '0' (0x00000000).
    This utility will attempt to reset the controller.
    This utility has successfully reset the controller.

    -----[Print the reset-command hardware log-file]-----------------------------

    The scan-path will be reset by toggling the JTAG TRST signal.
    The controller is the FTDI FT2232 with USB interface.
    The link from controller to target is direct (without cable).
    The software is configured for FTDI FT2232 features.
    The controller cannot monitor the value on the EMU[0] pin.
    The controller cannot monitor the value on the EMU[1] pin.
    The controller cannot control the timing on output pins.
    The controller cannot control the timing on input pins.
    The scan-path link-delay has been set to exactly '0' (0x0000).

    -----[The log-file for the JTAG TCLK output generated from the PLL]----------

    There is no hardware for programming the JTAG TCLK frequency.

    -----[Measure the source and frequency of the final JTAG TCLKR input]--------

    There is no hardware for measuring the JTAG TCLK frequency.

    -----[Perform the standard path-length test on the JTAG IR and DR]-----------

    This path-length test uses blocks of 64 32-bit words.

    The test for the JTAG IR instruction path-length succeeded.
    The JTAG IR instruction path-length is 6 bits.

    The test for the JTAG DR bypass path-length succeeded.
    The JTAG DR bypass path-length is 1 bits.

    -----[Perform the Integrity scan-test on the JTAG IR]------------------------

    This test will use blocks of 64 32-bit words.
    This test will be applied just once.

    Do a test using 0xFFFFFFFF.
    Scan tests: 1, skipped: 0, failed: 0
    Do a test using 0x00000000.
    Scan tests: 2, skipped: 0, failed: 0
    Do a test using 0xFE03E0E2.
    Scan tests: 3, skipped: 0, failed: 0
    Do a test using 0x01FC1F1D.
    Scan tests: 4, skipped: 0, failed: 0
    Do a test using 0x5533CCAA.
    Scan tests: 5, skipped: 0, failed: 0
    Do a test using 0xAACC3355.
    Scan tests: 6, skipped: 0, failed: 0
    All of the values were scanned correctly.

    The JTAG IR Integrity scan-test has succeeded.

    -----[Perform the Integrity scan-test on the JTAG DR]------------------------

    This test will use blocks of 64 32-bit words.
    This test will be applied just once.

    Do a test using 0xFFFFFFFF.
    Scan tests: 1, skipped: 0, failed: 0
    Do a test using 0x00000000.
    Scan tests: 2, skipped: 0, failed: 0
    Do a test using 0xFE03E0E2.
    Scan tests: 3, skipped: 0, failed: 0
    Do a test using 0x01FC1F1D.
    Scan tests: 4, skipped: 0, failed: 0
    Do a test using 0x5533CCAA.
    Scan tests: 5, skipped: 0, failed: 0
    Do a test using 0xAACC3355.
    Scan tests: 6, skipped: 0, failed: 0
    All of the values were scanned correctly.

    The JTAG DR Integrity scan-test has succeeded.

    [End: Texas Instruments XDS100v2 USB Debug Probe]
    **********************************************************************************************************
  • Hello,

    Your original post shows aborted JTAG connection:

    Are you able to unlock the JTAG using the new board file?

  • Hello Wang,

    I still can not unlock using new board file. I have same problem " Failed to find specified device name in the board config info " in cmd window.

  • Hello Emre,

    Your board might have JTAG conenction problem. Which board did you use?
  • Hello Wang,

    I use Hercules TMS570LS3137 Development Kit and I tried on our design ECU which have TMS570LS1227ZWT . But I have same problem. I sent NDA documents yesterday for SAFETI forum . Maybe I can find any solution about that. I hope permanently not lock my device.
  • This is the CCS project I used to unlock the TMS570LS3137ZWT on HDK:

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/5706.TMS570LS3137ZWT_5F00_AJSM_5F00_unlock.7z

  • Please place this gel file to  C:\ti\ccsv7\ccs_base\emulation\gel

    4024.tms570ls3137_ajsm_unlock.gel

  • Hello Wang,

    I have unlock my device TMS570LS3137 HDK and I can use it now. But I used SPNA232.zip for this operation and second problem is TMS570LS1227 for us. We are using TMS570LS1227 on our design board. And we should to unlock it when I need to flash them.
  • Hi Emre,

    Please use the same procedure you did for LS3137. Nothing special for LS1227 AJSM.
  • Hello Wang,

    Thank you very much for your help. I solved my problems and I am using our devices again. Thank you.