AVR microcontroller cannot enter programming mode

Publisher:精灵宠儿Latest update time:2013-01-09 Source: 21ic Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The AVR microcontroller ATmega16 was used in the project. The editing and compiling environment during the learning process was ICCAVR, and the parallel port downloader and PonyProg2000 software were used to download the program. When the project was almost done, considering that if I wanted to debug the program on site and still use the parallel port downloader, I would have to bring a desktop computer or buy an EXPRESSCARD, which would be very inconvenient, so I considered using a laptop. Later, I bought an AVR two-in-one tool from Shenzhen Yanxue Electronics Co., Ltd. After installing the USB driver and AVR Studio software according to the CD information, connect the AVR two-in-one tool to the computer USB port and the target board, open the AVR Studio software, click the button on the toolbar, and the following dialog box will appear:

1.jpg

Click the Connect button and the following dialog box appears:

2.jpg

Then click the Program button in the Flash group and the following dialog box will appear:

3.jpg

We can see that Entering programming mode.. FALILED! is displayed in the history operation window, which indicates that we have failed to enter the programming mode.

Then I searched the Internet to find out the reason and see if there were any friends who had the same problem as me. But the posts I saw only asked questions, but no one solved the problem. Then I searched the website of Shenzhen Yanxue Electronics Co., Ltd.! I found a very crucial sentence, haha.

The download line needs to operate the reset pin to achieve synchronization, so when designing the target board, do not make an external reset and watchdog circuit. The AVR already has a hardware watchdog, so a pull-up resistor is enough.

Then I removed the reset capacitor and the problem was solved. Later I found that replacing the reset capacitor with 100uf/16V would not cause the above problem.

Reference address:AVR microcontroller cannot enter programming mode

Previous article:AVR MCU Locking Problem
Next article:Why choose AVR 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号