2021-07-16 8:08 PM
I have 3 Nucleo-WL55JC1 boards and tried to activate the bootloader as AN2606.
As an AN2606, it should activate the bootloader if there is pattern 13.
  
When I have set the BOOT1 and nSWBOOT0 to 1(Checked on STM32CubeProgrammer GUI), and connected BOOT0 pin to VCC, then reset the board, but it still runs the user flash.
Also set BOOT1 to 1, nSWBOOT0 to 0 and BOOT0 to GND, then reset, but same.
It's very weird and couldn't find the same issue on the forum.
Is there any typo on the reference or am I confusing?
Any reply would be appreciated.
Thank you.
Solved! Go to Solution.
2021-07-18 4:27 PM
I could set the BOOT_LOCK bit in option byte by increasing RDP and setting back it. And there is some activity to set it to 1 in SBSFU. While the SBSFU is running, I can't set it to 0. So you should erase the flash at first and then try. If fails again, change the RDP level.
[P.S.] It's the right instruction to activate the bootloader in STM32WL that I found in RM0453. AN2606 doesn't describe the correct pattern. They should update it.
 
2021-07-16 9:39 PM
While reading the stm32wl55 reference manual (RM0453), I found there are more option bits to activate the bootloader.
Especially I should disable BOOT_LOCK bit, I can't set it by STM32CubeProgrammer.
When unchecking it, got an error like this.
  21:33:34 : Reconnected !
  21:33:34 : UPLOADING OPTION BYTES DATA ...
  21:33:34 :   Bank          : 0x00
  21:33:34 :   Address       : 0x58004020
  21:33:34 :   Size          : 96 Bytes
  21:33:34 :   Bank          : 0x01
  21:33:34 :   Address       : 0x58004080
  21:33:34 :   Size          : 8 Bytes
  21:33:34 : OPTION BYTE PROGRAMMING VERIFICATION:
  21:33:34 : Error: Expected value for Option Byte "BOOT_LOCK": 0x0, found: 0x1
  21:33:34 : Error: Option Byte Programming failedIs this the programmer issue?
2021-07-18 4:27 PM
I could set the BOOT_LOCK bit in option byte by increasing RDP and setting back it. And there is some activity to set it to 1 in SBSFU. While the SBSFU is running, I can't set it to 0. So you should erase the flash at first and then try. If fails again, change the RDP level.
[P.S.] It's the right instruction to activate the bootloader in STM32WL that I found in RM0453. AN2606 doesn't describe the correct pattern. They should update it.