Most 51 MCU (STC series MCU) beginners know that when the 51 MCU is powered on, the program can be directed to the bootloader through the PC host software, so that the hex file of the new program can be downloaded to the MCU to complete the program upgrade or update. The STM32 MCU under the 32-bit Cortex-M3 core can also do this. This host software is called "Flash loader demonstrator"; after short-circuiting boot0 and VCC, it will enter the upgrade mode (System memory boot loader) after resetting again.
We need to download the chip burning tool software Flashloader demonstrator first. After downloading, we unzip and install this file, then we find STMicroelectronics flash loader.exe, this program is one of our protagonists - burning software. Another protagonist is our USB to serial port tool. Let me introduce how to use the software:
Prerequisites
Insert the USB to serial port tool into the computer and check the serial port number of the virtual serial port in the "Device Manager".
The programming process can be divided into six steps, namely, chip connection page, flash status page, chip information page, operation configuration page, option word configuration page, and operation progress bar page.
Step 1: Connect to the chip page
On this page, we mainly configure the serial port number, and the rest of the parameters can use the default values. Before clicking next, be sure to set the boot0 pin high and reset it. If everything is normal, the software will turn to the next page. Of course, if an error occurs, you need to repeat the above operation.
hint:
"Cannot open the COMport": Check whether the correct serial port number is selected and confirm that this serial port is not used by other software.
“Unrecognized device”: Restarting the microprocessor may solve the problem.
"No response from the target": This error is caused by abnormal chip power supply or connection problem. In rare cases, the chip is broken.
Step 2: Display flash storage status
As can be seen from the above picture, if the chip's flash is not read or write protected, the "Remove protection" button is gray; if the chip's flash is XX, then I don't need to say more about the function of this button^_^
Step 3: Chip information display
This page is basically read-only, just take a look. For our beginner level netizens, just quickly skip it for now.
Step 4: Operation Configuration
This page is our main operation page. The entire flash programming and erasing is concentrated in this page. In this page, we can erase the existing flash content of the chip. We can download the hex program to the chip flash, we can also enable/remove the chip protection (disable/enable) function, or configure the advanced function of the option word.
Here is a brief explanation. The erase function can choose to erase all (All) or to erase some sectors (selection). Click it and the page of the corresponding block will pop up.
Download flash (download), the software supports Intel hex, binary and S19 Motorola formats. For the rest, we can use the default settings.
Upload the internal flash content of the chip (upload). This function can read the internal flash of the chip and save it in the corresponding format. The format supports the three formats mentioned above.
Option word configuration, we will not use this configuration for the time being, and leave it for later advanced applications, and then we will come back to carefully study its powerful role and far-reaching significance.
Step 6: Progress bar display
In step 5, we will skip the option word configuration directly, so when it comes to step 6, there is nothing much to say about this page, just look at it.
If a green progress bar appears and prompts that the download is successful, then congratulations! The program has been successfully downloaded into the chip. At this time, you need to set boot0 low, reset the microprocessor, and then the microprocessor will execute the new program!
Summarize:
The use of the software adheres to the concept of one-click service, and the chip operation can be completed by clicking next all the way. In addition, the second active serial port download pin has been marked in the PCB silk screen. When connecting with the USB to serial port, a cross connection must be made, that is, the Rxd of the PCB board is connected to the Txd of the USB to serial port; the Txd of the PCB board is connected to the Rxd of the USB to serial port; and the GND of the two must be connected.
Previous article:S3C2440 Driver - Watchdog Driver Analysis
Next article:Is the programming protocol of the SWD interface of STM32 public?
Recommended ReadingLatest update time:2024-11-16 15:34
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- How to import images into DDR in CCSv5
- PID control algorithm implementation in C language
- MSP430F149 and PC serial port communication problem
- machine.ADC added in stm32
- Try it, can you access this website of ST?
- I found the fish's partner - [Electronic Components Artwork]
- ESD protection and elimination methods in switching power supply design and production
- 【TI mmWave Radar Review】+3D Profile Test
- I thought it was washing the phone, but it turned out to be washing the phone
- Medium and low pressure MODS pipes