Infineon AURIX TC2xx / TC3xx: HSM application is not running / HSM core is stopped

07-Jun-2024

When the Aurix is reset with the debugger connected and the Hardware Security Module (HSM) is enabled in the User Configuration Block (UCB), the boot code of TC2xx / TC3xx sets a breakpoint to HSM’s first instruction. This stops the HSM core from running and if the primary core expects the HSM to run, the synchronization between the boot core and the HSM core in the application will fail.


Possible solutions

Use winIDEA configuration for automatic synchronization

It is recommended that you use the latest verified winIDEA build.

1. Enable Synchronize selected cores (stop/run) when possible via Hardware | CPU Options | Debugging.

2. Enable the following options for cores you want to be automatically synchronized via Hardware | CPU Options Cores | HSM:

  • Automatically observe this core
  • Synchronize this core

This is the preferred solution and can be used in winIDEA 9.21.134 or higher.


Explanation - behavior after Reset
  • Synchronize this core is unchecked - HSM core is always stopped, even if you Run or Stop the primary core, HSM does not leave the breakpoint set by the hardware logic at the first instruction.
  • Synchronize this core is checked - HSM core is in Stop after reset. If you Run the primary core, the HSM core also goes to Run - the synchronization works.



Use Force run

1. Open Hardware | CPU Options | Cores | HSM.

2.  IDebug entry type select Force run.


More resources in winIDEA Help

    Was this answer helpful?