Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of unable to download Program by STC single Chip Microcomputer

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "STC single-chip microcomputer can not download the program solution", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "STC single-chip microcomputer can not download the program of the solution" it!

1. Basic operation of STC_ISP software

As shown in the picture above is the main interface of the STC_ISP software. The editor marks the key points with scarlet letters, which are explained one by one below:

1, the choice of single-chip microcomputer model, must be the same as the development board chip model, the wrong choice can not be downloaded. 2, choose the serial slogan, we use the serial port of the CH340 chip, so choose the one that contains CH340, note that the old desktop computer may have the default serial port 1, the wrong choice can not be downloaded.

3, the lowest baud rate, no need to modify, STC_ISP send handshake download command is sent at this baud rate.

4, the highest baud rate, the default is good, STC_ISP software to send the baud rate to download the program data. Try to reduce the baud rate in the event of a download failure, such as 9600 or 4800 and try again.

5. After opening the file and selecting a new single-chip microcomputer signal, we need to manually add the HEX file that we need to download.

6. Choose the clock frequency of the single-chip microcomputer, STC15W series do not need external crystal oscillator, the default internal integration of high-precision RC oscillation.

7. The reset pin is used for IO, when there is no external reset circuit, or when the reset pin is to be used as IO, check it, and uncheck it when connected with an external reset circuit.

8. Download button, STC_ISP software sends handshake commands like single-chip microcomputer

9. Reprint the target file before each download. Check it by default, omitting the manual operation of point 5 above every time you download.

10, when the target file changes automatically load and send download commands, each compilation after the production of new HEX files, STC_ISP software will automatically send download commands, if you now online support one-click download, check here will greatly facilitate us to debug the program.

Purple box on the right, this box will show MCU and STC_ISP handshake to MCU return information, including MCU model, internal version number, one core one code, adjust the RC clock frequency and other information, know the program download completed, the size of the program and other information.

II. Summary of solutions for failed STC_ISP downloads

First of all, the computer needs to correctly install the CH341 driver, after the installation is completed, open the computer device manager to check the "port", whether there is a CH340 virtual serial port, as shown in the following figure, indicating that the driver is installed correctly. This is the first step, can not be completed, the following are blind, it is impossible to download the program, first solve this step.

Q: after connecting the single-chip microcomputer, click the "download" button and the information display box on the right shows that "the target single-chip microcomputer is being detected." no, no, no. "

A: at this time, you need to power on the single-chip microcomputer after the power is off. After the power-up, you can detect that the single-chip microcomputer can be downloaded, or there is no response to look down:

A, check that the selected serial number is not the serial port connected to our single-chip microcomputer, you can unplug the CH340 connected to the single-chip microcomputer from the computer to see if the serial port we used just now is correct. This problem often occurs when the computer has multiple CH340 chips or the desktop computer has a default serial port 1. Be sure to select the corresponding string slogan and try again.

B. Check whether the TXD and RXD of CH340 are correctly connected to the RXD and TXD of the single-chip microcomputer. The correct connection mode is: the RXD of CH340 is connected with the TXD of the TXD,CH340 of the single-chip microcomputer and the RXD of the single-chip microcomputer.

C, disconnect the single-chip microcomputer and CH340, connect the RXD and TXD pins of CH340 with a wire, open the serial port assistant on the computer, send a hexadecimal number, and select the hexadecimal display in the receiving area to see if you can receive the transmitted data.

1. Receive the same data, CH340 driver and line are fine and can be used normally.

2. If you cannot receive data, look at the number of times of receiving and sending records to see if you have received data. If you have received data, you have chosen hexadecimal display. If the number of receiving records has been zero, it means that there is something wrong with the CH340 driver or circuit. You can reinstall the driver or replace the computer, or replace the CH340 module and try again until you can receive the sent data.

Q: the wrong type of single-chip microcomputer? After the power is off, the monitoring display area on the right shows that the single-chip microcomputer model is selected incorrectly.

A: at this time, you need to check the specific model of the chip on the development board, and re-select the single-chip microcomputer model.

Q: failed to shake hands? After the single-chip microcomputer is powered off and then powered on, the single-chip microcomputer will be detected in the monitoring area, but the failure will be shown here in the handshake.

A: this problem is usually caused by unstable CH340 circuits or unstable connection lines. You can try reseating the CH340 module and cable, or you can lower the maximum baud rate and try again.

Q: after a successful handshake, you are halfway through downloading the progress bar and suddenly fail to download. You are prompted to see if there is a new version of the software. Please update it. You have to believe that this is not due to problems with the software version.

A: this problem is generally caused by the high baud rate, which can be solved by lowering the baud rate. For example, the baud rate is reduced to 9600 and 4800 for testing. The consequence of lowering the baud rate is the increase in the time required to download the program. You can first reduce the baud rate for several successful downloads and then increase the baud rate, which can generally solve the problem.

Thank you for your reading, the above is the "STC MCU can not download the program solution" content, after the study of this article, I believe you can not download the program STC MCU solution to this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report