Have you tried a new 1T4 cable?
If so, might be easier to just replace the controller, about $150 USD
Flashing the firmware probably requires special tools that might not be end user available and more expensive if tracked down anyway.
Though I believe the Bafang BESST CANbus tool has UART...