SOLVED: Using BlackMagic probe to upload frmware and debug
I was able to upload from openstm32 using legacy debugger under hardware debugging with this command:
target extended-remote COM6
mon swdp_scan
attach 1
monitor vector_catch disable hard
set mem inaccessible-by-default off
monitor option erase
set print pretty
regards