2020-05-25 09:16 AM
Using DFU. I repeatdly try to flash the dongle, it almost always fails and when it seems to start erasing prior to writing it ends up with :
$ ./STM32_Programmer_CLI -c port=usb1 -d /tmp/BLE_p2pServer_reference.hex
-------------------------------------------------------------------
STM32CubeProgrammer v2.4.0
-------------------------------------------------------------------
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STMicroelectronics
SN : 2057387B3136
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WB55xx
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
Memory Programming ...
Opening and parsing file: BLE_p2pServer_reference.hex
File : BLE_p2pServer_reference.hex
Size : 17841 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 4]
erasing sector 0000 @: 0x08000000 failed
erasing sector 0001 @: 0x08001000 failed
erasing sector 0002 @: 0x08002000 failed
erasing sector 0003 @: 0x08003000 failed
erasing sector 0004 @: 0x08004000 failed
Download in Progress:
Error: failed to download Segment[0]
Error: failed to download the File
Previous attempts fails with "unsupported" command for this device, or asking for -rdu.
When -rdu is invoked it randomly telling me that RDP is 0xBB where it reads out 0xAA (no protection).
Help
-Olivier
2020-05-26 05:27 AM
Have you tried to use the GUI Version 2.4.0? A far as i am concerned, it works more reliable than the cli version.
2020-05-27 12:05 AM
Thank you for your reply. I actually switched to CLI because the UI tool was behaving inconsistently. I had no issues with the Nucleo board so I concluded that the DFU part of the tool is just crappy. It works better (though not reliably) on Windows (7 here), and I could get the FUS, Stack and application downloaded properly to the dongle. This is surprising since it's a Java tool. Well I guess the serial port part is obviously not common to both platforms (Java has no good solution for this).
Since Windows is a no go for me, I think I'll use standard dfu tools on Linux or stick with the Nucleo dev board instead of the dongle.