Recently, when I was using the stm32f4-discovery board, I accidentally encountered the problem of st-link no target connected. It was working normally before, but suddenly this problem popped up. I thought it was a problem with the board. Later, after looking up information online, I found that it was not a problem with the board. The solution is as follows: (The development environment is MDK 4.6)
It shows "NO target connected" but the driver is fine. In the device manager, it shows that there is stlink because the two ports 14 and 13 of GPIOA are configured.
”
The value of GPIOA_MODER after reset is: 0x2800 0000, that is, GPIO13\14 is configured as multiplexing mode. However, why does the SWD simulation and downloading fail when GPIO13\14 is configured as output in the program and the target chip is reset?
”
Solution:
1. First make sure the target board is powered on.
2. First, press and hold the reset button on the target board, then click Settings, and then release the reset button on the target board.
3. At this time, KEIL opens the Settings dialog box. Please confirm that there is SWD content before proceeding to the next step.
4. Power off the STM32F41Discovery board and then power it back on.
5. First, long press the reset button of STM32F4Discovery, then click the simulation or download button, and then release the reset button.
Note: Clicking the simulation button and releasing the reset button here may not be successful every time. The time from clicking the simulation button to releasing the reset button is different each time. At a certain point, you can enter the simulation or download the program. The board will return to normal. But it should be noted that you must avoid the configuration of GPIO13\GPIO14 in the program.
Note: The time it takes to release the reset button cannot be too short or too long. It may take several attempts to succeed.
Previous article:SWD download program error cannot access memory
Next article:Debug download settings for stlink in STM32 Keil
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Does fast charging damage the battery? He has done a comparative test for everyone. Let’s see the results~~
- Share the schematic simulation video of senior hardware engineers ---- Introduction to spice model -----------The key is free
- DSP interrupt path flow chart
- Detailed explanation of terminal device state switching in TI ZigBee protocol stack
- Understand low-pass, high-pass, band-pass, band-stop, and state-adjustable filters at once!
- An error occurred when updating the PCB. Please help me find out why.
- Bicycle modification series——by dcexpert
- Question: Which channel do you use to purchase components for your company's products?
- New opportunity to counterattack! Come to EEWorld Download Center, complete tasks to earn 200 points, and easily achieve point freedom
- Participate to get gifts | Keysight Technologies offers tips on how to balance new technology requirements with test costs