Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution


+ Reply to Thread
Results 1 to 7 of 7

Thread: HSM lock

  1. #1
    Beginner Beginner Rombic is on a distinguished road
    Join Date
    Mar 2019
    Posts
    6
    Points
    67.5

    HSM lock

    Hi everyone,

    I have problem after flashing HSM from examples on TC297 devkit board:
    1. flashed BootBasic - (i used percompiled file from example)
    2. flashed HsmDemo (i compiled it with HIGHTEC ARM toolchain)
    3. flashed ProconHsmCotp for configuration UCB

    I checked code in memory on every step, everything flashed. I flashed it with memtool, convert ELF file to HEX with objcopy -O ihex file.elf file.hex

    After restart i cann't connect to HSM. Also i have red led ESR0 (RESET state) What does it mean?

    I try check board with DAS device scanner, it sees board, but i have strange status "DAS Error: DEVICE_LOCKED". But i don't set any protection, just flashed examples HSM. Why have i this error?

    Click image for larger version

Name:	lock.png
Views:	1
Size:	31.8 KB
ID:	4137


    Give me any advice.

  2. #2
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    128
    Points
    2527.5

    Hi Yuriy,

    This is probably caused by the same issue as discussed here. In essense you may have inadvertently bricked your device, without the possibility of restoring it to normal.

    Best regards,

    Henk-Piet Glas

    Principal Technical Specialist
    Embedded Software

  3. #3
    Beginner Beginner Rombic is on a distinguished road
    Join Date
    Mar 2019
    Posts
    6
    Points
    67.5
    Henk-Piet Glas

    But I checked exist bootloader before activation UCB. Also code ProconHsmCotp checks first addresses 0x20005000. If code HsmDemo throw some exception in during boot HSM, will it lock device? I just want understand problem. I used examples from infineon and followed instructions. But i used other compiler HIGHTEC and Memtool for flashing. Can be it cause?

  4. #4
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    128
    Points
    2527.5

    Hi Yuriy,

    Sorry, there's nothing more that I can add other than what I said. If your device is inaccessibly after enabling HSM, then to all intends and purposes it is most likely bricked. You can ask for a 2nd opinion from your Infineon representative. Perhaps there are ways to backtrace the cause that I do not know of. But as soon as the debug interface is taken out of the loop you're pretty much lost as to what it may have been.

    Best regards,

    Henk-Piet Glas

    Principal Technical Specialist
    Embedded Software

  5. #5
    Beginner Beginner Rombic is on a distinguished road
    Join Date
    Mar 2019
    Posts
    6
    Points
    67.5
    i have already ordered new device, but if i do same steps, result will be same (brick a device). I want understand what i did wrong with flashing or compilation.

  6. #6
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    128
    Points
    2527.5

    Hi Yuriy,

    I personally cannot help you with that. Maybe someone else on this forum can.

    Best regards,

    Henk-Piet Glas

    Principal Technical Specialist
    Embedded Software

  7. #7
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    128
    Points
    2527.5

    Hi Yuriy,

    I can give you one advice though. You need a professional debugger that supports HSM in terms of HLL debugging and HSM specific SFR definitions. Without such a tool the odds are against you. You really need a professional debugger. In that case not only do you have the aforementioned features, you also have an interface that allows you to enable/disable HSM with the flick of a switch, as well as defining the bootsector that BootBasic is booting HsmDemo from. That's really what you need as a first time user. Note that for HSM integration of this kind the debugger vendor will first have to ask NDA permissions from Infineon. So it's not provided out of the box. You're not the only one by the way. I've managed to brick two boards myself for the very same reason (I know for sure I corrupted my UCB's).

    Best regards,

    Henk-Piet Glas

    Principal Technical Specialist
    Embedded Software

+ 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.