infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 9 of 9

Thread: Password Protected JTAG Flashing Query

  1. #1
    Beginner Beginner H.Anchan is on a distinguished road
    Join Date
    Jul 2017
    Posts
    7
    Points
    57.5

    Password Protected JTAG Flashing Query

    Hi,

    I am using AURIX TC299TF controller.
    I want the JTAG to be locked so that only authorized person can access the JTAG and modify things.

    For example :
    To flash new application into the flash memory the JTAG first needs to be unlocked with correct password. If JTAG was successfully unlocked only then it will allow the new application to be flashed into the flash memory.

    Is this possible? If yes, what should I refer for configurations?

    My target is to understand,

    1: How can we protect the debug interface or how to lock it?
    2: How to set the configuration for debug interface lock?
    3: How to unlock the debug interface by means of password or hardware settings etc. when we will connect the debugger.

    I have went through the user manual and found that we need to configure UCB_DBG

    UCB_DBG is located at 0xAF101400H. So do we have to flash the configurations directly at this location as per following?

    Table 10-13 UCB_DBG Content
    Offset Content Description
    00H PROCONDBG Protection of the debug interface.
    10H PROCONDBG Copy.
    20H PW0 – PW7 256-bit password, from least significant word to most
    significant word (8 words).
    40H PW0 – PW7 Copy of 256-bit password.
    70H Confirmation 4 bytes.
    78H Confirmation Copy.


    We have to flash the password at 20H and its copy at 40H?.
    Location 00H and 10H will be flashed with configurations as per the PROCONDBG?
    Do we have to do any additional configurations?


    Could you please explain the complete procedure and configurations to be done step by step.


    Thank you,
    Harish Anchan.
    Last edited by H.Anchan; Jul 18th, 2017 at 11:20 PM.

  2. #2
    New Member New Member Aurixam is on a distinguished road
    Join Date
    Jan 2019
    Posts
    3
    Points
    35
    Hello Harish Anchan
    Have you come to resolve your problem, i also have had the same and could not find enough info.
    Please share.

  3. #3
    Beginner Beginner H.Anchan is on a distinguished road
    Join Date
    Jul 2017
    Posts
    7
    Points
    57.5

    Memtool Device Setup Part 1

    For Locking/ Unlocking the debug interface Infineon Memtool can be used.
    Please follow the below steps

    Device Setup
    1.Power on the Aurix Development Kit.
    2.Connect the Aurix device with system (i.e. PC) through Micro USB Connector.
    3.Open Infineon Memtool.

    There will be a pop-up message “Initializing Memtool failed”.

    Click Ok.

    Click image for larger version

Name:	image1.png
Views:	1
Size:	58.5 KB
ID:	3797



    Status : Not initialized

    Click image for larger version

Name:	image2.png
Views:	0
Size:	52.9 KB
ID:	3798



    Now click On Target-> Change

    Click image for larger version

Name:	image3.png
Views:	0
Size:	57.4 KB
ID:	3799



    Following message will pop-up.

    Click OK.

    Click image for larger version

Name:	image4.png
Views:	1
Size:	69.4 KB
ID:	3800



    Click on Default to use predefined configuration files

    Click image for larger version

Name:	image5.png
Views:	0
Size:	36.9 KB
ID:	3801

  4. #4
    Beginner Beginner H.Anchan is on a distinguished road
    Join Date
    Jul 2017
    Posts
    7
    Points
    57.5

    Memtool Device Setup Part 2

    Configuration list will pop up, select the appropriate configuration.

    Click image for larger version

Name:	image6.png
Views:	0
Size:	41.7 KB
ID:	3802



    We will select,

    TriCore Aurix -> Starter Kits (DAS) -> TriBoard with TC297/TC298/TC299 B-Step (DAS)

    You may select your respective device

    Click Finish.

    Click image for larger version

Name:	image7.png
Views:	0
Size:	27.9 KB
ID:	3803



    Now save the configuration at a desired location.

    Click OK.

    Click image for larger version

Name:	image8.png
Views:	0
Size:	50.1 KB
ID:	3804



    Check the status,

    It will show Target not connected.

    Now Click on "Connect" to connect the target.

    Click image for larger version

Name:	image9.png
Views:	0
Size:	71.0 KB
ID:	3805



    Once the target is connected successfully the status will be changed to “Ready for Memtool Command”

    Click image for larger version

Name:	image10.png
Views:	0
Size:	70.9 KB
ID:	3806

  5. #5
    Beginner Beginner H.Anchan is on a distinguished road
    Join Date
    Jul 2017
    Posts
    7
    Points
    57.5

    Locking the Debug Interface with a Password

    Click image for larger version

Name:	Lock1.png
Views:	2
Size:	186.6 KB
ID:	3807

    Click image for larger version

Name:	Lock2.png
Views:	1
Size:	101.6 KB
ID:	3808

    Click image for larger version

Name:	Lock3.png
Views:	0
Size:	62.3 KB
ID:	3809

  6. #6
    Beginner Beginner H.Anchan is on a distinguished road
    Join Date
    Jul 2017
    Posts
    7
    Points
    57.5

    Unlocking the Debug Interface with a Password

    Click image for larger version

Name:	UnLock1.png
Views:	1
Size:	128.7 KB
ID:	3810

    Click image for larger version

Name:	UnLock2.png
Views:	1
Size:	160.9 KB
ID:	3811

    Click image for larger version

Name:	UnLock3.png
Views:	0
Size:	151.5 KB
ID:	3812

    Click image for larger version

Name:	UnLock4.png
Views:	1
Size:	80.1 KB
ID:	3813

  7. #7
    Beginner Beginner H.Anchan is on a distinguished road
    Join Date
    Jul 2017
    Posts
    7
    Points
    57.5

    Remove the Debug Interface Password Protection

    Click image for larger version

Name:	Remove1.png
Views:	2
Size:	236.9 KB
ID:	3814

    Click image for larger version

Name:	Remove2.png
Views:	1
Size:	74.2 KB
ID:	3815

  8. #8
    Beginner Beginner H.Anchan is on a distinguished road
    Join Date
    Jul 2017
    Posts
    7
    Points
    57.5

    Unlocking Aurix TC29x's Password Protected Debug Interface using iSystem’s winIDEA

    This will give a clear idea of unlocking the Aurix Tricore TC299 Debug Interface using iSystem’s winIDEA for flashing new application or for debugging

    Click image for larger version

Name:	winIDEA1.png
Views:	2
Size:	75.3 KB
ID:	3816

    Click image for larger version

Name:	winIDEA2.png
Views:	1
Size:	29.1 KB
ID:	3817

  9. #9
    New Member New Member Venkat is on a distinguished road
    Join Date
    Jul 2016
    Posts
    6
    Points
    95
    Hello Anchan,

    I don't have any feasibility of connecting my aurix controller to the PC for unlocking debug interface from you explanation.

    Is there any other process of unlocking i.e by modifying register values?

    If there please explain me.

    Thanks in advance.

    Regards,
    Sunil

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.