How to solve the problem of "No target connected" when KEIL is displayed

Publisher:sdlg668Latest update time:2016-10-07 Source: eefocusKeywords:KEIL  target  connected Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
When learning with STM32F051Disconvery, when configuring GPIOA, I accidentally configured both ports connected to the SWD bus as outputs. This is terrible. I can no longer use SWD to simulate or download programs. The solution is as follows:

 

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.

How to solve the
3. At this time, KEIL opens the Settings dialog box. Please confirm the content in the red circle before proceeding to the next step.
How to solve the
4. Power off the STM32F051Disconvery board and then power it back on.
5. First, long press the reset button of STM32F051Disconvery, then click the simulation or download button, and then release the reset button.
      Note: Clicking simulation to releasing the reset button here is not always successful. 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 program. The board will return to normal. But it should be noted that you must avoid the configuration of GPIO13\GPIO14 in the program.
 
Summarize:
GPIO13\GPIO14 are configured in the program.
I used a multimeter to measure the reset pin of the STM32F051R8T6 on the target board. When I clicked on the simulation, there was a momentary level change. I analyzed that it should be the reset action of the target board, but why is the configuration status of GPIOA not reset? There is one thing I don't understand. The manual says that the value of GPIOA_MODER after reset is: 0x2800 0000, that is, GPIO13\14 is configured as multiplexing mode, but why does the program configure GPIO13\14 as output and cause the SWD simulation and download problems when the target chip is reset?
How to solve the

Keywords:KEIL  target  connected Reference address:How to solve the problem of "No target connected" when KEIL is displayed

Previous article:STM32F051 write external interrupt steps
Next article:STM32 Learning Path (VI) - AD Conversion

Recommended ReadingLatest update time:2024-11-16 16:02

WPG Group launches 4K 60fps high-definition image detection solution based on Onsemi and NOVATEK
On May 21, 2024, WPG Holdings, a leading international semiconductor component distributor dedicated to the Asia-Pacific market, announced that its subsidiary Youshang has launched a 4K 60-frame high-definition image detection solution based on ONSEMI AR2020 image sensor and NOVATEK Natek platform.
[sensor]
WPG Group launches 4K 60fps high-definition image detection solution based on Onsemi and NOVATEK
Redmi Note 9 Pro engineering machine: quad-camera + centered punch-hole screen
       Xiaomi will release the new Redmi Note 9 series in India on March 12. Yesterday, foreign media exposed the Redmi Note 9 Pro engineering machine, further revealing the appearance design of this phone.   The picture shows that the Redmi Note 9 Pro adopts a centered punch-hole screen design, supports side finger
[Mobile phone portable]
Generation and use of static library in Keil C51
1. Create a new project, such as LibExample, with the code to generate the library file, and then add the code to it. Select Create Library in Output in Option for target, and compile to generate the library file. 2. Copy the generated library file (LibExample.lib) to the new project (Hello) folder, add it to the
[Microcontroller]
Generation and use of static library in Keil C51
Samsung Note10 may be equipped with a self-developed new 5x optical zoom lens
IT Home May 22 news According to foreign media reports, Samsung has prepared its own 5x optical zoom smartphone camera, which can be seen in Samsung's upcoming Note series phones.   Huawei P30 Pro brought the periscope camera trend, followed by Oppo Reno 10x zoom, and it looks like Samsung wants to join the optical
[Mobile phone portable]
Notes on using Keil C51 MCU development environment
It is best to use Keil to write C51 programs. You can also use Weifu, but Weifu's editing capabilities are far inferior. I am used to writing code with Keil, and then using Weifu hardware simulation (only WAVE simulation head). However, Keil is easy to use, but the key to writing code is still the C51 level, that is
[Microcontroller]
Notes on using Keil C51 MCU development environment
RENOGY won the 2019 Most Innovative Product Award in the Distributed and Energy Storage Industry
The 2019 Distributed and Energy Storage Innovation and Development Summit was successfully concluded in Suzhou. Focusing on "Unlocking New Technologies and Awakening New Potential", the summit conducted in-depth discussions on the current status of distributed and energy storage business models, technological innova
[New Energy]
Nordic SoC enables remote product pricing updates for smart shelf label systems
Nordic SoC enables remote product pricing updates for smart shelf label systems Yunliwuli uses Nordic's nRF52832 and nRF52810 SoCs to connect smart tags and gateways with Bluetooth 5 OSLO, Norway – November 25, 2021 – Nordic Semiconductor announced that Shenzhen Yunliwuli Technology Co., Ltd., a Chinese technology
[Internet of Things]
Nordic SoC enables remote product pricing updates for smart shelf label systems
Proteus and Keil Cx51 microcontroller simulation (serial port simplex communication)
The serial ports of the microcontrollers U1 and U2 both work in mode 1, with U1 acting as a receiver and U2 as a transmitter. The baud rate is 9600. After U1 receives the data sent by U2, it sends it to ports P1, P0, and P2 in sequence for running light display. Try to write a program and simulate it through Proteus.
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号