For those facing the error, but on different boards : it might be a problem with trustzone enabled.You can look at the option byte TZEN in CubeProgrammer to check if trustzone is enabled or not.The Getting started pdf guide of the package explains in...