STM32CubeProgrammer won't erase target device flash.
Hi all. I am using STM32CubeProgrammer with an STM32G474VET6 target system on a Windows 10 box with a USB-connected STLink module. The programmer is v2.10.0, and the STL firmware is v2J3757.
My problem is that the Cube programmer doesn't seem to be able to perform a mass erase on the target prior to programming. When I try to program, I get the following message:
Error: failed to erase memory
The Full chip erase button fails as well with
Error: Mass erase operation failed.Please verify flash protection
Flash write protection is not enabled on the target. I can erase and program just fine with the STM32 ST-LINK Utility. Also, Cube programs successfully if the target device flash is blank.
I'm happy to provide any of the target settings on request.
Any ideas?
Thanks,
Mike
