2026-03-10 5:05 AM
STM32CubeProgrammer_CLI STM32TrustedPackageCreator problem with HSM, HSM_P11_Lib.dll cannot be loaded. GUI STM32CubeProgrammer works fine. Where that dll should be located? I Am using win11 pro.
2026-03-10 5:52 AM - edited 2026-03-10 5:52 AM
Hello @Kipe and welcome to the community!
HSM_P11_Lib.dll should be in /bin and in /api/lib folders.
2026-03-12 12:32 AM
2026-03-13 2:29 AM - edited 2026-03-13 5:35 AM
Hello @Kipe,
I wasn't able to reproduce this behavior on my side.
Could you please try the following and let me know the result:
Also to investigate further, can you provide me the exact windows version and the full path of both TrustedPackageCreator that you're running and the HSM_P11_Lib.dll.
2026-03-25 4:21 AM
hi again.
I'm using 64-bit windows 11 Pro (24H2).
so I was thinking to use 64-bit installation for cubeprogrammer.
Installation path C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\ .
Now I installed 32-bit cubeprogrammer to path
C:\Program Files (x32)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin
and from there it works now fine.
So, is there some dependency on trusted side HSM for 32-bit or what? I'm very confused now.
2026-04-07 3:36 AM - edited 2026-04-07 3:37 AM
Hello @Kipe ,
I was able to recreate the issue on my side, and the team is working on a fix. (Internal ticket ID: 0061138)
I'll let you know ASAP whenever the fix is delivered.
PS: Ticket ID: 0061138 is an internal tracking number and is not accessible or usable by customers.