The GD32A7 device family includes an Arm Cortex-M23 core that can be configured as a Hardware Security Module (HSM).
When the device operates in HSM mode, both the HSM core and the ARM Cortex-M7 cores can be secured using either:
To handle the unlocking of secured cores, winIDEA provides the EVE script, which automates the unlock process during connection.
1. In winIDEA, navigate to Hardware | CPU Options | Reset.
2. Under Connect script, select Custom for programming, debugging, attaching (or any combination you require).
3. Select the EVE script GD32A7xx: Unlock Debug Interface using Password or Challenge Response.
1. Open the Parameters for GD32A7xx_ConnectToSecuredSoC.cpp and select whether to unlock:
HSM (Cortex-M23) core with Challenge–Response

Password fields are:
Unlocking scenarios
2. Enter passwords as described above.
3. After the script configuration is completed, you can program or attach to the locked SoC.