I know this, but what could have happened while disconnecting or connecting the battery? The short circuit that damaged the controller? Since the controller responds to STLink, it should be operational.
The problem has been described several times on this forum, but I haven't found a solution...