2026-03-03 7:21 AM
Hi ST Community,
I try to write the OTP Memory on NUCLEO-H563ZI Board with STM_Programmer_CLI (Debian Linux).
With STM32CubeProgrammer GUI application I can access OTP memory (beginning 0x08FF_F000).
When I try to access the otp memory via CLI:
./STM32_Programmer_CLI -c port=SWD mode=HOTPLUG -otp displError: OTP programming commands are not supported with STLINK interfaces for this device.
Bus 001 Device 011: ID 0483:xxxx STMicroelectronics STLINK-V3
./STM32_Programmer_CLI -c port=usb1 mode=HOTPLUG -otp displI receive:
Error: Target device not found.
Establishing connection with the device failed.
Do you have any ideas/hints what I am mistaking here?
Thanks in advance!
Solved! Go to Solution.
2026-03-03 9:43 AM
> Error: OTP programming commands are not supported with STLINK interfaces for this device.
If it's not supported, it's not supported. The error message looks rather explicit. I don't think you're missing anything.
You may be able to read/write by specifying the addresses explicitly. In the case of writing, you should also specify a 16-bit word size.
2026-03-03 9:43 AM
> Error: OTP programming commands are not supported with STLINK interfaces for this device.
If it's not supported, it's not supported. The error message looks rather explicit. I don't think you're missing anything.
You may be able to read/write by specifying the addresses explicitly. In the case of writing, you should also specify a 16-bit word size.
2026-03-03 11:51 PM
OK, simple -r32 / -w32 operation works well - I overcomplicated things:
./STM32_Programmer_CLI -c port=swd -r32 0x08FFF000 0x400