【问题标题】:STM32: STLink won't connect through SWD any longerSTM32:STLink 不再通过 SWD 连接
【发布时间】:2020-07-09 19:41:36
【问题描述】:

第一次刷机正常,后续刷机失败

初始化 ST-LINK 设备时出错。原因:找不到设备 目标。

在 STM32H745 NUCLEO 板上,我错误地启用了 DEBUG 接口和 SWO 引脚。有没有办法硬重置这个板?

【问题讨论】:

    标签: stm32 cortex-m swd stm32cubeide


    【解决方案1】:

    “重置时闪烁”技巧不起作用。也就是说,在 STM32_Programmer 通过 ST-Link 执行其操作之前,按住复位按钮并立即释放它。一些 RTFM-ing 有时会有所帮助:

    If a deadlock is faced due to a mismatch between the HW
    board setting and the FW setting (LDO/SMPS), the user can
    recover the board by doing the following:
    - Power off the board
    - Connect CN11 ‘BT0’ pin (BOOT0) to VDD using a wire
    - This changes the BOOT0 pin to 1 instead of 0 and thus the
    device boot address is changed to boot address 1 making the
    bootloader starting in System memory, instead of starting the
    FW in the user Flash (FW that is setting a wrong LDO/SMPS
    configuration)
    - Power on the board and connect using
    STM32CubeProgrammer
    - Erase the user Flash
    - Power off the board and remove the wire between BOOT0
    and VDD
    - The board is now recovered and can proceed normally.
    

    现在我要弄清楚为什么我一刷我的垃圾箱就会陷入僵局......评论了一些代码并重新构建,sill 做到了。

    LE:找到了违规行:

      HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
      ...
    

    我的SystemClock_Config 函数都是为 LDO 电源而不是 SMPS 编写的

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-21
      • 2019-10-26
      • 1970-01-01
      • 1970-01-01
      • 2014-08-14
      • 1970-01-01
      • 2018-02-22
      • 1970-01-01
      相关资源
      最近更新 更多