Solved
This topic has been closed for replies.
So my problem was that after the line "firmware delete finished" it didn't do anything. I used a Mac. After a whole lot of trying debug and fix the problem checking the option bytes, I tried upgrading on a windows computer and it worked right away. This means that there wasn't any problem with the boards, rather with the Mac version of the STM32CUBEPROG.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.