7674 views|9 replies

260

Posts

0

Resources
The OP
 

SWD cannot be downloaded, what is the reason? ? [Copy link]



JLink info: ------------ DLL: V6.30h, compiled Mar 16 2018 18:02:51 Firmware: J-Link V9 compiled Mar 2 2018 17:07:57 Hardware: V9.40 S/N: 59425868 Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash, RDDI * JLink Info: STM32 (connect): Can not attach to CPU. Trying connect under reset. * JLink Info: STM32 (connect): Can not attach to CPU. Trying connect under reset. ***JLink Error: STM32: Connecting to CPU via connect under reset failed. Error: Flash Download failed - Target DLL has been canceled Flash Load finished at 15:23:01

This post is from stm32/stm8

Latest reply

Pull BOOT0 high and BOOT1 low, then try downloading again.  Details Published on 2018-12-11 21:46
 

1059

Posts

1

Resources
2
 
Connect the reset and see
This post is from stm32/stm8
 
 

2145

Posts

8

Resources
3
 
1. First confirm whether SWD is correctly connected. 2. Check whether SWD io is remapped. If it is remapped, press and hold reset, then click download. After clicking download, wait for about 1 second and then release reset to start downloading. 3. Other issues:
This post is from stm32/stm8
 
Personal signature坐而言不如起而行
 

693

Posts

7

Resources
4
 
This post was last edited by bqgup on 2018-11-29 16:52 Generally, four wires are enough for SWD download, PA13, PA14, +3.3V, GND. You can search the schematic diagram of stlink emulator or jlink emulator on the Internet and connect the wires according to the schematic diagram. The premise is that your program and your MCU device are matched well, such as STM32C8T6 and STM32ZET6 and other models must be matched well, and the capacity of the MCU must also be configured well. Good luck to the OP.
This post is from stm32/stm8
 
 
 

105

Posts

0

Resources
5
 
If the DATA/CLK line of LAYOUT is too thin, the download will fail. In addition, if the 3.3V is also provided by SWD, it is best to do a good job of filtering.
This post is from stm32/stm8
 
Personal signature大道至简
 
 

36

Posts

0

Resources
6
 
Is jlink the same as swd?
This post is from stm32/stm8
 
 
 

664

Posts

104

Resources
7
 
* JLink Info: STM32 (connect): Can not attach to CPU. Trying connect under reset. Check if your device can be recognized. If the device cannot be recognized, you must connect the hardware reset tube of the MCU to the JLink. Check if you have run a low-power program, or if the program has disabled the SWD port, or if the Flash has been read-protected. Or if you have pulled BOOT0 high to prevent the device from booting from the Flash.
This post is from stm32/stm8
 
 
 

6366

Posts

4936

Resources
8
 
On the MSP430 microcontroller, if the SBW mode is used, the C in the RC circuit on the reset port needs to be removed.
This post is from stm32/stm8
 
 
 

931

Posts

3

Resources
9
 
Pull BOOT0 high and BOOT1 low, then try downloading again.
This post is from stm32/stm8
 
 
 

260

Posts

0

Resources
10
 
Thank you for the guidance of the great gods above, it is now fine~~
This post is from stm32/stm8
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list