2021-11-04 12:56 AM
I'm currently using BlueNRG-2 for development and would like to use the BlueNRG-1_ST-LINK_CLI utility within the BlueNRG-1 ST-LINK Utility software package to perform a section erase operation.
It didn't have problems when I first executed "BlueNRG-1_ST-LINK_CLI.exe -se 0 31" in the console. The output of the command above was:
BlueNRG-1 ST-LINK CLI v2.0.0.0
BlueNRG-1 ST-LINK Command Line Interface
ST-LINK SN : 50FF6E067867515512311867
ST-LINK Firmware version : V2J28S7
Connected via SWD.
SWD Frequency = 4000K.
Target voltage = 3.2 V.
Connection mode : Normal.
Device family : BlueNRG-2
Device flash Size : 256 Kbytes
Version ID : 1
Revision ID: 2
Erasing flash memory sector...
Memory Sector 0 erased.
Erasing flash memory sector...
Memory Sector 1 erased.
Erasing flash memory sector...
Memory Sector 2 erased.
Erasing flash memory sector...
Memory Sector 3 erased.
Erasing flash memory sector...
Memory Sector 4 erased.
Erasing flash memory sector...
Memory Sector 5 erased.
Erasing flash memory sector...
Memory Sector 6 erased.
Erasing flash memory sector...
Memory Sector 7 erased.
Erasing flash memory sector...
Memory Sector 8 erased.
Erasing flash memory sector...
Memory Sector 9 erased.
Erasing flash memory sector...
Memory Sector 10 erased.
Erasing flash memory sector...
Memory Sector 11 erased.
Erasing flash memory sector...
Memory Sector 12 erased.
Erasing flash memory sector...
Memory Sector 13 erased.
Erasing flash memory sector...
Memory Sector 14 erased.
Erasing flash memory sector...
Memory Sector 15 erased.
Erasing flash memory sector...
Memory Sector 16 erased.
Erasing flash memory sector...
Memory Sector 17 erased.
Erasing flash memory sector...
Memory Sector 18 erased.
Erasing flash memory sector...
Memory Sector 19 erased.
Erasing flash memory sector...
Memory Sector 20 erased.
Erasing flash memory sector...
Memory Sector 21 erased.
Erasing flash memory sector...
Memory Sector 22 erased.
Erasing flash memory sector...
Memory Sector 23 erased.
Erasing flash memory sector...
Memory Sector 24 erased.
Erasing flash memory sector...
Memory Sector 25 erased.
Erasing flash memory sector...
Memory Sector 26 erased.
Erasing flash memory sector...
Memory Sector 27 erased.
Erasing flash memory sector...
Memory Sector 28 erased.
Erasing flash memory sector...
Memory Sector 29 erased.
Erasing flash memory sector...
Memory Sector 30 erased.
Erasing flash memory sector...
Memory Sector 31 erased.
But when I ran "BlueNRG-1_ST-LINK_CLI.exe -se 0 32", it said
BlueNRG-1 ST-LINK CLI v2.0.0.0
BlueNRG-1 ST-LINK Command Line Interface
ST-LINK SN : 50FF6E067867515512311867
ST-LINK Firmware version : V2J28S7
Connected via SWD.
SWD Frequency = 4000K.
Target voltage = 3.2 V.
Connection mode : Normal.
Device family : BlueNRG-2
Device flash Size : 256 Kbytes
Version ID : 1
Revision ID: 2
[-SE]:The BlueNRG-2 has only 32 sectors.
It's a little bit strange considering that the device flash size is 256 KB, but the tool says the device has only 32 sectors.
I've checked that the sector size in the tool is 2 KB (by running "BlueNRG-1_ST-LINK_CLI.exe -se 0", "BlueNRG-1_ST-LINK_CLI.exe -r8 0x10040000 0x1000" in the console). So my question is that is there a way I could erase the sectors after 0x10050000 (i.e., 0x10040000 + 32*0x800) using BlueNRG-1_ST-LINK_CLI?