cancel
Showing results for 
Search instead for 
Did you mean: 

Q. to write protection area on bank1 ?

Ccorn.1
Associate II

Hello, I am new to the STM32 world.

my little board STM32 (LoRa) form China

ST-LINK SN : 53FF6D066687505145250967

ST-LINK FW : V2J38S7

Board    : --

Voltage   : 3.26V

SWD freq  : 4000 KHz

Connect mode: Normal

Reset mode : Software reset

Device ID  : 0x699

Revision ID : Rev Z

Device name : STM32WLxx

Flash size : 128 KBytes

Device type : MCU

Device CPU : Cortex-M4

BL Version : 0xc2

Read Out Protection:

   RDP     : 0xAA (Level 0, no protection)

  BOR Level:

   BOR_LEV   : 0x0 (BOR Level 0 reset level threshold is around 1.7 V)

  User Configuration:

   nBOOT0    : 0x1 (nBOOT0=1)

   nBOOT1    : 0x1 ()

   nSWBOOT0   : 0x1 (BOOT0 taken from PH3/BOOT0 pin)

   SRAM_RST   : 0x1 (SRAM1 and SRAM2 are not erased when a system reset occurs)

   SRAM2_PE   : 0x1 (SRAM2 parity check disable)

   nRST_STOP  : 0x1 (No reset generated when entering the Stop mode)

   nRST_STDBY  : 0x1 (No reset generated when entering the Standby mode)

   nRST_SHDW  : 0x1 (No reset generated when entering the Shutdown mode)

   WWDG_SW   : 0x1 (Software window watchdog)

   IWGD_STDBY  : 0x1 (Independent watchdog counter running in Standby mode)

   IWDG_STOP  : 0x1 (Independent watchdog counter running in Stop mode)

   IWDG_SW   : 0x1 (Software independent watchdog)

   BOOT_LOCK  : 0x0 (CPU1 CM4 Boot lock disabled)

   C2BOOT_LOCK : 0x0 (CPU2 CM0+ Boot lock disabled)

   IPCCDBA   : 0x3FFF (0x3FFF)

  Security Configuration Option bytes ESE:

   ESE     : 0x0 (Security disabled)

  PCROP Protection:

   PCROP1A_STRT : 0xFF (0x803FC00)

   PCROP1A_END : 0x0 (0x8000000)

   PCROP_RDP  : 0x1 (PCROP zone is erased when RDP is decreased)

   PCROP1B_STRT : 0xFF (0x803FC00)

   PCROP1B_END : 0x0 (0x8000000)

  Write Protection:

   WRP1A_STRT  : 0x0 (0x8000000)

   WRP1A_END  : 0x1 (0x8000800)

   WRP1B_STRT  : 0x7F (0x803F800)

   WRP1B_END  : 0x0 (0x8000000)

OPTION BYTES BANK: 1

Q.: I cannot start my own program at 0x8000000

How can I remove write protection? or possibly to another Addr. move

Q.: Is there a chance to start my own program on this board?

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

You should be able to change WRP1A_STRT/WRP1A_END in STM32CubeProgrammer somewhere within the option bytes.

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

View solution in original post

4 REPLIES 4

Attach picture or Web link to specific board you're talking about.

STM32 Cube Programmer should permit you to remove of change settings.

You could probably also put code deeper into flash, using the existing boot loader if you understood it's specific requirements and expectations. Download the binary data in there currently and attach.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Ccorn.1
Associate II

thanks for the fast reply

unfortunately I don't have the board with me at the weekend.

Do you have a tip in which area of the STM32 Cube Programmer it can be switched off

Or setting a new Startaddr. for Programs?

TDK
Guru

You should be able to change WRP1A_STRT/WRP1A_END in STM32CubeProgrammer somewhere within the option bytes.

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

@TDK, thx that works for me.:grinning_face: