Skip to main content
waclawek.jan
Super User
July 29, 2021
Question

How to program WRP as one word in CubeProgrammer CLI?

  • July 29, 2021
  • 6 replies
  • 1141 views

This is how WRP bits are programmed in STLink-Utility CLI:

st-link_cli -OB WRP=0xffffffff

However, CubeProgrammer CLI appears to force me to program WRP bits bit-by-bit; this is not practical. Manual does not deal with details of options programming (which is IMO documentation deficiency, too).

Is there a way to write all WRP bits at once in CubeProgrammer CLI?

JW

This topic has been closed for replies.

6 replies

Houda GHABRI
ST Employee
August 11, 2021

Hi waclawek.jan,

I will check , can you please give me the MCU refernce?

Houda

waclawek.jan
Super User
August 12, 2021

Hi @Houda GHABRI​ ,

STM32F303, but I don't think the problem is specific to any particular STM32 model.

JW

Houda GHABRI
ST Employee
August 13, 2021

Hi waclawek.jan ,

I confirm , using CubeProgrammer you need to program WRP bits bit by bit which is missing comparing to STLink-Utility.

I will bring it up internally to CubeProgrammer development team to add the possibility of programming WRP bits at once.

Thanks for your feedback.

Houda

Internal ticket number: 111889 (PS: This is an internal tracking number and is not accessible or usable by customers). 

waclawek.jan
Super User
August 13, 2021

Thanks, @Houda GHABRI​ .

Jan

Mike_ST
Technical Moderator
August 13, 2021

Hello

I don't have F303 on my desk...

But, in one of my script for another chip, I do the following with STM32CubeProgrammer_CLI:

-ob nWRP0=1 nWRP1=1 nWRP2=1 nWRP3=1 nWRP4=1 nWRP5=1 nWRP6=1 nWRP7=1

Not sure this is what you're looking for.

waclawek.jan
Super User
August 13, 2021

Hi @Mike_ST​ ,

As I've said in the opening post, I know how to set individual WRP bits in CubeProgrammer (although it is not documented, which would be one more complaint of mine), but I seek the functionality which already existed in STLink Utility's CLI, that all WRP bits can be set at once in one word.

Setting explicitly 32 bits is cumbersome, to put it mildly.

JW