STM32 Not a genuine ST Device! Abort connection 错误解决方案

网上解决方案

网络上出现的几个解决方案一一列举出来以防人们采坑
本人是先使用KEIL 2.6 升级3.2导致的问题,一开始没想太多,结果是折腾一天。

晶振设置不匹配导致

遇到这个问题:主要的问题是HSE设置与 外部晶振设置上不匹配导致的,(SYM32 本身IC 硬件没有损坏)
解决这个问题有两种:

  1. *卸载外置晶振,使用内部时钟工作,重新烧写代码(修改好HSE的设置部分),重新焊接外置晶振,即可正常工作;
  2. 设置BOOT0上拉到VDD(3.3V),重新烧写代码(修改好HSE的设置部分),重新下拉BOOT0至GND,,即可正常工作。;

Connect setting to with Pre-reset

I tried changing the Connect setting (Options for Target, Debug tab, Settings) to Under Reset but that didn’t help.

SOLUTION
Please change the Connect setting to with Pre-reset for this board, then save your settings. Your board should download and debug properly now.

机翻:
从Keil MDK V5.27更新后,当我尝试下载或调试Nucleo STM32L053R8开发板时,µVision返回以下错误:

不是真正的ST设备!中止连接
我尝试将“连接”设置(“目标选项”,“调试”选项卡,“设置”)更改为“重置下”,但这无济于事。


请 将此板的“连接”设置更改为“带预重置”,然后保存设置。您的开发板现在应该正确下载和调试。
地址:https://www.keil.com/support/docs/4139.htm

另一个讨论的地址:https://community.st.com/s/question/0D50X0000C5TBty/inot-a-genuine-st-device-abort-connection

降低MAX Clock

在这里插入图片描述
一点一点降低频率

我自己的解决方法

在尝试过多个版本和频率后发现,使用串口可以将HEX烧入,F103C8T6两块板子均出现问题,但F103ZET6没问题。换stmcubemx程序也没法解决。

最后重新装PACK包 2.2 且关闭2.3后不再弹窗,烧写正常

最新遇到的问题和解决方法,HK32烧录时报错,一开始使用CMSIS-DAP进行烧录,出现了报错,转而使用盗版jlink软件版本为 jlink V7.64C 烧录正常

  • 4
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
Updated Pack to STM32Cube_FW_F4 Firmware Package version V1.25.1 using HAL Drivers V1.7.9. STM32CubeMX integration (Version 6.0.1): Added support for Timebase Source TIMx (FrameworkCubeMX_gpdsc.ftl). Removed non-existent include path. CMSIS Flash Algorithm: Corrected STM32F42xxx_43xxx_OPT Algorithm. CMSIS SVD: Updated STM32F42*.svd, STM32F43*.svd files. CMSIS-Driver: I2C: Corrected 2 byte reception in master mode. MCI: Replaced empty delay loops with _NOP(). SPI: Corrected PowerControl function (to return error if Initialize was not called, to abort active transfer if power off was requested). Updated GetDataCount function to give accurate count in DMA mode. Corrected Control function (abort in DMA mode, software controlled slave select in slave mode, TI Frame Format selection, ignore bus speed for slave mode). Corrected Uninitialize function (to power off the peripheral if it is powered). Corrected SPI3_SCK pin configuration. Corrected DMA MemDataAlignment configuration. USART: Corrected DMA MemDataAlignment configuration. USBD_HS/USBH_HS: OTG_HS ULPI clock disabled in low power if internal PHY is used to enable proper operation of OTG_HS port in FS mode during CPU sleep. CAN/EMAC/USBD/USBH: Removed macros already provided by cmsis_compiler.h. Updated Boards Examples: Migrated CubeMX projects to V6.0.1 and updated config files. Changed variant selection to "MDK-Plus" where possible. Updated all USB Host/Device examples with user templates from MDK-Middleware v7.11.1. Terminating app_main thread with osThreadExit() to avoid endless loop Updated MS Windows UBS driver files.
Version: 2.15.0 (2020-09-28) Keil.STM32F4xx_DFP.2.15.0.pack Download Updated Pack to STM32Cube_FW_F4 Firmware Package version V1.25.1 using HAL Drivers V1.7.9. STM32CubeMX integration (Version 6.0.1): Added support for Timebase Source TIMx (FrameworkCubeMX_gpdsc.ftl). Removed non-existent include path. CMSIS Flash Algorithm: Corrected STM32F42xxx_43xxx_OPT Algorithm. CMSIS SVD: Updated STM32F42*.svd, STM32F43*.svd files. CMSIS-Driver: I2C: Corrected 2 byte reception in master mode. MCI: Replaced empty delay loops with _NOP(). SPI: Corrected PowerControl function (to return error if Initialize was not called, to abort active transfer if power off was requested). Updated GetDataCount function to give accurate count in DMA mode. Corrected Control function (abort in DMA mode, software controlled slave select in slave mode, TI Frame Format selection, ignore bus speed for slave mode). Corrected Uninitialize function (to power off the peripheral if it is powered). Corrected SPI3_SCK pin configuration. Corrected DMA MemDataAlignment configuration. USART: Corrected DMA MemDataAlignment configuration. USBD_HS/USBH_HS: OTG_HS ULPI clock disabled in low power if internal PHY is used to enable proper operation of OTG_HS port in FS mode during CPU sleep. CAN/EMAC/USBD/USBH: Removed macros already provided by cmsis_compiler.h. Updated Boards Examples: Migrated CubeMX projects to V6.0.1 and updated config files. Changed variant selection to "MDK-Plus" where possible. Updated all USB Host/Device examples with user templates from MDK-Middleware v7.11.1. Terminating app_main thread with osThreadExit() to avoid endless loop Updated MS Windows UBS driver files.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值