cancel
Showing results for 
Search instead for 
Did you mean: 

Access otp memory NUCLEO-H563ZI with command line interface

tommy1976
Associate

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 displ
I receive:
Error: OTP programming commands are not supported with STLINK interfaces for this device.
 
With lsusb I can see my STLINK-V3:
Bus 001 Device 011: ID 0483:xxxx STMicroelectronics STLINK-V3
 
But also with the command (port=usb1 or usb0):
./STM32_Programmer_CLI -c port=usb1 mode=HOTPLUG -otp displ

I 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!

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

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

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Super User

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

If you feel a post has answered your question, please click "Accept as Solution".
tommy1976
Associate

OK, simple -r32  / -w32 operation works well - I overcomplicated things:

./STM32_Programmer_CLI -c port=swd -r32 0x08FFF000 0x400