使用STCUBEProarming出现下载错误

问题遇到的现象和发生背景

使用ST-LINK V8 下载器下载,升级完下载器还是出现
Error: Unable to list supported devices
Error: Cannot identify the device
但是STM32CUBEProgrammer能识别到下载器和频率

问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果

【使用STM32CubeMX生成源码工程后,使用ST-LINK下载出现问题的解决方法】https://minipro.baidu.com/ma/qrcode/parser?app_key=y1lpwNoOyVpW33XOPd72rzN4aUS43Y3O&launchid=9bdd031f-3fe2-4f96-b302-ef3b3720f92d&path=%2Fpages%2Fblog%2Findex%3FblogId%3D115968358%26_swebFromHost%3Dbaiduboxapp