@blankman Dowgrading with stlink requires that you have extracted your bootloader and settings for the correct serial number, mileage.
If you use someone else's bootloader and settings then you need a special program to change the serial number, mileage.
After stlink, then you can Rewheel with encrpted file 5040, if you don't have the 5040 file then no point going any further.
What was your goal try to get into factory mode?