Hey @Titoxd10001 thanks for your help! Thanks also to @Surfer
I was able to recover my VESC via the ST Link programmer, I’m so happy o bought it from eBay months ago, I might need it sometime, I said a while back.
We’ll the issue was, once you program the incorrect hardware version you won’t be able to go back to an older firmware, when flashing the firmware you will also flash the bootloader, an incorrect bootloader won’t let you flash an old firmware, do you get stuck with a bricked VESC.
The solution is to program an 4.12 FW with a ST-Link and after successfully installing the FW, flash the the Hex file which contains the bootloader, at the beginning o tried to flash the bin file FW only but couldn’t update the firmware so after flashing the Hex file everything went back to normal.
Finding the procedure to connect the st link was not easy, I had to watch a video from Jared and then find out the pinout to connect the ST-Link to the VESC, you just need to connect 4 cables 3.3v, GND, SWDIO and SWCLK, all commercial VESCs have these pins labeled at the back of the board, so don’t look for a pinout online, you will loose time as me, just plug them with the supplied wires.